Question: Exercise 7.1. Make a function class. Make a class F that implements the function f(x; a, w) = e-ax sin(ur) . A value(x) method computes

Exercise 7.1. Make a function class. Make a class F that implements the function f(x; a, w) = e-ax sin(ur) . A value(x) method computes values of f, while a and w are class attributes. Test the class with the following main program: from math import* f F(a-1.0, w=0 . 1) print f.value (x=pi) print f.value(pi) Name of program file: F.py
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
