Post Reply 
WP34s: Gamma function for x very close to zero
10-07-2015, 11:21 PM
Post: #7
RE: WP34s: Gamma function for x very close to zero
(10-07-2015 06:34 PM)Dieter Wrote:  
Code:
-1,5  Γ     2,3632718...
-1,5  lnΓ   calculator hangs

-2,5  Γ    -0,9453087...
-2,5  lnΓ   should throw an error, but calculator crashes,
            requires hardware reset

Strange: Γ seems to work, while lnΓ crashes. The lnΓ(–2,5) case (should throw an error) caused the display of my hardware 34s to slowly fade away until it got inresponsive. Pressing the reset button in the battery compartment was required to bring it back to life (→ "Restored"). The batteries were not new, but the low battery symbol did not show up. The emulator (wp34sgui.exe) simply hangs and needs an Alt+F4 to close and restart.

Dieter

A few weeks ago I modified (my local copy of) the source code for the Γ and LnΓ in order to save a few bytes combining both in a single function. An unexpected side effect of this change is that now it does not show this issue (Γp and Γq still fail for large arguments, though).

Perhaps Paul might like to take a look to this code. If so I'll PM it.

Regards.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: WP34s: Gamma function for x very close to zero - emece67 - 10-07-2015 11:21 PM



User(s) browsing this thread: 1 Guest(s)