[HP 12c] Programming - Making a 3 or 4 parameter RPN function
|
06-14-2023, 01:22 PM
(This post was last modified: 06-14-2023 03:26 PM by Giganotosaurio1972.)
Post: #1
|
|||
|
|||
[HP 12c] Programming - Making a 3 or 4 parameter RPN function
For designing an algorithm for the HP 12c using RPN, that gets three or four parameters from the RPN stack for making a specific complex calculation, the two steps (two problems) I have to solve are,
Well, for doing the first step (getting the parameters...), I can,
Well. For example, I want to make a program that works as a 3 parameter RPN function, that gets the 3 last registers stored in the RPN stack and puts the result in the first of these anterior 3 registers (like RPN (I imagine...) would do for any function of 3 parameters), that gets the width, the perfil and the ring diametter of a tire and presents the total diameter, in centimeters, of the tire. (In the form of <Parameter 1>/<Parameter 2> R<Parameter 3> The program gets,
Well, this in RPN calculates like <Parameter 1>[ENTER]<Parameter 2>[%]2[*]<Parameter 3>[ENTER]2.54[*][+] I prepare the calculator for programming (for example, I will need to clear the program memory by [f][PRGM]...), and pressing [f][P/R] for setting the "PRGM" mode. Then...
Well.... Once I prepared the calculator for "RUN" operating, if I want to calculate the diameter of a 185/60 R15 tire, only I have to do, 18.5[ENTER]60[ENTER]15[R/S], The result, 60.3cm |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)