Question: Define the sinc_func(x) that returns the expression sin(x)/x. Use the linspace() function to create a sequence of 201 x-values between -10 and 10. Use the

  • Define the sinc_func(x) that returns the expression sin(x)/x.
  • Use the linspace() function to create a sequence of 201 x-values between -10 and 10.
  • Use the derivative() function to find the first and second derivatives of sinc_func at the sequence of x-values.
  • Use the subplot() function to plot sinc_func and its first and second derivative functions in one subplot (left side of the figure's grid) with three different colors.
  • For the 1st subplot, add a meaningful label inside each of the three plot functions using the label= parameter.
  • Choose a title, xlabel and ylabel for your first subplot.
  • Use the subplot() function again - using it twice to plot the first derivative and second derivative to the right of the first subplot.
  • Place the graphs of the derivatives in the column to the right of the first subplot.
  • Use the legend function and grid function to display the legend and grid in each of the subplots' graphs.

 Define the sinc_func(x) that returns the expression sin(x)/x. Use the linspace()

Examples Plot of Ist derivative Ist derivative 04 y = sin(x)/x and derivatives y = 3x2 + 4x 5 . Ist derivative 2nd derivative 10 03 02 01 08 00 0.6 -0.1 -02 03 0.4 m -io Plot of 2nd derivative 02 02 01 00 00 2nd derivative -02 -0.1 -02 -0.3 -10 0 10 -10 -5 o 5 Examples Plot of Ist derivative Ist derivative 04 y = sin(x)/x and derivatives y = 3x2 + 4x 5 . Ist derivative 2nd derivative 10 03 02 01 08 00 0.6 -0.1 -02 03 0.4 m -io Plot of 2nd derivative 02 02 01 00 00 2nd derivative -02 -0.1 -02 -0.3 -10 0 10 -10 -5 o 5

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!