用matlab解带有字符的二元一次方程>> syms A B a b x;>> [A,B]=solve('a*cos(x)=2*A*x+B','2*A*asin(2*A/b)+B=(-b)*sqrt(1-(2*A/b)^2)');Warning:Explicit solution could not be found.

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/02 18:26:26
用matlab解带有字符的二元一次方程>> syms A B a b x;>> [A,B]=solve('a*cos(x)=2*A*x+B','2*A*asin(2*A/b)+B=(-b)*sqrt(1-(2*A/b)^2)');Warning:Explicit solution could not be found.

用matlab解带有字符的二元一次方程>> syms A B a b x;>> [A,B]=solve('a*cos(x)=2*A*x+B','2*A*asin(2*A/b)+B=(-b)*sqrt(1-(2*A/b)^2)');Warning:Explicit solution could not be found.
用matlab解带有字符的二元一次方程
>> syms A B a b x;
>> [A,B]=solve('a*cos(x)=2*A*x+B','2*A*asin(2*A/b)+B=(-b)*sqrt(1-(2*A/b)^2)');
Warning:Explicit solution could not be found.

用matlab解带有字符的二元一次方程>> syms A B a b x;>> [A,B]=solve('a*cos(x)=2*A*x+B','2*A*asin(2*A/b)+B=(-b)*sqrt(1-(2*A/b)^2)');Warning:Explicit solution could not be found.
这个方程就是解不了,无法得到显式解
可以将第一式变形后得到B=a*cos(x)-2*A*x,带入第二式,会得到一个关于A的超越方程.然后数值求解这个超越方程就可以了