Approximating /transforming /absolute error
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Opariuc Andrei
am 27 Okt. 2020
Kommentiert: Alan Stevens
am 28 Okt. 2020
input data
r=3;h=8;Dv=0.1;
Dr=(Dv/3)*(1/(1/3*pi*h*2*r))
the result is 6.6315e-04 , how do i transform /aproximate/etc the result on the left to 0.00066 ? I ran a conversion to decimal using Symbolab (website) and the exact result of the conversion is 0.00066315 .
0 Kommentare
Akzeptierte Antwort
Alan Stevens
am 27 Okt. 2020
For display purposes you can use fprintf:
>> r=3;h=8;Dv=0.1;
Dr=(Dv/3)*(1/(1/3*pi*h*2*r));
fprintf('%0.2g \n',Dr)
0.00066
7 Kommentare
Alan Stevens
am 28 Okt. 2020
You're welcome. Note that I've suggested a very simplistic approach. A more advanced approach might involve a Monte-Carlo simulation and/or allow different tolerances on each of A, B etc.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Polynomials finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!