Question: Hi! I'm a beginner in python. Please explain thoroughly how I can type in the program. I have this feature: def w (x): sum =

Hi!

I'm a beginner in python. Please explain thoroughly how I can type in the program.

I have this feature: def w (x): sum = 0 for i in range (3): sum + = np.cos ((7 ** i) * np.pi * x) / (2 ** i) return sum

I want to: 1. Plot the function w on the interval [-2.2]. Try different values for num in np.linspace for how fine division of the x-axis in np.linspace you need to show enough details. 2. Then create a method that calculates the derivative in each of the points you defined in 1. 3. Plot the derivative. What can you say about the function w based on what you see. 4. Try different values of num under 30 to find your favorite graph of the derivative of w and leave this value as the final value for the division of the x-axis for all the plots.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!