MATLAB: How to simplify differentiation

MATLABsimplify differentiation answer

Hi,
I was wondering how to simplify differentiantion in the expression below:
L = 1 + 0.00004*x + 0.0000005*x^2
My answer returns the following value:
ans =
(4722366482869645*x)/4722366482869645213696 + 1/25000
I am looking for
ans =
0.00004 + 0.000001*x
Thank you in advance!
RB

Best Answer

Use the vpa function:
syms x
Eqn = (4722366482869645*x)/4722366482869645213696 + 1/25000;
Eqn = vpa(Eqn, 6)
producing:
Eqn =
0.000001*x + 0.00004
.