Roger Hui wrote: > The last phrase computes the last 6 digits of 10^100x : > > ts 'y=: 2 (1e6&|@^) 10^100x' > 0.00568536 174784 > y > 109376 > > Try that in Maple!
If you know about inert operators in Maple, you can do it (almost) directly:
> 2&^(10^100) mod 1000000;
109376
Best,
John
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
