Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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;
temp*=900;



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.