Question: Using Python Question 1: Define a class for functions of the form f(x) = 2 -eb3 where a and b are constants. Objects of your
Using Python

Question 1: Define a class for functions of the form f(x) = 2 -eb3 where a and b are constants. Objects of your class should have 2 attributes: a and b. Write a magic method repr.. so that printing an object of your class shows the function it represents. Write another magic method --mul.. so that you can multiply objects of the class together, creating a new object of the class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
