On Sun, Dec 22, 2013 at 10:50 AM, Roger Hui <rogerhui.can...@gmail.com> wrote: > I expect exp can be improved. The details are left as an exercise for the > reader. :-)
And, perhaps, the concept of what "improved" means can be an exercise for the reader? Here, I'll optimize for useless accuracy (or at least accuracy which I have no immediate use for) at the expense of speed and space: 1163j1160":(%!i.512x)&p. 1 2.71828182845904523536028747135266249775724709369995957496696762772407663035354759457138217852516642742746639193200305992181741359662904357290033429526059563073813232862794349076323382988075319525101901157383418793070215408914993488416750924476146066808226480016847741185374234544243710753907774499206955170276183860626133138458300075204493382656029760673711320070932870912744374704723069697720931014169283681902551510865746377211125238978442505695369677078544996996794686445490598793163688923009879312773617821542499922957635148220826989519366803318252886939849646510582093923982948879332036250944311730123819706841614039701983767932068328237646480429531180232878250981945581530175671736133206981125099618188159304169035159888851934580727386673858942287922849989208680582574927961048419844436346324496848756023362482704197862320900216099023530436994184914631409343173814364054625315209618369088870701676839642437814059271456354906130310720851038375051011574770417189861068739696552126715468895703 50354021234078498193343210... I've left three extra characters to the left of the fractional part: one for the decimal point, one for the 2 and one for the absence of a negative sign. Thanks, -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm