Ask for recommended module for precise number



Dear all,

Currently I am writing a mathematic module which has multiplications
and divisions of very small and big numbers. I use log() and exp() to
handle those problem, but it makes the codes less understandable and
intitutive.

Therefore, I am planning to write a new module to automatically convert
the number into log space (internally) if it is too big or too small.

I hope to ask whether there is already some modules in PERL or C
perform this tasks. Do anyone have some idea?

Thanks in advance.


Tom

.



Relevant Pages

  • Re: introduction to BNF, concrete syntax trees
    ... and create a concrete syntax tree of it. ... Before I start writing my ... application to parse the above, I need to understand how to do this on ... exp "-" exp | ...
    (comp.compilers)
  • Re: 99 ^ 99 in C
    ... without increasing the number of multiplications: ... Which leads to the general Oalgorithm: ... double pow(double fac, unsigned int exp) ... double res = 1.0; ...
    (comp.lang.c)
  • Re: " f^ [n](x) = exp( n/ phi (x) D ) o x "
    ... exp(n/ phi' (x) D) o x with a very simple ... way of writing the Taylor series. ... Amitiés, Alain ...
    (sci.math)
  • Exponent question
    ... I am new to C and I am writing a program for a class I am taking. ... use a exponent but I can not figure how to do it. ... exp() or pow() but I can not figure out how to do it. ...
    (comp.lang.c)