|
|
Line 643: |
Line 643: |
|
=={{header|J}}== |
|
=={{header|J}}== |
|
|
|
|
|
⚫ |
<lang j> ((+ 10x&*)/@|.@(,.&.":@[ +//.@(*/) ,.&.":@]))/ ,~2x^64 |
|
<pre> |
|
|
⚫ |
340282366920938463463374607431768211456 </lang> |
⚫ |
((+10x&*)/@|.@(,.&.":@[+//.@(*/),.&.":@]))/ ,~2x^64 |
|
|
⚫ |
* digits: <code>,.&.": y </code> |
⚫ |
340282366920938463463374607431768211456 |
|
|
⚫ |
|
|
</pre> |
|
|
⚫ |
|
⚫ |
|
|
|
⚫ |
* polynomial multiplication: <code>x (+//.@(*/)) y </code> '''ref.''' [http://www.jsoftware.com/help/dictionary/samp23.htm] |
|
<pre> |
|
|
⚫ |
<lang j> 1 2 3 (+//.@(*/)) 1 2 3 |
⚫ |
|
|
|
⚫ |
|
⚫ |
|
|
|
⚫ |
* building the decimal result: <code>(+ 10x&*)/|. y </code> |
|
</pre> |
|
|
⚫ |
<lang j> (+ 10x&*)/|. 1 4 10 12 9 |
⚫ |
* polynomial multiplication: x (+//.@(*/)) y '''ref.''' [http://www.jsoftware.com/help/dictionary/samp23.htm] |
|
|
⚫ |
|
|
<pre> |
|
|
⚫ |
or using the primitive dyad <code>#. </code> instead of <code>(+ 10x&*)/@|. </code> |
⚫ |
|
|
|
⚫ |
<lang j> (10x #. ,.&.":@[ +//.@(*/) ,.&.":@])/ ,~2x^64 |
⚫ |
|
|
|
⚫ |
340282366920938463463374607431768211456 </lang> |
|
</pre> |
|
⚫ |
* building the decimal result: (+10x&*)/|. y |
|
|
<pre> |
|
⚫ |
|
|
⚫ |
|
|
|
</pre> |
|
⚫ |
or using the primitive dyad #. instead of (+10x&*)/@|. |
|
|
<pre> |
|
⚫ |
(10x #.,.&.":@[+//.@(*/),.&.":@])/ ,~2x^64 |
|
⚫ |
340282366920938463463374607431768211456 |
|
|
</pre> |
|
|
Writing directly: |
|
Writing directly: |
|
⚫ |
|
|
<pre> |
|
|
⚫ |
340282366920938463463374607431768211456 </lang> |
⚫ |
|
|
⚫ |
340282366920938463463374607431768211456 |
|
|
</pre> |
|
|
|
|
|
|
=={{header|JavaScript}}== |
|
=={{header|JavaScript}}== |