problem using the solve method
2 ビュー (過去 30 日間)
古いコメントを表示
i am trying to solve for t when the following equation: 1000/(exp(log(4) - t/40) + 1) is equal to 800, but matlab wont give me an exact solution. This is my code and what the outcome is:
>> syms t
>> eqn = 1000/(exp(log(4) - t/40) + 1) == 800;
>> solve(eqn, t)
ans =
80*log(2) + 31216573840826795/562949953421312
How do iget it to give me the exact solution (which should be around 110.9)
0 件のコメント
採用された回答
Torsten
2022 年 10 月 3 日
syms t
eqn = 1000/(exp(log(4) - t/40) + 1) == 800;
tsol = vpa(solve(eqn, t))
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!