I’m trying to compute central moment in Mathematica with arbitrary precision. However with different input format I got different results.
Clearly first moment should be 0 exact, but Mathematica is not giving me 0 for input with floating points. Is there any way to force it to use arbitrary precision? My input is a CSV file with floating point numbers like xxx.xx
CentralMoment[{3,0.7}, 1]=0.x10^-16 // very close to 0, but not exact
CentralMoment[{3,7/10}, 1]=0
//You could try the above with Wolfram alpha online
Here, it does this
while
so presumably it’s reading them as of some finite precision. Now, since
I guess what you want is
SetPrecision.