Showing posts with label equation library. Show all posts
Showing posts with label equation library. Show all posts

Saturday, July 24, 2021

HP 48G: Multiple Equation Solver and The Equation Library

HP 48G: Multiple Equation Solver and The Equation Library 





Calculators Featured:  HP 48G, HP 48G+, HP 48GX


The Equation Solver


Any program in the HP 48G family, we can set up the calculator to solve a set of equations.  The commands involved:


STEQ:  Store a list of equations in the variable EQ.  The variable EQ is used in the solver.


MINIT:  This command initializes the solver.  The system variable MPAR is created.


MITM:  This optional command allows the solver to have a custom title and arrange the variables in a custom order.  Arguments:  2:  title string, 1:  the list of variables.  The list can have a blank string, " ".  All the variables must be included.  


MSOLVR:  Starts the solver.


In the solver:


( var ):  store

[ left shift ] ( var ):  solve

[ right shift ] ( var ):  recall


An RPL Template:


<< ... 

{ list of equations }  STEQ MINIT

"title" { list of variables } MITM

MSOLVR

... >>


HP 48G Program:  HCURVE


<<  DEG

'T=R*TAN(Δ/2)'

'L=R*Δ*π/180'

'C=2*R*SIN(Δ/2)'

3 →LIST STEQ MINIT

"Horizontal Curve"

{ Δ R T L C } MITM

MSOLVR >>


Variables:


Δ = central angle (in degrees)

R = central radius

T = tangent length

L = arc length of the horizontal curve

C = chord length


One of Δ or R must be known.  When Δ and R are both entered or solved for, L, T, and C can be solved for.


Example 1:


Inputs:

Δ: 45

R: 100


Outputs:

T = 41.4213562373

L = 78.5398163398

C = 76.536686473


Example 2:


Inputs:

L:  1706

Δ: 54


Outputs:

R = 181.012221943

T = 2.2303337494

C = 164.35658198


The Equation Library


The equation library can be accessed by pressing [ right shift ] [ 3 ].  A list of various subjects are listed.  Options:


[ F1 ] (SI):  SI units are used

[ F2 ] (ENGL):  English units are used

[ F3 ] (UNIT): turn units on and off


Once a topic is selected, another menu s presented where all the equations are contained.  Depending on the topic, one or more equations are selected.  When ready, select (SOLV).  


Example 1:  Triangle


Plane Geometry -> Triangle -> Equation 2 of 6


A=(b*h)/2

P=b+√(v^2+h^2)+√((b-v)^2+h^2)





Example:  (default SI units are used)


Inputs:

P: 100 cm

b: 40 cm

h: 35 cm


Outputs:

V = 20 cm

A = 700 cm^2


Example 2:  Longitude Waves


Waves -> Longitudinal Waves -> Equation 1 for 4


s = sm cos( k * x - ω * t )

v = λ * f

k = 2 * π / λ

ω = 2 * π * f


Example:  (default SI units are used)


Inputs:

λ: 0.2264 cm

f: 1400 Hz

t: 15 s

sm: 1.5 cm


Outputs: 

v = 314.44 m/s

k = 0.279750013677 r/cm

ω = 8976.45943005 r/s


Eddie


All original content copyright, © 2011-2021.  Edward Shore.   Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited.  This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author. 


Wednesday, April 1, 2015

HP Prime: Equation Library



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:


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

Enjoy!

Eddie


P.S. This is not an April's Fool joke, just in case you were wondering.  


This blog is property of Edward Shore, 2015.  

Tuesday, March 24, 2015

A Ruler Calculator, Upcoming Equation Library Program for HP Prime, Calculator vs. Apps

Ruler Calculator



Shout out to Fischer Scientific!  My work had an office supplies fair yesterday.  It is not everyday that I see a ruler calculator.  I asked about how much is the ruler calculator because I wanted to order one for myself, and the nice vendor gave the ruler.  I am much appreciative!

Upcoming Equation Library Program for HP Prime

I am working an equation library program for the HP Prime, and so far I have 35 equations, and planning entering a few more.  Subjects covered include astronomy, finance, motion physics, sound, electronics, and Great Circle calculations.  I plan to release the program sometime in early April 2015 at the latest.

Calculator Apps versus Calculators (with tangible keyboards)

With the growing use of tables and smart phones, many calculator apps are available on Apple iOS devices (iPod Touch, iPad, iPhone) and Android devices.  Let me ask the readers: are you using calculator apps, and what is your opinion on them?  Do you have a preference between calculator apps or calculators?  

Personally, I prefer calculators that have physical keyboards.  I like the tactile feel of the keys and the fact that calculators are single purpose machines.  It also frees my iPod for other tasks.  Having said that, two of my favorite calculator apps are CalcFxC and PCalc.  Calculator apps are also an excellent source of providing emulators of classic calculators.  

Readers, I wish you the best, and have a great day!  Thank you for following, visiting, and commenting.  

Eddie


This blog is property of Edward Shore.   2015.


Classic RPN Stack Operations

  Classic RPN Stack Operations Starting Stack: T:  d Z:  c Y:  b X:  a OVER :   Copies b to the Z and X stacks, while leaving ...