Creating a Template to Find the Solutions of a Quadratic Equation

Open a new Calculator window.

Define a function that will be used for calculating the roots.

In the Program Editor name the function and identify it as such.

Edit the function so that it accepts three variables.

These variables are the a, b, and c of the quadratic function in standard form.

The function will return the results of the quadratic formula.

So after the word return, input the quadratic formula

using the variables a, b, and c.

Since there are two roots, what this function will return

is a matrix with two entries, one for each root.

Once you have completed the function, press Control and B to save it.

Press Control-Tab to the go to the Calculator Window.

Test the function for different values for a, b, and c.