I'm performing symbolic differentiation on 2*x^(3.7). The diff command returns
>> diff(2*x^(3.7))ans =(37*x^(27/10))/5
I'd like to see the answer as 7.4*x^(2.7). Using the vpa command,
>> vpa(diff(2*x^(3.7)))ans =7.4*x^(27/10)
It gives the 7.4, but it does not affect the exponent. Is there any way to convert all the fractions to decimals in a symbolic expression like this?
Best Answer