48-ish units for Prime?
|
09-12-2018, 10:32 PM
(This post was last modified: 09-18-2018 09:47 PM by Gene222.)
Post: #17
|
|||
|
|||
RE: 48-ish units for Prime?
(09-09-2018 09:19 PM)StephenG1CMZ Wrote: If the built-in capabilities of the HP Prime don't suit, you might find my Z_UNITS program helpful, or epp's Convert. For those who only use a few unit conversions, they might want to consider writing their own custom conversion program, like the one shown here for flow rate conversions. This program requires you to access the conversion sub-programs or functions though the "toolbox" key and "user" tab, as shown in the images below. It saves a couple of key strokes at the sacrifice of versatility. It's a step backwards, but it's quicker. It's like the old calculators that had dedicated unit conversion keys. EDIT 9/15/18. Just make sure you use the correct conversion formula. Corrected the errors in code below. Also, I don't know why the program works without the functions being declared. EDIT 9/18/18. The function names, such as cfs→cms(X1) will not work in CAS mode. CAS will not recognize the → to be part of the function name. To use the programs in CAS mode, all of the function names would have to be changed to something like cfs_cms(X1). Code: UnitConv() EDIT 9/15/18 Alternatively, for tedious unit conversions that are often used, you can write a similar program using CONVERT. The program below removed the units tag by dividing the variable with the units by its units. The units tag can be left in, if that is what you want. One last thing. If you load both of these programs onto your calculator (UnitConv and Unit), there will be two of each function with the same name. When you run "cfs→cms", the program name and function name will be shown in the display, such as "UnitConv.cfs→cms()", which can clutter the display. So you should delete one of the programs or rename the functions with unique names, so that only the function name is displayed, such as "cfs→cms()". EDIT 9/18/18. Changed the "→" in the function names to a "_" in the program below, so that the program will work in CAS mode. In Home RPN mode, you enter the number followed by the function then press Enter, such as 5 cfs_cms() Enter. Or, 5 Enter cfs_cms() Enter. Code: Unit() |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)