Long multiplication: Difference between revisions

Content added Content deleted
Line 1,928: Line 1,928:
=={{header|Dc}}==
=={{header|Dc}}==
{{incorrect|Dc|Code does not explicitly implement long multiplication}}
{{incorrect|Dc|Code does not explicitly implement long multiplication}}
Since Dc has arbitrary precision built-in, the task is no different than a normal multiplication:
<lang Dc>2 64^ 2 64^ *p</lang>
{{incorrect|Dc|Dc has no integers of a fixed size thus this task makes no sense for Dc.
You would simulate having only fixed size integers just for implementing a multiplication simulating a bigger size?
You would simulate having only fixed size integers just for implementing a multiplication simulating a bigger size?
Simulate overflow errors with Dc's arithmetic just for the sake of circumcoding it in the next layer?
Simulate overflow errors with Dc's arithmetic just for the sake of circumcoding it in the next layer?
For languages having fixed size integers and bignum support this task may make sense but not for Dc.
For languages having fixed size integers and bignum support this task may make sense but not for Dc.
The following example should be replaced by exactly this explanation.}}
The following example should be replaced by exactly this explanation.}}
Since Dc has arbitrary precision built-in, the task is no different than a normal multiplication:
<lang Dc>2 64^ 2 64^ *p</lang>
{{incorrect|Dc|Dc has no integers of a fixed size thus this task makes no sense for Dc.


=={{header|EchoLisp}}==
=={{header|EchoLisp}}==