PLEASE SOLVE THE EXPRESSION

4 visualizaciones (últimos 30 días)
amit jain
amit jain el 11 de Feb. de 2011
PLEASE SOLVE THE EXPRESSION
y=2^2 + log?sinx
USING MATLAB.
  1 comentario
amit jain
amit jain el 11 de Feb. de 2011
it would be y=2^2 + log pi sinx

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 11 de Feb. de 2011
What does your ? indicate?
If your expression is y = 2^2 + log(sin(x)) and you need to solve for x, then
y - 2^2 = log(sin(x))
exp(y - 2^2) = exp(log(sin(x))
exp(y - 2^2) = sin(x)
arcsin(exp(y - 2^2)) = x
You can do this mechanically in Matlab if you have the Symbolic toolbox.
If you need to solve it numerically for a given y, then consider solving the expression
2^2 + log(sin(x)) - y = 0
perhaps using fzero()
  2 comentarios
amit jain
amit jain el 11 de Feb. de 2011
actually ques is y=2^2 + log pi sinx
Walter Roberson
Walter Roberson el 11 de Feb. de 2011
y - 2^2 = log(pi*sin(x))
exp(y - 2^2) = exp(log(pi*sin(x))
exp(y - 2^2) = pi*sin(x)
exp(y - 2^2)/pi = sin(x)
arcsin(exp(y - 2^2)/pi) = x

Iniciar sesión para comentar.

Categorías

Más información sobre Programming en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by