HP Forums
Equation Library - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: HP Prime Software Library (/forum-15.html)
+--- Thread: Equation Library (/thread-3536.html)



Equation Library - Eddie W. Shore - 04-02-2015 02:20 AM

The program eqnlib offers 47 equations for HP Prime’s Solver App. Just run the eqlib program, select the category that you are interested in, and select the equation within that category and you are off and running!

Categories include:
* Geometry (areas, volumes, surface areas)
* Finance (monthly loans, sales tax, break-even)
* Temperature Conversion (Fahrenheit to and from Celsius)
* Physics: Problems of Motion (linear distance, circular motion, pendulums, terminal & escape velocity)
* Sound (speed of sound, Doppler effect, loudness)
* Optics (Lens and Snell equations, spherical refraction)
* Electronics (2 resistors series and parallel, thermal noise, Ohm's Law)
* Astronomy (parallax, luminosity, Kepler's 3rd Law, time dilation)
* Great Circle Calculations
* Angle of Incidence Calculations
* Gases (Ideal and Boyle's Gas Laws, heat capacity, air density, isothermal expansion)
* Fluids (depth pressure, fluid flow, Bernoulli's Equation)

When calling each equation, a screen will show each of the variables used, and if necessary, what units you will need to use. While SI (meters, kilograms, seconds) units are used, some equations call for the temperature to be in Celsius, while others require the temperature to be in Kelvin.

You can download the hpprgm file and the PDF document here:

https://drive.google.com/file/d/0B7R8x9Yi26yGeURROW5OZkQ5ZTQ/view?usp=sharing

The PDF document will list the equations available and the variables used. For eqlib, the global variables A-Z and theta are used.


RE: Equation Library - salvomic - 04-02-2015 01:37 PM

wonderfull!
thank you, Eddie.

But please, control for a little typo in Electronics:

//7.3 2 REsistors: Parallel
should be
IF d==3 THEN (not 2)

Salvo


RE: Equation Library - John Colvin - 04-02-2015 06:52 PM

Nice work Eddie. But I have encountered one problem with this program. When I
attempt to run it from the command line in Home (RPN) it crashes the Prime after I make my selection from the menu. This occurs both in the emulator and the real Prime.
It works fine when running from the Programs Catalog. It would be nice to have the result of Solve placed on the RPN stack.


RE: Equation Library - ebswift - 04-03-2015 03:42 AM

Thanks Eddie, this is very nice, very useful. My first downloaded program Smile.


RE: Equation Library - akmon - 04-05-2015 10:40 PM

Thank you for the library. It´s very cool.


RE: Equation Library - akmon - 05-21-2015 11:22 PM

Don´t know how to program it, but if you have checked another equation (E2, E3...) in solve app, the program does not work well. The issue is automatically uncheck all the equations you have in solve app previously.


RE: Equation Library - Nepomuceno - 06-17-2015 07:44 PM

First of all, thanks for sharing .
I've had success with the Library on my emulator , but the HP Prime could not.
Syntax error message on line 10. Does anyone know why ?
Thank you.


RE: Equation Library - Didier Lachieze - 06-18-2015 06:11 AM

(06-17-2015 07:44 PM)Nepomuceno Wrote:  I've had success with the Library on my emulator , but the HP Prime could not.
Syntax error message on line 10. Does anyone know why ?

You may have an error if you have set the comma as the decimal separator on your HP Prime.
To fix this issue you need to add a pragma statement as the first line of the program:
Code:
#pragma mode( separator(.,;) integer(h32) )

This pragma says to the parser that no matter YOUR Home Settings, the program follow the syntax:
decimal separator is a point in the program.
parameter separator is a comma in the program.
command separator is a semi in the program.
and integers are 32 bits hexadecimal

You can find more details here.

A comment for people posting HP Prime programs: it is a good practice to start any program with a #pragma statement. It avoids troubles if you change your decimal separator later on or if you share your program with someone using different settings.


RE: Equation Library - rgallier - 06-30-2015 07:56 PM

This is something that I think should be delivered as part of the base software. I would love to see this run from the soft key between "=" and "Show" and have it put the chosen equation in the currently selected equation field. It would be great if it could pull the menu, equations, and variable descriptions from a sister spreadsheet or data file with and editor.


RE: Equation Library - rgallier - 07-11-2015 05:56 PM

Choosing the currently selected didn't seem a likely possibility because this position value does not appear to be retained. I've looked at how to determine the next available E# = 0 and use this to store the selected equation without success. If 0-9 are all 0 this would require the user to delete an equation.


RE: Equation Library - coitboy2000 - 05-12-2017 10:33 AM

Very useful, thanks.

Is there any way to return back to the start of the program by capturing the Escape Key? i.e. Can you exit the solver app but return control back to the calling program and let the user exit via an option from a message box?


RE: Equation Library - Gamo - 05-13-2017 08:51 AM

How to transfer file to HP Prime for Andriod?


RE: Equation Library - compsystems - 05-13-2017 03:47 PM






RE: Equation Library - Primer of the HP - 01-21-2024 03:19 PM

This is an inactive and multiple year old thread but hey:

I am consistently getting a syntax error on line 594 despite wiping my calculator several times.