필터 지우기
필터 지우기

Intermediate step return ```InF``` while using exp

조회 수: 4 (최근 30일)
Miraboreasu
Miraboreasu 2022년 6월 3일
편집: Walter Roberson 2022년 6월 3일
```
aa=8e+05;
bb=1e+06;
tf=0.002;
temp=(-(bb*exp(bb*tf)-aa*exp(aa*tf))*exp(-bb*tf-aa*tf)+bb-aa)
```
Output is InF
I believe the InF comes from exp(bb*tf) and exp(aa*tf)
What should do to make this work? Thank you

채택된 답변

Walter Roberson
Walter Roberson 2022년 6월 3일
편집: Walter Roberson 2022년 6월 3일
aa=sym(8e+05) ;
bb =sym(1e+06) ;
tf =sym(0.002);
temp = simplify( (-(bb*exp(bb*tf)-aa*exp(aa*tf))*exp(-bb*tf-aa*tf)+bb-aa))
The answer involves two terms with exp() of -2000 and -1600, plus a constant 2000. The exp() terms are so small that they have no practical effect on the constant. The larger of the two exp() is roughly -1e-689

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Assumptions에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by