loosing precision extremely in fraction expression

1 回表示 (過去 30 日間)
fima v
fima v 2020 年 4 月 14 日
編集済み: Ameer Hamza 2020 年 4 月 14 日
Hello i have a two numbers (D1 D2) which are extremly close to each other very close,but when iput them into the formula shown bellow i get numbets(T1 T2) which differ by 100 then the difference original numbers .
is there a way to increase the presition of this fraction expresion so i will get error_D =errot_T
D1=1.981;
D2=1.981258264413013;
T1=(68.4704*D1-106.0187)./(0.5892*D1-0.2438);
T2=(68.4704*D2-106.0187)./(0.5892*D2-0.2438);
error_D=D1-D2
error_T=T1-T2
error_D = -2.5826e-04
error_T = -0.0139

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 4 月 14 日
編集済み: Ameer Hamza 2020 年 4 月 14 日
This is not an issue of precision. It is the property of the function itself. Consider a function and choose two numbers , They have a difference of . But if I apply the function, I get a difference of on their output. As you can see, there is nothing I can do to improve the 'precision'. This is already the exact output of the function.
I can define an arbitrary function to further magnify this effect: .

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by