I'm using long double in
a C program to compute 2D images of the Mandelbrot Set but wish to have further precision to zoom deeper.
Are there any performance gains to be had from an arbitrary precision maths library that can restrict the amount of precision as required, rather than leaping from long double
precision straight into arbitrary precision?
Which is the fastest of the arbitrary precision maths libraries?
boost::multiprecision
, with precision "may be arbitrarily large (limited only by available memory), fixed at compile time (for example 50 or 100 decimal digits), or a variable controlled at run-time by member functions", may be better than GMP. Or you can usettmath
as mentioned here – Bestow