Search found 135 matches

by cbruce
May 21, 2019 17:09
Forum: General
Topic: How do you interoperate with other applications using double-precision floating-point?
Replies: 15
Views: 362

Re: How do you interoperate with other applications using double-precision floating-point?

Hi srvaldez, That's my whole problem... none of them return the exact same results. So, for now, I'm writing it to have different implementations make a first attempt with a truncated (not rounded) 15 digits of precision. If that doesn't allow for equivalency checks, then we'll drop it down to 14 di...
by cbruce
May 21, 2019 16:11
Forum: General
Topic: How do you interoperate with other applications using double-precision floating-point?
Replies: 15
Views: 362

Re: How do you interoperate with other applications using double-precision floating-point?

.
Thanks srvaldez, but it looks like no one can verify it between different compilers/platforms without a LOT of testing. So now I'm just trying to figure out which way I want to work around the issue in my application (as described above).
by cbruce
May 21, 2019 3:52
Forum: General
Topic: How do you interoperate with other applications using double-precision floating-point?
Replies: 15
Views: 362

Re: How do you interoperate with other applications using double-precision floating-point?

. Oh again... My friend recommended that, if possible, when trying to implement interactive applications (with double precision needs) with multiple code bases and on multiple platforms... "IF" it is just the current running instances that need to pass accurate data back and forth for imme...
by cbruce
May 21, 2019 3:38
Forum: General
Topic: How do you interoperate with other applications using double-precision floating-point?
Replies: 15
Views: 362

Re: How do you interoperate with other applications using double-precision floating-point?

. Oh... and the MatLab code is just the couple of equations that I've commented into the code stub. I can't show proper math equations here, so that's the best I could do. Note: The results are technically correct - it's just that there is a difference in the precision of the results in the FreeBASI...
by cbruce
May 21, 2019 3:34
Forum: General
Topic: How do you interoperate with other applications using double-precision floating-point?
Replies: 15
Views: 362

Re: How do you interoperate with other applications using double-precision floating-point?

. And here is a test code stub that will compile and run... ' ======================================================================= ' This stub program evaluates the Mann iteration of a Mandelbrot function. ' ======================================================================= #include "fb...
by cbruce
May 21, 2019 3:32
Forum: General
Topic: How do you interoperate with other applications using double-precision floating-point?
Replies: 15
Views: 362

Re: How do you interoperate with other applications using double-precision floating-point?

You'll need the fbcomplex library ... ' ****************************************************************** ' fbcomplex.bas : Complex number library for FreeBASIC ' ------------------------------------------------------------------ ' Based on ComplexMath Delphi library by E. F. Glynn ' http://www.efg...
by cbruce
May 21, 2019 3:31
Forum: General
Topic: How do you interoperate with other applications using double-precision floating-point?
Replies: 15
Views: 362

Re: How do you interoperate with other applications using double-precision floating-point?

. First - in case you are having problems sleeping... here is a little light reading: The pitfalls of verifying floating-point computations - Monniaux - May 23, 2008 - 0701192.pdf (This one talks specifically about the CPU register and memory issues) https://arxiv.org/pdf/cs/0701192.pdf What Every C...
by cbruce
May 21, 2019 1:56
Forum: General
Topic: How do you interoperate with other applications using double-precision floating-point?
Replies: 15
Views: 362

Re: How do you interoperate with other applications using double-precision floating-point?

. I've already had problems with the number of significant digits MrSwiss. Here's why... (I think)... because of the number of significant digits available to Doubles in different compilers, runtimes, etc.: FreeBASIC (15 digits): 4.940656458412465 e-324 to 1.797693134862316 e+308 -4.940656458412465 ...
by cbruce
May 20, 2019 23:27
Forum: General
Topic: How do you interoperate with other applications using double-precision floating-point?
Replies: 15
Views: 362

How do you interoperate with other applications using double-precision floating-point?

Since double-precision floating-point values/digits/rounding can (do) vary between programming languages and platforms... how do you write code that uses doubles that needs to interoperate with other people's applications?

Thanks!
Bruce
by cbruce
May 17, 2019 16:06
Forum: General
Topic: FBComplex - complex number library - 64bit?
Replies: 5
Views: 230

Re: FBComplex - complex number library - 64bit?

Thanks srvaldez! I must have been copying the 32bit version to the 64bit lib directory. I deleted everything and started over and it works good now.
by cbruce
May 17, 2019 15:20
Forum: General
Topic: FBComplex - complex number library - 64bit?
Replies: 5
Views: 230

Re: FBComplex - complex number library - 64bit?

. @srvaldez ... the lib source code is included and I built it for 32bit and tested ok ... and then I rebuilt it for 64bit, which the mandel program finds incompatible when I try to compile it for 64bit. @TouristTrap ... Thanks! but the console program I'm writing will need to run on Linux as well. ...
by cbruce
May 17, 2019 2:49
Forum: General
Topic: FBComplex - complex number library - 64bit?
Replies: 5
Views: 230

FBComplex - complex number library - 64bit?

. Has anyone used jdebord's "FBComplex: complex number library" with FB 64bit? https://www.freebasic.net/forum/viewtopic.php?f=8&t=19115 http://www.unilim.fr/pages_perso/jean.debord/tpmath/fbcomplex.zip I'm attempting to run his "mandel.bas" demo program as 64bit. I'm able to...
by cbruce
May 10, 2019 17:34
Forum: General
Topic: Problem writing 8GB array to disk
Replies: 25
Views: 721

Re: Problem writing 8GB array to disk

. Just tried a bunch of other different sizes and offsets over 4GB... fwrite and fread are totally screwed for any i/o using an exact 4GB variable or greater . It looks like writing and reading files is limited to GETs and PUTs of less than 4GB at once! It's CHUNK'ing TIME !!! Thanks! Bruce
by cbruce
May 10, 2019 16:55
Forum: General
Topic: Problem writing 8GB array to disk
Replies: 25
Views: 721

Re: Problem writing 8GB array to disk

@counting_pine... I was incorrect earlier about being able to GET an 8GB array.

Yes... it did return a successful read.

No... it failed... the data in the receiving array was all zeros!

Go to advanced search