From: J DOT Bischoff AT airbus DOT dasa DOT de Message-Id: <9801260854.AA03526@axe.bre.da> Subject: Re: math functions To: jltaylor AT cyber-quest DOT com (Jeff Taylor) Date: Mon, 26 Jan 1998 9:54:40 MET Cc: djgpp AT delorie DOT com In-Reply-To: <34CA750A.7715@cyber-quest.com>; from "Jeff Taylor" at Jan 24, 98 6:11 pm Precedence: bulk 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 | | ---- +-----------------+---------------------------------+ | | | Aerodynamic Data Department (EFD) | | Dasa Airbus | Huenefeldstrasse 1-5 D-28199 Bremen (Germany) |