PLEASE SOLVE THE EXPRESSION

5 ビュー (過去 30 日間)
amit jain
amit jain 2011 年 2 月 11 日
PLEASE SOLVE THE EXPRESSION
y=2^2 + log?sinx
USING MATLAB.
  1 件のコメント
amit jain
amit jain 2011 年 2 月 11 日
it would be y=2^2 + log pi sinx

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 2 月 11 日
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 件のコメント
amit jain
amit jain 2011 年 2 月 11 日
actually ques is y=2^2 + log pi sinx
Walter Roberson
Walter Roberson 2011 年 2 月 11 日
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

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by