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/05/09 07:56:00
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 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
是两行一列的啊!

是两行一列,你看错了吧

在matlab中,如何把符号表达式变成数值表达式例如syms x1 x2;s=3*x1 - x2 - 2;我要让x1=2,x2=3来计算s的值, 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符号计算,求和.对于x>0 ,f=(2/(2*k+1))*(((x-1)/(x+1))^(2*k+1)),函数f对k从0到无穷求和 .(提示:理论结果为ln x ).matlab里我的代码:syms k;syms x positive;f=(2/(2*k+1))*(((x-1)/(x+1))^(2*k+1));s=simple(symsum(f,k,0, MATLAB 中syms matlab符号计算问题syms a x;f=a*sin(x)+5;f2=subs(f,{a,x},{2,sym('pi/3')})结果为什么是3^(1/2)+5 matlab中syms什么意思? matlab中求积分需要定义符号,然后我想带入数值怎么办syms r a1 b u t a2 F1;%定义符号S1='-10/3*r*cos(2*a1-b-u+t)';%要求积分的式子F1=int(int(S1,u,0,pi+a1+t),a1,b-a2,b);%积分结果为F1 =- (10*r*(cos(b - 2*a2 + t)/2 - cos(b 用matlab求方程组中一个未知数的表达式由6个方程组成的方程组,里面有24个符号,只有加减乘除没有其他运算,现在我想把其中一个符号用其他符号的表达式表示出来matlab代码如下syms n0 r1 N10 S I0 matlab解带符号的一元六次方程组matlab如何解带符号的一元六次方程组就是定义了syms x real matlab符号计算结果怎么显示小数 matlab无法进行符号矩阵计算怎么办 matlab 一表达式求积分出来含有EllipticE(1/2*(-1/z^2)^(1/2))和csgn(z),求r/(r^2+z^2)^(5/2)的积分过程如下:>> syms sita r z d>> S=r/(r^2+z^2)^(5/2);>> s1=int(S,r,0,d*sin(sita))s1 =1/3*(-(z^2)^(3/2)+(d^2*sin(sita)^2+z^2)^(3/2))/(d^2*sin matlab生成x1 x2 x3i写一个matlab脚本,根据i值,循环产生符号比如i=3,则产生syms x1 x2 x3若i=4,则产生syms x1 x2 x3 x4 matlab中符号变量怎么比较大小?计算得到了一个数组:m[100],怎么找出其中的最大项?是符号数组,开头定义了syms m; matlab计算函数值,syms x y; y=2*x;如何求x=2时y的值 C语言可不可以像matlab那样进行带有未知数的公式计算呢?就是 syms x y 诸如此类 matlab运行syms x;s=solve(x^3+cos(x)) 为什么结果总是[ empty sym ]啊, MATLAB带符号计算如何彻底计算clear;clc;syms muG muL muR;G=muG;L=muL;R=muR;a=1.2825/(0.288*muL);b=muL-0.577215/a;cdfL=vpa(exp(-exp(-a*(L-b))));pdfL=vpa(a*exp(-a*(L-b))*cdfL);cdfL=subs(cdfL);sigmaG=muG*0.07sigmaL1=normpdf(norminv(cdfL))/pdfLs