Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions

Question

LO3 Discuss the steps of a typical selection process.

Answered: 1 week ago