Scheme Exercises
back to exercise list
previous next
Group: Exercise: 40/48
discriminant:
Calculate the discriminant of a quadratic.
Create a function "discriminant" that returns the value of the discriminant of the quadratic specified. (discriminant 1 2 3) =>- 8 (discriminant 1 2 -4) => 20 Note: 1. (discriminant a b c) is for the quadratic ax^2 + bx + c 2. The discriminant is the part that appears under the square root in the quadratic formula, the square root is NOT included.
|