[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Precision of fsolve
From: |
Daniel Tourde |
Subject: |
Precision of fsolve |
Date: |
Tue, 22 Sep 1998 13:46:54 +0200 |
Hello,
I am using the function fsolve like this :
y(1) = 12*((x(3)*x(1))/2)/E - nlcoef(3);
y(2) = 12*((x(3)*x(2)+x(1)*x(4))/6)/E - nlcoef(4);
y(3) = 12*((P*x(3)/2+x(4)*x(2)+x(1)*x(5))/12)/E - nlcoef(5);
y(4) = 12*((P*x(4)/2+x(5)*x(2))/20)/E - nlcoef(6);
y(5) = 12*((P*x(5))/60)/E - nlcoef(7);
Some of my nlcoef values are very small (between 1e-7 and 1e-10) and it
happens that the solutions send back by fsolve can be wrong due to
rounding and precision errors.
My question is the following :
How can I increase the precision of fsolve, how can I lower the
admissible error ?
Thanks in advance for any answer
Best regards
Daniel Tourde
--
*********************************************************************
Daniel TOURDE E-mail : address@hidden
The Aeronautical Research Institute of Sweden Tel : +46 8 634 13 44
P.O. Box 11021 S-161 11 BROMMA, Sweden Fax : +46 8 25 34 81
*********************************************************************
- Precision of fsolve,
Daniel Tourde <=