06-29-2018, 12:20 PM (This post was last modified: 06-29-2018 01:39 PM by Gamo.)
Post: #1
 Gamo Senior Member Posts: 573 Joined: Dec 2016
This program calculate Quadratic Equation of aX^2 + bX + c = 0

Answer can be both Real and Complex integer.

Procedure: a [ENTER] b [ENTER] c
f [A] --> 1st Answer [X<>Y] --> 2nd Answer

If answer is Complex the display will show small letter (c) on screen with the Integer part shown.
To see the complex part press and hold f (i) this will give you positive and negative complex answer.

To disable (c) --> g [CF] 8

-------------------------------------------------------------------------------------

Example 1: 2X^2 + 2X - 50 = 0

2 [ENTER] 2 [ENTER] 50 [CHS] f [A]

Answer: -5.5249 [X<>Y] 4.5249

---------------------------------------------------------------------------------

Example 2: 5X^2 - 10X - 800 = 0

5 [ENTER] 10 [CHS] [ENTER] 800 [CHS] f [A]

Answer: 13.6886 [X<>Y] -11.6886

--------------------------------------------------------------------------------

Example 3: -3x^2 - 2x - 1 = 0

3 [CHS] [ENTER] 2 [CHS] [ENTER] 1 [CHS] f [A]

Answer is Complex: -0.3333 small (c) shown on display press and hold f [ (i) ] -0.4714

Final answer is -0.3333 ± 0.4714

------------------------------------------------------------------------------

Code:
 LBL A CF8 X<>Y 2 CHS ÷ CF0 X<0 (TEST 2) SF0 STO I X^2 R↓ x LSTx X<>Y R↑ - CHS X≥0 (TEST 3) GTO 1 CHS √x R↑ ÷ ENTER CHS RCL I LSTx ÷ X<>Y f I ENTER R↑ f I RTN ---------------------------------------------------------------------- LBL 1 √x F0 CHS RCL+ I X=0 RTN ÷ LSTx R↑ ÷ RTN

Gamo
 « Next Oldest | Next Newest »

 Messages In This Thread (15C) Quadratic Equation - Gamo - 06-29-2018 12:20 PM

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