07-05-2019, 09:37 PM (This post was last modified: 07-07-2019 07:33 AM by Arch.)
Post: #24
 Arch Junior Member Posts: 10 Joined: Jun 2019
RE: User defined touch-button menu (Softkeys)
I know that the calculation could be programmed a lot easier. In fact, the simplified code you posted is exactly the same I started with. There are some reasons why I still try to find another way e.g. by user defined menu:

1. Normally I calculate a series of results and I find it annoying that I have to restart the program over and over again. Especially since I have to do that by pressing at least four keys to call the program. Of course, one could argue that the code could be modified to allow for as many calculations as you want. But I couldn't find a way to return the results (all) to stack. Because I want to use them as an initial value for further calculations.
2. Just got the Prime, that's right. But I like to play around with the new functions. How else can I improve my abilities to program the thing.

Arch

(06-30-2019 09:07 PM)Gene222 Wrote:
(06-30-2019 02:48 PM)Gene222 Wrote:  3. How you use and program the HP Prime is entirely up to you. But if I were writing that program, I would not use "User Tabs" or "program tabs", particularly if I just got the Prime. They are just too difficult to program.

To illustrate this point, if you take all the "user tab" code out of your program, you would be left with the program below. I move the LOCAL statement to the top of the page, only because that is the area where I normally put the LOCAL statement.

Code:
LOCAL a,b,z,i_Wert; EXPORT i_SB2() BEGIN   INPUT({a,b,z});   i_Wert:=(1/(2*π))*(ATAN((a*b)/(z*√(a^2+b^2+z^2)))+(a*b*z)/(√(a^2+b^2+z^2))*(1/(a^2+z^2)+1/(b^2+z^2)));   RETURN i_Wert; END;
 « Next Oldest | Next Newest »