HOW DO I ADD DIVSIONBY ZERO EQUATION FOR MATLAB

1 回表示 (過去 30 日間)
STEVE JEFFREY
STEVE JEFFREY 2015 年 7 月 11 日
回答済み: Matt J 2015 年 7 月 11 日
Speed=C/Distance/Time=0
Distance infinite space = Pi/0
D Hopitals rule means you can divide By 0 when it is infinity. As speed goes to C the limite goes to zero T. That proves infinite not finite space. How do I reprogram matlab to ignore divison by zero errors and give C as the answer a finite speed.

採用された回答

Matt J
Matt J 2015 年 7 月 11 日
You could do some sort of thresholding when the limit starts to take hold accurately enough:
if C>threshold
%Use L'Hospital's rule
end

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by