Solver and the GAMMA function

Post here to share useful tips and tricks, to ask questions about using your DM42 or to report software-related problems
Post Reply
mcc
Posts: 277
Joined: Fri Jun 23, 2017 5:10 am

Solver and the GAMMA function

Post by mcc »

Hi,

is this a glitch in the Matrix?

LBL "f"
MVAR "x"
RCL "x"
GAMMA
10
-
.END.

After calling "f" via the solver I did
0
"x"
10
"x"
"x"

and got 4.39007765083....

then
EXIT
EXIT
to go back to the "desktop" :) and CLST

then same procedure as last year, Miss Sophie and

0
"x"
100
"x"
"x"

...results in 50.

?

Gamma is (WARNING! DENGLISH ahead) steadily growing...but two roots?
Calling f with 50 manually result in 6.something.

Any hint what I did wrong?

Cheers!
Meino
DM 42 - SN: 00373, Firmware release v.:3.22. / DMCP 3.24. as compiled by SwissMicros
Thomas Okken
Posts: 1100
Joined: Tue May 02, 2017 5:48 pm
Location: Netherlands
Contact:

Re: Solver and the GAMMA function

Post by Thomas Okken »

Clearly SOLVE isn't handling this as well as it should, but 0 is a terrible starting guess for GAMMA. Try 1 instead. :D
Thomas Okken
Posts: 1100
Joined: Tue May 02, 2017 5:48 pm
Location: Netherlands
Contact:

Re: Solver and the GAMMA function

Post by Thomas Okken »

mcc wrote:
Tue Apr 10, 2018 5:41 pm
Calling f with 50 manually result in 6.something.
When you say "calling f with 50 manually," do you mean

50 XEQ "f"

? Because that doesn't work; you must do

50 STO "x" XEQ "f"

since the function gets its parameter from the variable "x", not from the stack.

(In case your 6.something meant 6.somethingE62, ignore this whole post.)
Post Reply