MATLAB: The output is not simplified to one number

it suppose shows one number

Hi guys,
I need help with this issue please.
my output are not simplified at all. For example on of the outputs is
>> P(1)
ans =
(3931879*sin(exp(1) - 2))/4000000 - (1862469*sin(exp(2) - 2))/80000000 + (45497457*sin(exp(1/3) - 2))/40000000 - (18734247*sin(exp(2/3) - 2))/16000000 - (8607627*sin(exp(4/3) - 2))/16000000 + (6776217*sin(exp(5/3) - 2))/40000000 - (35386911*sin(1))/80000000
This all in on line i should has a one number instead of all this long expression
Best,

Best Answer

vpa(P(1))
if you want to evaluate to a symbolic number with some number of decimal places.
double(P(1))
if you want to evaluate to a double precision floating point number.
Related Question