we******@gmail.com wrote:

<snip>

C is just a rotten language for doing real mathematics. Most of
these problems go away in other languages -- especially those that support

arbitrary precision integers (like Java, Python, etc.)

Any advice ? Any link to a non verbose reference ?

Yeah, pick a different language.

These seem like overly strong statements. Googling "arbitrary precision

arithmetic C" produces many hits -- can't one use one of these

packages? I think many Fortran and C compilers support both 8 and 4

byte integers nowadays, whereas Python uses either 4 byte or arbitrary

precision integers (ABI). ABI's are much slower to work with than 8

byte integers, which may be all that is needed for a particular

calculation.

C99 (the latest C standard) has added many features for numerical

computation. One of the few books covering C99 is "C Primer Plus", 4th

Edition, by Stephen Prata.