Hi All,
Just thought of sharing the code if somebody is interested,
public function LnGamma(xx:Number):Number // This function returns
the logGamma for a given value
{
var j:int;
var x:Number;
var y:Number;
var tmp:Number;
var ser:Number;
var cof:Array =
[76.18009172947146,-86.50532032941677,24.01409824083091,-1.231739572450155,0.1208650973866179e-2,-0.5395239384953e-5];
y = x = xx;
tmp = x + 5.5 - (x + 0.5) * Math.log(x + 5.5);
ser = 1.000000000190015;
for (j=0;j<=5;j++)
{
ser += (cof[j] / ++y);
}
return (Math.log(2.5066282746310005 * ser / x) - tmp);
}
On Jul 6, 11:45 am, krishna <[email protected]> wrote:
> Hi All,
>
> Thx to google i got the code.
>
> On Jul 2, 3:11 pm, krishna <[email protected]> wrote:
>
>
>
> > Dear All,
>
> > Can somebody help me with this issue, is need to implement
> > Gammaln function of MsExcel in my flex application. Application
> > computes Gamma values for specified values. can somebody help me with
> > the code. i tried google, but lots of code which is of no use, can
> > somebody send me simplified code plz..
>
> > Thanks and Regards,
> > Krishnam Raju Goud.G- Hide quoted text -
>
> - Show quoted text -
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.