- HP Community
- >
- Tablets
- >
- Calculators
- >
- HP prime programming Variables with subscripts or greek lett...

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Flag Post

# HP prime programming Variables with subscripts or greek letters

02-14-2018 09:26 AM

Hi,

I would like to program some equations with greek letters or subscripts. some the the equations from my course have the same leter in the equation so it would also be helpful to have a sub script. for example Pa and Pb fr preassue a and pressure b. Is it possible to do this? Can this be done in the define equations menu and on programs uploaded to the calculator?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Flag Post

## HP prime programming Variables with subscripts or greek letters

02-14-2018 04:07 PM - edited 02-14-2018 04:08 PM

Yes, of course you can do this.

However, Prime in the apps and home screen needs to know that something is a variable BEFORE it encounters it in an equation. A-Z are already predefined as "number variables" and this why typing them just works for you.

I'd recommend you open the SOLVE app. Now, press the "Programs" key down on the 2 button. See the top item there? That is your program file for the solve app.

Press EDIT. At the top, go ahead and create some items as variables.

EXPORT Pa, Pb, α1, β₂;

Now what that just did is create 4 new variables with those names. These 4 variables will be active and visible when your Solve app is open. Note, your "EXPORT" line can only have 8 variables per line. See how I used subscripts and greek chars in there? Take a look in the "chars" menu on your Vars key shift function if you want to look for a wide range of characters to use.

Now press SYMB and you can type in something like Pa+α1= β₂ for your expression. It happily accepts it because it knows that "Pa" is a variable now.

Once you have up to 10 equations entered and things are looking good, go ahead and open the APP screen, and tap "Save". You can now save it as something like "My Saved Equations" or whatever name you want. The main solve app can be reset, or changed, and you still have your saved variables.

It really does go quick once you get the basics. If you want to use a custom app that lets you do all of this through a nice interface, or use existing equations, you could give this app a try: http://www.hpmuseum.org/forum/thread-7725.html

Feel free to ask questions if you have trouble.

Although I work for the HP calculator group as a head developer of the HP Prime, the views and opinions I post here are my own.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Flag Post

## HP prime programming Variables with subscripts or greek letters

11-11-2018 11:26 AM - edited 11-11-2018 11:26 AM

I was wondering about this and again Tim comes through.

Thanks Tim!

Bob

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Flag Post

## HP prime programming Variables with subscripts or greek letters

05-09-2019 02:29 PM

Even though it is exactly correct (thank you, Tim!) , it took me some trial and error to correctly interpret the answer, so I thought a more complete example would be helpful to someone out there at some point in the future.

Make sure you put the semi-colon (;) after the added "EXPORT" line as shown below (and as shown in original post).

Here is what my modified "SOLVE" app looks like (I'm making the variables vf, vi, a, s, t available for formulas):

EXPORT vf, vi, a, t;

EXPORT Solve()

BEGIN

END;