作业帮 > 数学 > 作业

matlab解非线性方程组

来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:数学作业 时间:2024/06/14 06:24:16
matlab解非线性方程组
接下来是:
c*x*(h^2 + x^2 + y^2 + h^2*cotd(30)^2 - 2*h*x*cotd(30))^(1/2)*(h^2 + x^2 + y^2 + h^2*cotd(45)^2 - 2*h*x*cotd(45))^(1/2)*(h^2 + x^2 + y^2 + h^2*cotd(60)^2 - 2*h*x*cotd(60))^(1/2) - c*h*cotd(45)*(h^2 + x^2 + y^2 + h^2*cotd(30)^2 - 2*h*x*cotd(30))^(1/2)*(h^2 + x^2 + y^2 + h^2*cotd(60)^2 - 2*h*x*cotd(60)) + c*h*cotd(60)*(h^2 + x^2 + y^2 + h^2*cotd(30)^2 - 2*h*x*cotd(30))^(1/2)*(h^2 + x^2 + y^2 + h^2*cotd(45)^2 - 2*h*x*cotd(45))^(1/2)*(h^2 + x^2 + y^2 + h^2*cotd(60)^2 - 2*h*x*cotd(60))^(1/2);
S=solve(f1,f2,'x','y')
方程2很蛋疼啊
matlab解非线性方程组
matlab中有专门的函数来解决方程组的,我给你举一个例子好了,你一看就会了.这个我帮别人写过的一道题,分享给你
(a-x)^2+(b-y)^2=e^2
(C-x)^2+(D-y)^2=v^2
已知a,b,c,d,e,v 值
X,Y 请问用 matlab 如何写,就是求2个园的交点问题.
仿真程序为:
global a b c d e v;
>> a=1;b=0;c=-1;d=0;e=1.5;v=1.5;%%%%%%%设定你这几个未知数的值
>> syms x y;%%%%%%x,y是变量
>> [x,y]=solve('x^2+y^2-2*a*x-2*b*y=e^2-a^2-b^2','x^2+y^2-2*c*x-2*d*y=v^2-c^2-d^2');%%%%我把平方展开了
>> x=vpa(x,4);y=vpa(y,4);%%%%%%%%%%%取4位有效数字
%%%%%%%%%%
格式就是用solve(方程1,方程2,…求解变量1,变量2,…);
再问: 这是原始公式,其中已知量的值:v=800、c=300000、f=120 000 (就是120MHz,带入公式时单位换算成KHz)、h=10。谢谢啊。