How do I do this fminsearch problem?

15 ビュー (過去 30 日間)
Austin Horn
Austin Horn 2018 年 10 月 22 日
回答済み: Walter Roberson 2018 年 10 月 22 日
x^2 + 2*cos(θ) + y = α
x^2 −(3/2)*sin(θ) − y = 2.
Use the fminsearch function and the above system to find the minimum solution for α. Use initial guesses for x = 0 and y = 0. (Hint: This means solve the above equations by eliminating θ)

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 10 月 22 日
If
x^2 (3/2)*sin(θ) y = 2
then
x^2 (3/2)*sin(θ) y - x^2 + y = 2 - x^2 + y
so
-(3/2)*sin(theta) = 2 - x^2 + y
so
sin(theta) = 2/3 * (-2 + x^2 - y)
and then
theta = arcsine(2/3 * (x^2 - y - 2))
Substitute that into the first equation
x^2 + 2*cos( asin(2/3 * (x^2 - y - 2))) + y = alpha
and to minimize alpha, minimize the left hand side of that.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by