Problem with gammai

Q&A's, tips, howto's
Locked
Bat
Posts: 10
Joined: Fri Oct 10, 2003 3:38 pm

Problem with gammai

Post by Bat »

When calling (gammai n m) with n=0 (not the right thing to do, but can happen) my computer crashes badly. I must make a hard reset. OS: Windows XP. Pentium III.
Maybe some error trapping would do well.

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

Thanks for catching this.

Same happens with 'beta' and 'gammaln', which all depend on gammaln, which crashes when called with 0. This will be taken care of in the next version with an error message.


Lutz

Locked