Question: P2:(15 points) (using Pthon 3.6 P2: (15 points) Us Make a lclass for quadratic functions. Consider a quadratic function f(x:a, b, c) = ax2 +
P2:(15 points) (using Pthon 3.6 P2: (15 points) Us Make a lclass for quadratic functions. Consider a quadratic function f(x:a, b, c) = ax2 + bx + c. Make a class Quadratic for representing f, where a, b, and c are attributes, and the methods are 1. value for computing a value of f at a point r, 2. table for writing out a table of z and f values for n a values in the interval [L, R), 3. roots for computing the two roots. Name of program file: Quadratic.py. Write a test code after the class definition to demonstrate its usag
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
