Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!motcsd!hpda!hpcuhb!hpsqf!hpqtdla!bww From: bww@hpqtdla.HP.COM (Brian Woodroffe) Newsgroups: comp.lang.c Subject: Gamma function: implementation? Message-ID: <430008@hpqtdla.HP.COM> Date: 15 Sep 89 07:47:54 GMT Organization: HP, Queensferry Telecomms (UK) Lines: 24 I am trying to implement a port of a program that calls for a "gamma" function. Unfortunately the compiler / math's library I am using does not have such a function. Can any one post, or mail me a copy of a PD - C program to implement a gamma function? As second question; what is a gamma function anyway? (I understand that a factorial is the degenerate integer case.) And what is a gamma function used for and where? Thank you, Brian Woodroffe. PS: I am interrested in an implementation that is accurate enough for 24-bit significand and a 7 bit exponent; base 2; ie single precision. +--------------------------------+-----------------------------------+ | Brian Woodroffe | | | Hewlett Packard Ltd | ARPA: bww@hpsqf | | Queensferry Telecomms Division | bww%hpsqf@hplabs.hp.com | | South Queensferry | UUCP: ..!hplabs!hpsqf!bww | | West Lothian | JANET: bww%hpqtdla@hpl.hp.co.uk | | Scotland EH30 9TG. | PHONE: +44-31-331-7234 | +--------------------------------+-----------------------------------+