HP Forums
System of equations on HP Prime - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: System of equations on HP Prime (/thread-12586.html)



System of equations on HP Prime - fpicoral - 03-08-2019 12:09 PM

Hello everyone!
How can I solve systems of equations on the HP Prime, i.e., what should I do to get x=-1 and y=11 from the system below:

3x+y=8
x+2y=21

Edit:
Add both equations on the Solve app and solve both ate the same time.


RE: System of equations on HP Prime - swagner53 - 03-08-2019 02:26 PM

Hi,

There is a nifty App called "Linear Solver" that works great on systems of 2 or 3 equations. For anything greater, there are a couple of ways, but perhaps the easiest way is the use the RREF() command, taking a 2x3 matrix of the coefficients.

Good luck and take care,

Steve


RE: System of equations on HP Prime - DrD - 03-08-2019 04:00 PM

One way:
[CAS]
solve({(3*x+y) = 8,(x+2*y) = 21},{x,y})

Another way:
[CAS]
col(RREF([[3,1,8],[1,2,21]]),3)


RE: System of equations on HP Prime - ThomasA - 03-08-2019 04:27 PM

Hello,
there is an app for small systems of linear equations (2 unknowns in 2 equations and 3 unknowns in 3 equations). You find it by pressing Apps and tapping on Linear Solver.
Hope that helps
Thomas


RE: System of equations on HP Prime - Joe Horn - 03-08-2019 06:14 PM

My favorite way to solve linear systems is an efficient way on the keyboard: just a single division. The example below is the system you gave above. The screen capture on the left is with Textbook Display Mode turned on, and the one on the right is with it turned off, otherwise they are identical.

[Image: sys1.png] [Image: sys2.png]

This nifty method works with any size system. Just be sure to use single square bracket for the numerator (which contains the constants from the right side of the equations) and double square brackets for the denominator (which contains the coefficients from the left side of the equations). If your Prime flashes a warning at you, saying something like "This shortcut is a Bad Thing which we included only under pressure from users of previous HP calculator models", ignore it. Big Grin


RE: System of equations on HP Prime - fpicoral - 03-08-2019 09:48 PM

Thanks for all the help guys!

One more thing: how can I do a inequalities system?

I'm trying to solve this one and I did not manage to do so:

y ≤ 3x+1
x-y > 1


RE: System of equations on HP Prime - DrD - 03-08-2019 10:48 PM

I think the Advanced Graphing app handles inequalities nicely. A couple of things to notice though:

1. Separate implicit multiplications: y ≤ 3x+1 should be: Y ≤ 3*X+1, etc.
2. Using the apps requires UPPER case variables!
y ≤ 3x+1 ==> Y ≤ 3*X+1

Enter your equations with those two changes into the Advanced Graphing app [Symb] page, and then use the [Plot] page to view your results.