The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Loss of information using small numbers (e-10), MEX, C++
Replies: 7   Last Post: Dec 30, 2013 11:53 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Håkon Seljåsen

Posts: 10
Registered: 12/4/13
Re: Loss of information using small numbers (e-10), MEX, C++
Posted: Dec 30, 2013 9:55 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Is there anything I can do by changing the sequence of operations. Ie. by multiplying the small numbers together first and then multiplying the result with the bigger numbers?

For example:
long double temp=(1/1500^2)*1e-10;

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.