02/21/2013, 02:23 PM
(This post was last modified: 02/21/2013, 05:24 PM by sheldonison.)
(02/21/2013, 01:52 PM)Balarka Sen Wrote: So, can we somehow suppress the output kneser.gp produces when we enter init(base)?
Here it is! I kneserquiet.gp
It has a global variable, quietmode, which I defaulted to '1' in this version. I also defaulted the precision to "\p 28", instead of "\p 67". This makes the program very fast. init(2) takes about 0.4 seconds on my computer. Using "\p 28" is good for about 14 decimal digits precision. If you want, you can also type in "\p 67", prior to typing in init(base), which is good for about 32 decimal digits precision, but takes about 5 seconds for init(2).
- Sheldon
Code:
\r kneserquiet.gp
... help menu prints out ...
gp > init(2);
gp > sexp(0.5)
%3 = 1.4587818160364
