Re: Temporary User Mode Key Programs not working in RPN Message #5 Posted by Eddie W. Shore on 13 Oct 2013, 3:28 p.m., in response to message #4 by BruceTTT
I tried to do a similar code and can't get it to work in either RPN or Home Mode.
However, I can call a separate program with user keys.
EXPORT QUAD(A,B,C)
BEGIN
RETURN {0.5*(-B+sqrt(B^2-4*A*C))/A,
0.5*(-B-sqrt(B^2-4*A*C))/A};
END;
In a program file with user keys:
KEY K_Sq()
BEGIN
RETURN "QUAD()";
END;
In RPN, press Shift + Help (User), x^2. Run QUAD(3) as QUAD uses 3 arguments.
|