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)

 채택된 답변

Torsten
Torsten 2022년 10월 3일

0 개 추천

syms t
eqn = 1000/(exp(log(4) - t/40) + 1) == 800;
tsol = vpa(solve(eqn, t))
tsol = 
110.90354888959124765151968835627

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Multiobjective Optimization에 대해 자세히 알아보기

질문:

Ej
2022년 10월 3일

답변:

2022년 10월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by