How can I solve an equation containing log ?

4 visualizaciones (últimos 30 días)
Ketha Jaya Sandeep
Ketha Jaya Sandeep el 29 de Mzo. de 2020
Respondida: Star Strider el 29 de Mzo. de 2020
c=1692.19
m=260kg
k=91.23
x=100ft
(k*x/m)+v+(c/k)*ln((-kv+c)/c)=0
Find v ?
How to solve this equation in matlab?

Respuestas (1)

Star Strider
Star Strider el 29 de Mzo. de 2020
Use the fsolve function, because it will return complex results, and since the argument to the log function is negative it will return a complex results for ‘v’, at least during the optimisation process.
Also see the documentation section on Anonymous Functions.
Alternatively, use the Symbolic Math Toolbox solve and vpa functions

Categorías

Más información sobre Numbers and Precision en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by