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

2 次查看(过去 30 天)
```
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