relative errors
- From: freelancerprogrammer@xxxxxxxxxxx
- Date: 29 Apr 2005 13:55:35 -0700
Different digits of significance in calculation give different answers
to the same equation. Say, for example, if I have g(x)=x^3-5x^2+6x+2.1.
I have different answers for, say x=2.7, by using roundoff, exact, etc.
in my calculation. How do I minimize relative errors like this? I was
thinking to rewrite the function as x^3(1-5/x-6/(x^2)+2.1/(x^3)), since
x^3 dominates the answer when it's really big. But it didn't seem to
minimize relative errors. Can anyone point it out to me? Thanks.
.
- Prev by Date: Re: stop-test for iterative methods
- Next by Date: Re: iterative algorithm for calculating the moving average
- Previous by thread: Complex fitting
- Index(es):
Relevant Pages
|