I just use   1000000000000001x #. 4 3 8 9%6x

While you can have some scripts, for example
 cu=. 13 : 'y#.%(4 3 8 _9%6x)'
you still need the x at the end of a long argument in order to capture all of the argument, again for example cu 100000000000001x

I'm not sure how to modify cu so that J recognizes the argument must be extended precision.

I have sent in a response to the problem posed by Polivka in Quote-Quad
that should answer the rest of the questions.

Ralph S


On Thu, 6 Dec 2007, JC Coez wrote:

Where can I get more info about this ?

----- Original Message ----- From: "Ralph G Selfridge" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, December 06, 2007 4:12 AM
Subject: [Jprogramming] New to J/problem 28


Relative to spirals and sums of diagonals it can be shown that
the last digit in any answer is:
If 1=10|n   1
if 3=10|n   5
if 5=10|n   1
if 7=10|n   7
if 9=10|n   1

Ralph S

But how should I specify extended precision:
 x:1000000003 #. 4 3 8 _9%6x
666666667316666522891855069184
 x:10000000005 #. 4 3 8 _9%6x
666666667716666530908206006272
 x:10000000007 #. 4 3 8 _9%6x
666666668116666538924556943360
...
Thanks for any pointer.
JCC

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to