Adding Table of constant Units? how?
|
09-04-2016, 07:31 AM
(This post was last modified: 09-04-2016 07:36 AM by Didier Lachieze.)
Post: #3
|
|||
|
|||
RE: Adding Table of constant Units? how?
I don't think you can define constants per se in the Prime but what you can do is defining global variables that you'll be able to use where you want. However you need to ensure that the name of your global variables don't conflict with the HP Prime predefined variables. Also as they are variables and not constants they can be modified so beware how you use them!
For example you can create a new program called "CONSTANTS", remove the CONSTANT template inside and just add these two lines and press Check: Code: EXPORT AU:=149597870691; You have now created two global variables: ly light year in km and AU astronomical unit in km. You can use these variables to calculate for example the value of a light year in AU in this test program : Code: EXPORT TEST() |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Adding Table of constant Units? how? - tom234 - 09-01-2016, 06:07 AM
RE: Adding Table of constant Units? how? - Thomas_Sch - 09-02-2016, 06:18 AM
RE: Adding Table of constant Units? how? - Didier Lachieze - 09-04-2016 07:31 AM
RE: Adding Table of constant Units? how? - tom234 - 09-09-2016, 06:06 PM
RE: Adding Table of constant Units? how? - tom234 - 06-03-2019, 07:48 PM
RE: Adding Table of constant Units? how? - DrD - 09-04-2016, 09:23 AM
RE: Adding Table of constant Units? how? - Arno K - 09-04-2016, 10:00 AM
RE: Adding Table of constant Units? how? - StephenG1CMZ - 09-04-2016, 06:50 PM
RE: Adding Table of constant Units? how? - tom234 - 09-09-2016, 06:12 PM
RE: Adding Table of constant Units? how? - StephenG1CMZ - 09-10-2016, 08:22 AM
RE: Adding Table of constant Units? how? - tom234 - 09-22-2016, 07:11 PM
|
User(s) browsing this thread: 3 Guest(s)