题目
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 =
[]
>>
>> 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 =
[]
>>
提问时间:2021-04-01
答案
最后一句改成[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吧!
x =atan(y/x) - a
y =x^2 + y^2
不知道是不是matlab求不出解析解来!用mathematica或者maple吧!
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
热门考点