Assignment Statements and Expressions

February 8th, 2016

Slides

Lecture Recording

In Class Exercise

Quadratic Equation

Given a, b, and c such that ax^2 + bx + c = 0
The task is to calculate the quadratic roots

-b +- sqrt (b^2 -4ac)
---------------------
       2a

Example Equation:
(x - 2)(x - 3) = x^2 - 5x + 6

a = 1
b = -5
c = 6

root 1 = 3.0
root 2 = 2.0