Talk:Ethiopian multiplication: Difference between revisions

→‎Flagged tasks without separate named routines for half, double, even: Do as much as you can and state the reasons for any discrepancies prominently at the beginning.
(→‎python lambda: new section)
(→‎Flagged tasks without separate named routines for half, double, even: Do as much as you can and state the reasons for any discrepancies prominently at the beginning.)
 
(5 intermediate revisions by 4 users not shown)
Line 14:
:You do have to create a function. the intent is for it to be a named function where the name should indicate the functions purpose. I am hoping that most contributors will go with the intent. --[[User:Paddy3118|Paddy3118]] 18:33, 14 November 2009 (UTC)
:: You can clarify the task, and then mark the tasks which don't quite comply. --[[User:Short Circuit|Michael Mol]] 23:51, 14 November 2009 (UTC)
 
So languages which don't have the notion of functions do what then? (Consider CHR as an example of such.) [[User:Ttmrichter|Michael T. Richter]] ([[User talk:Ttmrichter|talk]])
:Try your best to work in the spirit of what is being asked for.
:If you have named macros but not functions then mention that up-front then try using them. If you have include files then include files with appropriate names.
:In short: Do as much as you can and state the reasons for any discrepancies prominently at the beginning. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 07:01, 21 February 2014 (UTC)
 
==X86 Smaller version==
Line 23 ⟶ 28:
:[[:Category:Bash]] should be a [[UNIX Shell]] implementation, not a separate language. Move the Bash examples to the [[UNIX Shell]] section with a {works with|bash} template. --[[User:IanOsgood|IanOsgood]] 15:56, 9 June 2010 (UTC)
::Sorry about that. Managed to miss the [[UNIX Shell]] cat altogether. Since the implementation that I posted used proper bit shifts rather than multiplication and division, however, I am going to retrieve it and drop it in as an alternate [[UNIX Shell]] implementation. [[User:Bendingoutward|Bendingoutward]] 07:43, 12 June 2010 (UTC)
:: Strictly, bash is ''mostly'' an implementation of Unix shell, but it does have some peculiarities of its own. If the example is using any of those peculiarities, it should be on its own (but perhaps as a level-3 entry under the L2 Unix shell one). If not, {{tmpl|works with}} is the right thing; having multiple idiomatic implementations of an example is fine, though rarely done because it's a lot of work. :-) –[[User:Dkf|Donal Fellows]] 10:54, 5 January 2012 (UTC)
 
==OpenOffice Calc==
Line 64 ⟶ 70:
This is the most basic multiplication algorithm that has been widely implemented in hardware and is also equivalent to long multiplication:
 
1101
* 100101
------
1101
110100
+ 110100000
----------
<sum>
 
 
Same "shift", different pile.[[Special:Contributions/24.85.131.247|24.85.131.247]] 03:50, 9 November 2011 (UTC)
: Of course it works out the same, but it's not the usual formulation. And it's interesting that humans developed it independently of any notion of binary arithmetic (or numerical bases period). And it is indeed Ethiopian, if not in origin, at least in terms of where this version of the algorithm was "discovered" by the modern West. [[User:Markjreed|Markjreed]] ([[User talk:Markjreed|talk]]) 20:45, 6 October 2013 (UTC)
 
 
== python lambda ==
Line 93 ⟶ 101:
if a named function is needed, it doesn't seem to make much sense to use lambda to create it.
lambda is useful for cases where an unnamed function is preferred.--[[User:EMBee|eMBee]] 07:35, 5 January 2012 (UTC)
:shorter? --[[Special:Contributions/76.21.41.59|76.21.41.59]] 09:19, 5 January 2012 (UTC)
Anonymous user