如何让solve只返回实根?
solve('.3348979766/z^2+.4018775719+.2009387860*z^2+0.5358367626e-1*z^4+0.8037551438e-2*z^6+0.6430041151e-3*z^8+0.2143347050e-4*z^10=81.6')回复:(debuger)如何让solve只返回实根?
算出来之后判断一下虚不是否为零不就行了?回复:(debuger)如何让solve只返回实根?
x=solve('.3348979766/z^2+.4018775719+.2009387860*z^2+0.5358367626e-1*z^4+0.8037551438e-2*z^6+0.6430041151e-3*z^8+0.2143347050e-4*z^10=81.6');<BR>a=x(imag(x)==0) x=solve('.3348979766/z^2+.4018775719+.2009387860*z^2+0.5358367626e-1*z^4+0.8037551438e-2*z^6+0.6430041151e-3*z^8+0.2143347050e-4*z^10=81.6')<br><br>
x=double(x); <br>
x=real(x);
页:
[1]