关于 matlab解tan函数的方程组问题。

12 views (last 30 days)
腾龙娱乐开户www.hn621.com
Answered: li on 15 Jun 2022
用matlab求解方程组,求x,y。
50=x*tan(y);
50=-x*tan(2.18*y);
我用的代码[x,y]=solve('50=x*tan(y)','-50=x*tan(y*2.18)'),得不出正确结果,求高手指点

Accepted Answer

li
li on 15 Jun 2022
syms x y
eq1=50-x*tan(y);
eq2=50+x*tan(2.18*y);
[x y]=vpasolve([eq1 eq2],[x y])
x =113.5068754077900476166628671924
y =97.80429959288978949930870910209850+x*tan(2.18*y);
三角函数 还有其他根,看看需要的区间
例如:
[a b]=vpasolve([eq1 eq2],[x y],[100 1000;200 1000])
a =176.12054815008266545351979983305
b =798.24115223287828197415592883328

More Answers (0)

Community Treasure Hunt

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

Start Hunting!