Post Reply 
New member, simple question
10-11-2020, 09:09 PM (This post was last modified: 10-11-2020 09:21 PM by pinkman.)
Post: #2
RE: New member, simple question
Hi, there are many ways to do this, but you may consider the Prime as an Algebraic calc instead of a RPN/RPL one. The soft keys don’t behave like on the RPL HP’s calc, you can’t create custom menus with them, and there is no real “VAR” (directory) equivalent.

Here is my proposal:
Code:

EXPORT Inmm(A)
BEGIN
 RETURN CONVERT(A*1_in, 1_mm);
END;

KEY K_Minus()
BEGIN
 RETURN "Inmm()";
END;

Explanations:
EXPORT Inmm [...] defines a function.
Inmm is your function, it takes a value as an argument and returns the inches to mm conversion, using the built-in CONVERT function. Thus you can see how units can be used.

KEY K_Minus [...] assigns the function to the minus (-) key.

Usage:
1) Textbook or Algebraic mode:
Shift Help -> User mode
[-] -> the command line now shows Inmm()
10 -> the command line now shows Inmm(10)
Enter
Here you are.

2) RPN mode
10
Enter
Shift Help -> User mode
[-] -> the command line now shows Inmm()
Enter
Here you are again

In both cases instead of using a user defined key you can call your function by typing its name or by using the Catalog (Suitcase) key.

Regards,
Thibault

Thibault - not collector but in love with the few HP models I own - Also musician : http://walruspark.co
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
New member, simple question - spiff72 - 10-11-2020, 06:06 PM
RE: New member, simple question - pinkman - 10-11-2020 09:09 PM
RE: New member, simple question - spiff72 - 10-11-2020, 09:23 PM
RE: New member, simple question - spiff72 - 10-11-2020, 09:55 PM
RE: New member, simple question - pinkman - 10-11-2020, 09:18 PM
RE: New member, simple question - pinkman - 10-12-2020, 10:18 PM
RE: New member, simple question - spiff72 - 10-12-2020, 10:55 PM



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