Question: 7. Create a function called myHWfn that will calculate y as a function of x, according to y = x3-4x2 + sin (x) Prompt the

 7. Create a function called myHWfn that will calculate y as

7. Create a function called myHWfn that will calculate y as a function of x, according to y = x3-4x2 + sin (x) Prompt the user for minimum and maximum values of x, and then: (a) Create a data file HWdata.txt containing a 20 x 2 table of x and y values from the minimum to maximum x value. (b) Create a plot of the function over the range specified (use fplot) (c) Calculate and output the integral of the function over the specified range (use integral)

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!