Mail Archives: djgpp/1998/01/26/03:54:56
Hello!
>
> I just trying to do some heavier than usual math (for me). I'm using
> the -lm switch on the link command line. The gamma and pow functions
> are not giving me the answers I expect.
> For pow(1.000336, -5) I get Infinity. Is this outside the range of
> pow?
> For gamma(5) I get 3.178, I'm expecting 24. Are there two functions
> called gamma functions?
>
Please note, that gamma(x) returns ln|Gamma(x)|, not Gamma(x) !!
So: exp(3.178) ~ 24.
--
| | | Jens Bischoff | Daimler-Benz Aerospace Airbus |
| --<O>-- +-----------------+---------------------------------+
| | | Aerodynamic Data Department (EFD) |
| Dasa Airbus | Huenefeldstrasse 1-5 D-28199 Bremen (Germany) |
- Raw text -