04-03-2023, 12:59 PM
Hi,
I am new to this forum so you wont recognize my user name (diSP stands for Drew is a stupid programmer - I couldn't even get the caps right).
I'm looking for precision math software to run in QB64. Basically, Functions or Subs that can perform decimal math calcs (add, subtract, multiply, divide, etc...) on the whole spectrum of very small and very large numbers.
Background: My own for-fun fractal program looses iteration precision and could go far deeper with precision calculations. I have successfully implemented a decimal math package from a user on another site and it worked great except for one thing. A 1.264 second (using my baseline machine math) Mandelbrot iteration took (or would have took) 8 hours. I soon realized that although hundreds to thousands of units of precision are great they take too long for an iteration that only needs 30-50 place precision calculations.
Ideally I'd like to find a precision decimal math package that goes no longer than 30-50 precision or even better lets me assign the precision so the algorithms don't go crazy and start managing giant strings that aren't needed and tie up my CPU.
I am a retired Chem Eng. who just likes to play with Basic (QB64) programming. I am a low level programmer so things can get over my head. To that end I am looking for a fast but not highly technical package. Something an everyday programmer can get a grip on.
A user on another forum suggested there is a QB64 library call xscript which I have not found a lot on. I also took a look at GMP which seems to run in C+ and I am not sure it is very reasonable to try to force into QB64. It also may be a bit comprehensive for me.
Any ideas would be appreciated.
>Best Regards -disp
I am new to this forum so you wont recognize my user name (diSP stands for Drew is a stupid programmer - I couldn't even get the caps right).
I'm looking for precision math software to run in QB64. Basically, Functions or Subs that can perform decimal math calcs (add, subtract, multiply, divide, etc...) on the whole spectrum of very small and very large numbers.
Background: My own for-fun fractal program looses iteration precision and could go far deeper with precision calculations. I have successfully implemented a decimal math package from a user on another site and it worked great except for one thing. A 1.264 second (using my baseline machine math) Mandelbrot iteration took (or would have took) 8 hours. I soon realized that although hundreds to thousands of units of precision are great they take too long for an iteration that only needs 30-50 place precision calculations.
Ideally I'd like to find a precision decimal math package that goes no longer than 30-50 precision or even better lets me assign the precision so the algorithms don't go crazy and start managing giant strings that aren't needed and tie up my CPU.
I am a retired Chem Eng. who just likes to play with Basic (QB64) programming. I am a low level programmer so things can get over my head. To that end I am looking for a fast but not highly technical package. Something an everyday programmer can get a grip on.
A user on another forum suggested there is a QB64 library call xscript which I have not found a lot on. I also took a look at GMP which seems to run in C+ and I am not sure it is very reasonable to try to force into QB64. It also may be a bit comprehensive for me.
Any ideas would be appreciated.
>Best Regards -disp