"x on its own" is a part of J's mini-language for numeric constants.
Just as 2e3 means 2000 and 0j1 means the square root of negative one,
letters can also be used to express other numeric flavors. See also:
http://www.jsoftware.com/help/dictionary/dcons.htm
Thanks,
--
Raul
On Wed, Jan 22, 201
Alrighty, thanks all!
I only tried x: because it was the only entry in the dictionary. (Didn't
see x on its own)
--
For information about J forums see http://www.jsoftware.com/forums.htm
x: converts a result to BigInteger and as you note, the precision of
10^300 is limited. But try
10^300x
or perhaps
<.@o. 10^1000x
+/ (>: i.1000x)^(>: i.1000x) NB. seems to do what you want.
On 2014/01/22, 12:47 , Ray Zhao wrote:
Subject: Is there a BigInteger equivalent in J?
Hi,
9x ^ 100
265613988875874769338781322035779626829233452653394495974574961739092490901302182994384699044001
datatype x: 45
extended
Look up x: in the dictionary.
On Wed, Jan 22, 2014 at 2:47 PM, Ray Zhao wrote:
> Subject: Is there a BigInteger equivalent in J?
>
>
> Hi, after seeing some
Subject: Is there a BigInteger equivalent in J?
Hi, after seeing some questions that involve finding huge numbers (using
BigInteger in C#, which can store "infinitely large" integers), I tried
doing one in J but got unlimited:
+/ (1+i.1000)^(1+i.1000)
Obviously, it exceeds the range of double, bu