LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview is computing exp(x) incorrectly!

Labview 6.1 computes exp(x) incorrectly. If there is a fix for this problem please let me know ASAP. I hope this isn't what caused the space shuttle to crash.
0 Kudos
Message 1 of 7
(3,706 Views)
Seems to work OK for me.

http://catb.org/~esr/faqs/smart-questions.html#beprecise

Good luck,

-Jim
Message 2 of 7
(3,706 Views)
What gives you the idea that it's not working? can you give an example?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 7
(3,706 Views)
Great answer. I'm going to have to remember that link.
0 Kudos
Message 4 of 7
(3,706 Views)
I'm going to translate this in italian:http://www.chiark.greenend.org.uk/~sgtatham/bugs.html , found on that site; and include it in the instruction manuals of my applications...
0 Kudos
Message 5 of 7
(3,706 Views)
Maybe you`re having trouble with floating point precision. Try setting inputs and outputs to Extended precision floating point, and see if that fixes it.

This isn`t a mistake in the computation of course, it`s an inherent problem with limited precision data types.

Shane
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 6 of 7
(3,706 Views)
Yeah, Eric Raymond has a lot of stuff worth reading.

Check out the rest of his FAQ's: http://catb.org/~esr/faqs/

and his writings:
http://catb.org/~esr/writings/

"The Cathedral and the Bazaar" is one that should definitely be read by anyone who has an interest in Open Source. "The Art of Unix Programming" is another good one.

Cheers,

-Jim
0 Kudos
Message 7 of 7
(3,706 Views)