Approximating /transforming /absolute error

2 ビュー (過去 30 日間)
Opariuc Andrei
Opariuc Andrei 2020 年 10 月 27 日
コメント済み: Alan Stevens 2020 年 10 月 28 日
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 .

採用された回答

Alan Stevens
Alan Stevens 2020 年 10 月 27 日
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 件のコメント
Opariuc Andrei
Opariuc Andrei 2020 年 10 月 28 日
Oh master , please accept my humble thank you :)
Alan Stevens
Alan Stevens 2020 年 10 月 28 日
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.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePolynomials についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by