I think this proposal would require, at minimum, a rewrite of ve.c Also, each primitive which takes numeric arguments and/or produces a numeric result would need a test to make sure it behaved properly for each different mode of number handling.
Want to take a crack at it? Thanks, -- Raul On Mon, Oct 9, 2017 at 3:02 PM, Xiao-Yong Jin <[email protected]> wrote: > For some reason, all the topics in beta and programming ultimately leads to > issues relating to our pathetically limited memory computing machines that > poorly representing proper numbers. > > Can we have a separate forum for number representation issues? > > Can we have a J operation mode that treats all numbers as extended precision > rationals by default and barks (or just runs forever) upon irrational numbers? > > Here is a question for the proposed new forum as a start. > > NB. J does not get the 15th digit of Euler's number correctly!? > 10|<.(^1)*10^i.20 > 2 7 1 8 2 8 1 8 2 8 4 5 9 0 0 0 0 0 0 0 > NB. Putting in x does not help either!? > 10x|<.(^1x)*10x^i.20x > 2 7 1 8 2 8 1 8 2 8 4 5 9 0 0 0 0 0 0 0 > NB. But this x: helps, why? > 10|<.(x:^1)*x:10^i.20 > 2 7 1 8 2 8 1 8 2 8 4 5 8 9 1 2 8 1 6 5 > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
