Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Plot a function Make a plot of the function h from the previous exercise over the range x[4,4]. You will need to: plot the data

Plot a function Make a plot of the function h from the previous exercise over the range x[4,4]. You will need to: plot the data using blue circles (NOT dots) change the plot range to match the specification above (use the plt.xlim( a,b ) function, where you provide a and b) add a title to your plot, 'Formula Plot' add axes labels to your plot, 'x' and 'h(x)' Your submission should include a plot. Make sure to import matplotlib.pyplot as plt. Use plt.plot but not plt.show in your submission. You will need to include the code from the previous exercise in order to calculate the values to be plotted.

Here's the previous function i have:

import numpy as np def h(x): h=1/(np.sqrt(2*np.pi))*np.exp(-1*np.power(x,2)/2) return h xarray=np.linspace(-4,4,41) harray=h(xarray)

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

=+5. How have these groups changed within the last three years?

Answered: 1 week ago

Question

1. Does your voice project confidence? Authority?

Answered: 1 week ago