matlab 求解带参数的方程,目的是用c表示x,y,求大神指导……代码如下>> syms x y a b c d;>> d=7.2^2+8^2;>> a=c/14.4;>> b=atan(8/7.2);>> b=atan(8/7.2);>> [x,y]=solve('y=tan(a+b)*x','x^2+y^2=d','c')Warning:2 equations in 1 variables.
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/16 04:18:07
matlab 求解带参数的方程,目的是用c表示x,y,求大神指导……代码如下>> syms x y a b c d;>> d=7.2^2+8^2;>> a=c/14.4;>> b=atan(8/7.2);>> b=atan(8/7.2);>> [x,y]=solve('y=tan(a+b)*x','x^2+y^2=d','c')Warning:2 equations in 1 variables.
matlab 求解带参数的方程,目的是用c表示x,y,求大神指导……代码如下
>> syms x y a b c d;
>> d=7.2^2+8^2;
>> a=c/14.4;
>> b=atan(8/7.2);
>> b=atan(8/7.2);
>> [x,y]=solve('y=tan(a+b)*x','x^2+y^2=d','c')
Warning:2 equations in 1 variables.
> In E:\Matlab\toolbox\symbolic\symbolic\symengine.p>symengine at 54
In mupadengine.mupadengine>mupadengine.evalin at 96
In mupadengine.mupadengine>mupadengine.feval at 137
In solve at 151
Warning:Explicit solution could not be found.
> In solve at 160
x =
[ empty sym ]
y =
[]
>>
matlab 求解带参数的方程,目的是用c表示x,y,求大神指导……代码如下>> syms x y a b c d;>> d=7.2^2+8^2;>> a=c/14.4;>> b=atan(8/7.2);>> b=atan(8/7.2);>> [x,y]=solve('y=tan(a+b)*x','x^2+y^2=d','c')Warning:2 equations in 1 variables.
最后一句改成[x,y]=solve('y=tan(a+b)*x','x^2+y^2=d','d,b');能求了,不过求出的x,y表达式里仍含有x,y.
x =atan(y/x) - a
y =x^2 + y^2
不知道是不是matlab求不出解析解来!用mathematica或者maple吧!