Question: Compute the value of the integral: using the substituion method. ( You might be able to find a package that will integrate this without substitution,

Compute the value of the integral:
using the substituion method. (You might be able to find a package that will integrate this
without substitution, but the point of this execise is to learn to do the substitution. Therefore,
unless you do the substitution method, your work will not be counted!)
Note that this is a known integral whose answer is, in fact, .
Use the substitution method taught in lecture and discussed in the Newman text.
Print out your result to a precision of 8 digits past the decimal point. Then subtract your answer
from numpy.pi and print the difference to 15 digits pas the decimal point.
NOTE: Be sure to use np.sqrt() to compute any square roots required.
Name your script hw2_pi.py.
Your output must match this format:
Pi is 3.14159265
Difference from numpy.pi is: -0.000000000000099

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!