Question: P2: (15 points) Make a lclass for quadratic functions. Consider a quadratic function f(x;a, b, c)2 + br c. Make a class Quadratic for representing

P2: (15 points) Make a lclass for quadratic functions. Consider a quadratic function f(x;a, b, c)2 + br 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 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
