Problem solving exponential equation

5 visualizzazioni (ultimi 30 giorni)
Ej
Ej il 2 Ott 2022
Risposto: Torsten il 2 Ott 2022
I want to use the solve command to solve the equation (1000/(exp(log(4) - t/40) + 1 = 800) for t but I am having some issues with it. What is the correct syntax I need to use to get the answer

Risposte (1)

Torsten
Torsten il 2 Ott 2022
Your parantheses are unbalanced. After correcting it, the below code should work.
syms t
eqn = 1000/(exp(log(4) - t/40) + 1 == 800
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

Error in connector.internal.fevalMatlab

Error in connector.internal.fevalJSON
solve(eqn,t)

Community Treasure Hunt

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

Start Hunting!

Translated by