Jupyter notebook Week 1/Homework 1- Basic python notebook.ipynb
#Earth Systems Modeling ##Lab 1: Introduction to python and iPython notebook
Problem 1
Write a function to solve the definite integral See the following documentation: Scipy documentation.
Your function must be set up to run with input , , and , which are passed into the function as arguments. Present your function with a description in your blog. Provide the code. [10 pts]
Problem 2
Write a function create a histogram using a random number generator. The histogram should represent a normal distribution of values. Make sure your distribution has an average of , and a standard deviation of . Plot these values as a histogram with number of bins distribution. The arguments of your function should be , and . See the following documentation: Random Numbers from a Normal Distribution | Mathworks and Part 3: Histograms | Bespoke Blog. In your blog, briefly describe your calculation, provide your code and a plot of your histogram. Your plot should include a figure caption describing what the plot depicts. [10 pts]
Problem 3: Challenge Problem for Extra Credit
Find the volume of a sphere in 4-dimensional euclidean space (a 3-sphere) with a radius of 5cm. (Hint: you will use a random number generator.) Describe your solution to the challenge problem in your blog. [5 pts]