关于matlab解方程solve('2*x^3+11*x^2-68*x-260=0','x')ans =1/6*(5977+72*i*21665^(1/2))^(1/3)+529/6/(5977+72*i*21665^(1/2))^(1/3)-11/6-1/12*(5977+72*i*21665^(1/2))^(1/3)-529/12/(5977+72*i*21665^(1/2))^(1/3)-11/6+1/2*i*3^(1/2)*(1/6*(5977+72*i*21665^
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/25 12:39:22
关于matlab解方程solve('2*x^3+11*x^2-68*x-260=0','x')ans =1/6*(5977+72*i*21665^(1/2))^(1/3)+529/6/(5977+72*i*21665^(1/2))^(1/3)-11/6-1/12*(5977+72*i*21665^(1/2))^(1/3)-529/12/(5977+72*i*21665^(1/2))^(1/3)-11/6+1/2*i*3^(1/2)*(1/6*(5977+72*i*21665^
关于matlab解方程
solve('2*x^3+11*x^2-68*x-260=0','x')
ans =
1/6*(5977+72*i*21665^(1/2))^(1/3)+529/6/(5977+72*i*21665^(1/2))^(1/3)-11/6
-1/12*(5977+72*i*21665^(1/2))^(1/3)-529/12/(5977+72*i*21665^(1/2))^(1/3)-11/6+1/2*i*3^(1/2)*(1/6*(5977+72*i*21665^(1/2))^(1/3)-529/6/(5977+72*i*21665^(1/2))^(1/3))
-1/12*(5977+72*i*21665^(1/2))^(1/3)-529/12/(5977+72*i*21665^(1/2))^(1/3)-11/6-1/2*i*3^(1/2)*(1/6*(5977+72*i*21665^(1/2))^(1/3)-529/6/(5977+72*i*21665^(1/2))^(1/3))
解出来的结果是这么长的表达式,如何才能直接显示具体的数呢?
关于matlab解方程solve('2*x^3+11*x^2-68*x-260=0','x')ans =1/6*(5977+72*i*21665^(1/2))^(1/3)+529/6/(5977+72*i*21665^(1/2))^(1/3)-11/6-1/12*(5977+72*i*21665^(1/2))^(1/3)-529/12/(5977+72*i*21665^(1/2))^(1/3)-11/6+1/2*i*3^(1/2)*(1/6*(5977+72*i*21665^
再运算后输入命令:
vpa(ans,10)
上式中的ans是你之前的表达式,10表示精确位数.
在MATLAB2010版本里的是:vpa('ans',10)