HP Forums
Quadratic Formula Is there an app to plug in numbers? - 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: Quadratic Formula Is there an app to plug in numbers? (/thread-15758.html)



Quadratic Formula Is there an app to plug in numbers? - Subaru - 10-20-2020 05:32 PM

Has somebody made an app that you plug in numbers in the quadratic Formula an you get your 2 answers? I want it to make school easy. Thanks for your time.


RE: Quadratic Formula Is there an app to plug in numbers? - grsbanks - 10-20-2020 06:47 PM

Why would you want to do that? The Prime can solve quadratics without a program already.

E.g.

Code:
CAS.zeros('X²-6*X+2')
            [5.6457....... 0.354248.....]



RE: Quadratic Formula Is there an app to plug in numbers? - Didier Lachieze - 10-20-2020 06:56 PM

You have also the built-in Explorer app.


RE: Quadratic Formula Is there an app to plug in numbers? - KeithB - 10-20-2020 07:18 PM

If those don't work for you, this is a nice little exercise for you to program yourself.


RE: Quadratic Formula Is there an app to plug in numbers? - BruceH - 10-20-2020 09:58 PM

(10-20-2020 06:56 PM)Didier Lachieze Wrote:  You have also the built-in Explorer app.

Which can even be invoked directly
Code:
QuadSolve(1,0,-4)       {-2,2}



RE: Quadratic Formula Is there an app to plug in numbers? - Carsen - 10-21-2020 06:36 PM

I think the best tool Prime provides to solve polynomials is the command: proot.

I prefer proot for the following reasons
  • Faster to type. Just enter the coefficients in brackets [ ]. Rather than typing an equation.
  • Solves for real and complex roots. The methods mentioned above do not compute complex roots.
The command proot is accessed with the Toolbox key > CAS menu > 6. Polynomial > 1. Find Roots

Example: Find roots for x^2+4x+5.
Code:
proot([1,4,5])                    [(-2,-1)  (-2,1)]

There are other useful commands in the Polynomial menu too. Such as solving for the coefficients instead of the roots. I recommend it.


RE: Quadratic Formula Is there an app to plug in numbers? - pinkman - 10-21-2020 08:28 PM

(10-20-2020 05:32 PM)Subaru Wrote:  Has somebody made an app that you plug in numbers in the quadratic Formula an you get your 2 answers? I want it to make school easy. Thanks for your time.

Hello Subaru,
Welcome!
Don’t be afraid, there is no stupid question here, we are all here to help you, and as you see, there are plenty of answers, even if we all think that there is no need to program the quadratic formula.


RE: Quadratic Formula Is there an app to plug in numbers? - Stevetuc - 10-22-2020 08:42 AM

(10-21-2020 06:36 PM)Carsen Wrote:  I think the best tool Prime provides to solve polynomials is the command: proot.

I prefer proot for the following reasons
  • Faster to type. Just enter the coefficients in brackets [ ]. Rather than typing an equation.
  • Solves for real and complex roots. The methods mentioned above do not compute complex roots.
The command proot is accessed with the Toolbox key > CAS menu > 6. Polynomial > 1. Find Roots

Example: Find roots for x^2+4x+5.
Code:
proot([1,4,5])                    [(-2,-1)  (-2,1)]

There are other useful commands in the Polynomial menu too. Such as solving for the coefficients instead of the roots. I recommend it.

Quadsolve does solve for complex roots

Try
Code:
QuadSolve(1,-1,6^2+31^2)

Gives
Code:
{0.5+31.5713477698*i,0.5-31.5713477698*i}