Post Reply 
Use of HP27s/19b and Plus42 solver
08-14-2023, 01:49 PM (This post was last modified: 08-14-2023 04:32 PM by Marco Polo.)
Post: #1
Use of HP27s/19b and Plus42 solver
I am very used to HP48/50 Multiple Equation Solver (MES) and i am managing to start using Plus42 even if it doesn't have something similar.
Just to start with something easy, i am playing with Ideal Gas Law.
In HP50 i have the following equations
Code:

'P*V=n*CONST(R)*UBASE(T)'
'm=n*MW'
}
This simple system considers UOM and allows the solution in case only moles or mass are required/available.
In Plus42 i tried to use the L function to reproduce MES behaviour
Code:
'P*V-L(n:m/MW)*8.31451_"J/gmol/K"*UBASE(T)*UVAL(n/n)'
but i cannot solve for 'n' (other variables work ok)

Am i doing something wrong or there is no way to get the score?

Thank you
Find all posts by this user
Quote this message in a reply
08-15-2023, 03:27 AM
Post: #2
RE: Use of HP27s/19b and Plus42 solver
I'm at a loss too.

However, if units are used for one variables, I think units need to be used for all the variables and constants.
Visit this user's website Find all posts by this user
Quote this message in a reply
08-15-2023, 06:59 AM
Post: #3
RE: Use of HP27s/19b and Plus42 solver
(08-15-2023 03:27 AM)Eddie W. Shore Wrote:  I'm at a loss too.

However, if units are used for one variables, I think units need to be used for all the variables and constants.
Units are used for all variables and work properly.
I can solve the equation for every variable, except n.
Indeed, I can only see the value of n after equation solution
Find all posts by this user
Quote this message in a reply
08-16-2023, 10:38 AM
Post: #4
RE: Use of HP27s/19b and Plus42 solver
You need to use the S() [solving] function:

IF(S(n) :equation 2: equation 1)

Then giving m and MW you can solve for n, then solve for other variables in the first equation.
Find all posts by this user
Quote this message in a reply
08-16-2023, 03:43 PM
Post: #5
RE: Use of HP27s/19b and Plus42 solver
(08-16-2023 10:38 AM)Vincent Weber Wrote:  You need to use the S() [solving] function:

IF(S(n) :equation 2: equation 1)

Then giving m and MW you can solve for n, then solve for other variables in the first equation.
Great, it is a very nice trick.
I missed the information.

Thank you very much!
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)