In this Wolfram Conference talk from last year, "Faster Arbitrary Precision Computation of Elementary Functions", they talk about R&D for algorithms to numerically evaluate elementary functions using arbitrary precision arithmetic. Has this technology been incorporated into Mathematica? If so, when? If not, when?
$\begingroup$
$\endgroup$
Posting my earlier comment as an answer:
Yes, as of 11.0.0.
-
$\begingroup$ I am happy to learn that this kind of development is still taking place! $\endgroup$ – Mr.Wizard Aug 22 '16 at 23:04
-
$\begingroup$ Is there any benchmark of this? I tried the below code in v10.3 and v11.0.0 but did not see any significant change:
AbsoluteTiming[N[ArcTan[123456], 10^5];]
andAbsoluteTiming[N[Log[123456], 10^5];]
(on different computer so not so precise comparison. Nevertheless if the change is big it should show up). $\endgroup$ – Yi Wang Aug 23 '16 at 8:08 -
$\begingroup$ @YiWang, In my mac I tried
N[Cos[234], 10^6]; // AbsoluteTiming
andN[Sin[134], 10^4]; // AbsoluteTiming
, on versions 10.3 and 11.0, and I do find an improvement: 12.01 s vs 10.98 s forCos
and and 0.202 s vs 0.011 s forSin
. $\endgroup$ – QuantumDot Aug 24 '16 at 8:37 -
$\begingroup$ @YiWang Yes, I would again refer to the presentation for example results. The exact speedup will depend on the function called, the argument range and the precision requested. Furthermore, there is a cost associated with going through the main evaluator which can obscure the performance gained in certain examples with shorter runtimes. Accurate benchmark testing therefore required some C code instrumentation in the kernel. $\endgroup$ – ilian Aug 24 '16 at 21:15
Sqrt
,Log
,Exp
, etc. do not mention changes in v11. $\endgroup$ – QuantumDot Aug 21 '16 at 13:54