matlab - evaluate numeric part of a "sym" variable -
i need evaluate numeric part of "sym" variable in matlab(something "evalf" function in maple) instance have sym variable :
(12*(51*ee*ii - 8*39^(1/2)*ee*ii))/(aa*ll^4*ro)
"evalf" in maple gives me 12.48019224*ee*ii/(aa*ll^4*ro), there way in matlab?
i think you're looking vpa
(variable precision arithmetic) function
syms ee ii aa ll ro y = (12*(51*ee*ii - 8*39^(1/2)*ee*ii))/(aa*ll^4*ro) vpa(y)
which returns
ans = (12.48019215375377223869826038978*ee*ii)/(aa*ll^4*ro)
Comments
Post a Comment