matlab符号计算syms s1 s2 t f ps1=solve('2*3^(1/2)*cos(t)*sin(f)-2+2*cos(t)*cos(f)-3^(1/2)*sin(p)*sin(t)*cos(f)+sin(p)*sin(t)*sin(f)=0','f');s2=simplify(s1)结果为什么是2行2列,请各位好手帮忙这是我算的,为什么和你们不一
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/06 17:55:06
![matlab符号计算syms s1 s2 t f ps1=solve('2*3^(1/2)*cos(t)*sin(f)-2+2*cos(t)*cos(f)-3^(1/2)*sin(p)*sin(t)*cos(f)+sin(p)*sin(t)*sin(f)=0','f');s2=simplify(s1)结果为什么是2行2列,请各位好手帮忙这是我算的,为什么和你们不一](/uploads/image/z/1582145-17-5.jpg?t=matlab%E7%AC%A6%E5%8F%B7%E8%AE%A1%E7%AE%97syms++s1+s2+t+f+ps1%3Dsolve%28%272%2A3%5E%281%2F2%29%2Acos%28t%29%2Asin%28f%29-2%2B2%2Acos%28t%29%2Acos%28f%29-3%5E%281%2F2%29%2Asin%28p%29%2Asin%28t%29%2Acos%28f%29%2Bsin%28p%29%2Asin%28t%29%2Asin%28f%29%3D0%27%2C%27f%27%29%3Bs2%3Dsimplify%28s1%29%E7%BB%93%E6%9E%9C%E4%B8%BA%E4%BB%80%E4%B9%88%E6%98%AF2%E8%A1%8C2%E5%88%97%2C%E8%AF%B7%E5%90%84%E4%BD%8D%E5%A5%BD%E6%89%8B%E5%B8%AE%E5%BF%99%E8%BF%99%E6%98%AF%E6%88%91%E7%AE%97%E7%9A%84%EF%BC%8C%E4%B8%BA%E4%BB%80%E4%B9%88%E5%92%8C%E4%BD%A0%E4%BB%AC%E4%B8%8D%E4%B8%80)
matlab符号计算syms s1 s2 t f ps1=solve('2*3^(1/2)*cos(t)*sin(f)-2+2*cos(t)*cos(f)-3^(1/2)*sin(p)*sin(t)*cos(f)+sin(p)*sin(t)*sin(f)=0','f');s2=simplify(s1)结果为什么是2行2列,请各位好手帮忙这是我算的,为什么和你们不一
matlab符号计算
syms s1 s2 t f p
s1=solve('2*3^(1/2)*cos(t)*sin(f)-2+2*cos(t)*cos(f)-3^(1/2)*sin(p)*sin(t)*cos(f)+sin(p)*sin(t)*sin(f)=0','f');
s2=simplify(s1)
结果为什么是2行2列,请各位好手帮忙
这是我算的,为什么和你们不一样,很复杂的结果,而且不是两行一列,用逗号隔开
matlab符号计算syms s1 s2 t f ps1=solve('2*3^(1/2)*cos(t)*sin(f)-2+2*cos(t)*cos(f)-3^(1/2)*sin(p)*sin(t)*cos(f)+sin(p)*sin(t)*sin(f)=0','f');s2=simplify(s1)结果为什么是2行2列,请各位好手帮忙这是我算的,为什么和你们不一
syms s1 s2 t f p
s1=solve('2*3^(1/2)*cos(t)*sin(f)-2+2*cos(t)*cos(f)-3^(1/2)*sin(p)*sin(t)*cos(f)+sin(p)*sin(t)*sin(f)=0','f');
s2=simplify(s1)
s2 =
2*atan((3^(1/2)*tan(p/2)^2 - 3^(1/2)*tan(p/2)^2*tan(t/2)^2 + 2*tan(p/2)*tan(t/2) - 3^(1/2)*tan(t/2)^2 + 3^(1/2) + (3*tan(p/2)^4*tan(t/2)^4 - 10*tan(p/2)^4*tan(t/2)^2 + 3*tan(p/2)^4 + 6*tan(p/2)^2*tan(t/2)^4 - 4*tan(p/2)^2*tan(t/2)^2 + 6*tan(p/2)^2 + 3*tan(t/2)^4 - 10*tan(t/2)^2 + 3)^(1/2))/(2*tan(p/2)^2 - 2*3^(1/2)*tan(t/2)*tan(p/2) + 2))
2*atan((3^(1/2)*tan(p/2)^2 - 3^(1/2)*tan(p/2)^2*tan(t/2)^2 + 2*tan(p/2)*tan(t/2) - 3^(1/2)*tan(t/2)^2 + 3^(1/2) - (3*tan(1/2*p)^4*tan(1/2*t)^4 - 10*tan(1/2*p)^4*tan(1/2*t)^2 + 3*tan(1/2*p)^4 + 6*tan(1/2*p)^2*tan(1/2*t)^4 - 4*tan(1/2*p)^2*tan(1/2*t)^2 + 6*tan(1/2*p)^2 + 3*tan(1/2*t)^4 - 10*tan(1/2*t)^2 + 3)^(1/2))/(2*tan(p/2)^2 - 2*3^(1/2)*tan(t/2)*tan(p/2) + 2))
>> s1
s1 =
2*atan((3^(1/2)*tan(p/2)^2 - 3^(1/2)*tan(p/2)^2*tan(t/2)^2 + 2*tan(p/2)*tan(t/2) - 3^(1/2)*tan(t/2)^2 + 3^(1/2) + (3*tan(p/2)^4*tan(t/2)^4 - 10*tan(p/2)^4*tan(t/2)^2 + 3*tan(p/2)^4 + 6*tan(p/2)^2*tan(t/2)^4 - 4*tan(p/2)^2*tan(t/2)^2 + 6*tan(p/2)^2 + 3*tan(t/2)^4 - 10*tan(t/2)^2 + 3)^(1/2))/(2*tan(p/2)^2 - 2*3^(1/2)*tan(t/2)*tan(p/2) + 2))
2*atan((3^(1/2)*tan(p/2)^2 - 3^(1/2)*tan(p/2)^2*tan(t/2)^2 + 2*tan(p/2)*tan(t/2) - 3^(1/2)*tan(t/2)^2 + 3^(1/2) - (3*tan(1/2*p)^4*tan(1/2*t)^4 - 10*tan(1/2*p)^4*tan(1/2*t)^2 + 3*tan(1/2*p)^4 + 6*tan(1/2*p)^2*tan(1/2*t)^4 - 4*tan(1/2*p)^2*tan(1/2*t)^2 + 6*tan(1/2*p)^2 + 3*tan(1/2*t)^4 - 10*tan(1/2*t)^2 + 3)^(1/2))/(2*tan(p/2)^2 - 2*3^(1/2)*tan(t/2)*tan(p/2) + 2))
>> whos s1
Name Size Bytes Class Attributes
s1 2x1 176 sym
>> whos s2
Name Size Bytes Class Attributes
s2 2x1 176 sym
>> size(s2)
ans =
2 1
是两行一列的啊!
是两行一列,你看错了吧