Bill Allombert on Fri, 15 Sep 2000 13:14:07 +0200 (MET DST)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Inefficient "solve" in Pari 2.0.18 (beta) ?


Thanks to Will Galway, the corrected solve function is much faster

? \p400
   realprecision = 404 significant digits (400 digits displayed)
? solve(x=-2,2,cos(x)-x)
%12 = 0.7390851332151606416553120876738734040134117589007574649656806357732846548835475945993761069317665318498012466439871630277149036913084203157804405746207786885249038915392894388450952348013356312767722315809563537765724512043734199364335125384097800343406467004794021434780802718018837711361382042066316335037277991696731223230061388658203621770810997897062684240588094898683261860600485898958548725736   

Old version:
 ***   last result computed in 12,950 ms.   
New version:
 ***   last result computed in 160 ms.  

Cheers,

Bill.