The Museum of HP Calculators


Quadratic Equation (Real Roots Only) for the HP-17BII+

This program is by Eddie Shore and is used here by permission.

This program is supplied without representation or warranty of any kind. Eddie Shore and The Museum of HP Calculators therefore assume no responsibility and shall have no liability, consequential or otherwise, of any kind arising from the use of this program material or any part thereof.

Overview

This equation computes the two roots (R1 and R2) of the quadratic equation AX^2+BX+C = 0. This uses the Let and Get functions. The limitation is that this equation deals with real roots and A must not equal 0.

Listing

QUADREAL:0*(A+L(D:SQRT(B^2-4*A*C)))=
IF(S(R1):(G(D)-B)(2*A)-R1:(-G(D)-B)(2*A)-R2)

Go back to the software library
Go back to the main exhibit hall