[R] R wrong, Python rigth in calcution

Martin Møller Skarbiniks Pedersen tr@xp|@yer @end|ng |rom gm@||@com
Wed Sep 18 00:02:47 CEST 2019

  I don't understand why R computes this wrong. I know I can use gmp and
R will do it correctly.

$ echo '569936821221962380720^3 + (-569936821113563493509)^3 +
(-472715493453327032)^3' | Rscript - [1] -4.373553e+46
Correct answer is 3 and Python can do it:

$ echo

	[[alternative HTML version deleted]]

More information about the R-help mailing list