4 ms·
In Wolfram Mathematica on my desktop PC with a 7 year old processor: Timing[N[\[Pi], 20000000];] {10.1094, Null} On a fairly recent laptop CPU I got 7
by jiggawatts 4y ago
In Wolfram Mathematica on my desktop PC with a 7 year old processor:
Timing[N[\[Pi], 20000000];]
{10.1094, Null}
On a fairly recent laptop CPU I got 7.6 seconds.
A fair ways to go still!
- xdavidliu 4y agodoes Mathematica actually compute it or is it just loading the value that it already knows?
- extasia 4y ago7.6 second seems too much to be just loading a value from disk
- jiggawatts 4y agoDefinitely computing. For arbitrary precision evaluation like this, Mathematica has always had cutting-edge algorithms built in. As a random example: large matrix operations have been multi-threaded for ages.
- deleted 4y ago[deleted]
- moelf 4y agoit's not using the same algorithm right?
- juliusgeo 4y agoWhile this is impressive, it is neither the same algorithm, nor even the same type of language (I already know Julia is much slower than C). I don’t think it is much of a relevant comparison for a benchmark when almost nothing is the same except for the expected answer. Perhaps if Gauss Legendre were implemented in Mathematica it would only take 3 seconds! There’s no way for us to know.