Roots of a function
古いコメントを表示
I have two equations:
y1 = 2sinx1;
y2 = 2cos^2(x1) + 3sin(2x2+3);
here y1 = 0 while y2 = 1.
Can anyone please tell me which approach would be the best to find out the values of x1 and x2.
Thank you.
1 件のコメント
Torsten
2016 年 3 月 30 日
x1=0
x2=(asin(-1/3)-3)/2
Best wishes
Torsten.
採用された回答
その他の回答 (1 件)
Vlad Miloserdov
2016 年 3 月 30 日
if you still need this
A=solve('0 = 2*sin(x1)','1 = 2*cos(x1)^2 + 3*sin(2*x2+3)','x1','x2');
% first ans
A.x1(1)
A.x2(1)
% second ans
A.x1(2)
A.x2(2)
5 件のコメント
Muhammad Umar Farooq
2016 年 3 月 31 日
Torsten
2016 年 3 月 31 日
You have two equations - thus you will need MATLAB's "fsolve".
Best wishes
Torsten.
Muhammad Umar Farooq
2016 年 3 月 31 日
Torsten
2016 年 3 月 31 日
Please show your code.
Best wishes
Torsten.
Muhammad Umar Farooq
2016 年 3 月 31 日
カテゴリ
ヘルプ センター および File Exchange で Function Creation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!