Hello. New here. Amateur programmer. Trying to get better. Hopefully this question makes sense.
I'm trying to make a Mandelbrot fractal explorer program. Yes I know there are plenty out there, but I'd like to be able to make my own. I've made a simple one in a java based language called Processing before but i found that the precision level just wasn't as high as I wanted it to be. I think I was only able to squeeze 15 decimal points out of floats.
So my question is:
Which programming language or environment has the highest level of floating point precision? Or if you know of a way to increase the precision of an established language please enlighten me.
Thanks.
2 replies to this topic
#1
Posted 16 February 2011 - 02:35 PM
|
|
|
#2
Posted 16 February 2011 - 03:47 PM
I believe any language can support it with another library, you would be looking for an arbitrary precision arithmetic library i,e. GMP or BC. If you can have java packages, there is a biginteger library which you can import.
To understand why you are limited to ~16 precision, you can understand how the float and double data types work: Double precision floating-point format - Wikipedia, the free encyclopedia
To understand why you are limited to ~16 precision, you can understand how the float and double data types work: Double precision floating-point format - Wikipedia, the free encyclopedia
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#3
Posted 16 February 2011 - 05:09 PM
For fractals, you would do better to use fractions made out of BigInts. That's basically what the stone soup group did when they made Fractint in C (or C++?). It will give your calculations much better precision.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









