MATLAB: Change length of mantissa

mantissaMATLAB

How to change the accuracy of calculations? For example: >> x = log(2) x =0.6931 >> vpa(x) ans = 0.69314718055994528622676398299518041312694549560546875 I see only 53 symbols after dot. But I need to more. Help, please.

Best Answer

Under "help vpa" I find:
R = vpa(A, d) uses at least d significant (nonzero)
digits, instead of the current setting of digits.
So it seems like this could help (I do not have the VPA toolbox, but the help text looks very clear):
vpa('log(2)', 100)