Question: How to fix the mantissa

Hi,

This is my first question here! 

I want to show weird things that can happen in numerical analysis. The example I use is the sum from i=1 to infinity of (1/i) (the harmonic series). In theory this series diverge but in practice it could converge. 

I would want all the calculations to use floating point arithmetic with small mantissa (for instance m=1,2,3)). But the problem is I don't know how to fix mantissa in maple... I have the following fonction: 

g := n -> evalf[m](sum(evalf[m](1/i),i=1..m))

but evalf just show significant digit without changing the mantissa.... 

I hope my question is clear! Thanks for your help! 

 

 

Please Wait...