Question: 1 . 2 Plotting discrete data and continuous functions Jupyter Notebook 1 . 1 . Plot the numpy sine function y = s i n

1.2 Plotting discrete data and continuous functions
Jupyter Notebook 1.1.
Plot the numpy sine function y=sin(2x5) for each value of x with the following requirements:
Plot in the range x=(0,10).
Plot discrete samples with a step size of 0.25 using blue squares and with label "sin discrete".
Plot appropriate axis labels.
Print text "Printing first five entries:" and then print first five entries of x and y array for debugging and mark them accordingly i.e."x:" and "y:" or anything similar.
On the same axis, plot the corresponding smooth function using a red dashed line. The smooth function should use much finer binning to approximate a continuous curve.
Add appropriate axis labels.
Add a title y=sin(2x5).
Add a legend for the "sin discrete" and the "sin smooth" function.
Hint: You made similar plot in PHY40 course.
Jupyter Notebook 1.2.
I'lot the numpy normalized sinc function y-sinc(2x5) with the following requirements:
Plot in the range x-(-5,5).
Plot discrete samples with a step size of 0.5 nsing blue circles.
 1.2 Plotting discrete data and continuous functions Jupyter Notebook 1.1. Plot

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!