Will Galway on Mon, 23 Jun 2003 13:22:11 -0700 (PDT)

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: The strange behaviour of glngamma

Olivier Ramare writes:
 > Dear all,
 >    glngamma has its argument between -Pi and Pi ....
 > So it is discontinuous. I would have expected it to
 > be continuous and with argument 0 on the real line.
 > That what I stupidly understood by "principal branch".
 > Any way to hack the existing code for that purpose ?
 >    Best,
 >    Amities,
 >              Olivier

I'd noticed the same strange behavior, and I agree that "continuous"
seems like a better choice.  The documented "Principal branch" clearly
means "Principal branch of the logarithm", not principal branch of

-- Best regards, Will
( mailto:galway@pims.math.ca http://www.cecm.sfu.ca/~wfgalway )