Sale!

Phys 512 Problem Set 2 Solved

Original price was: $40.00.Current price is: $35.00.

Category:

Description

5/5 - (1 vote)

Problem 1: Write a recursive variable step size integrator like the one we
wrote in class that does NOT call f(x) multiple times for the same x. For a
few typical examples, how many function calls do you save vs. the lazy way we
wrote it in class?
Problem 2: a) Write a function that models the log base 2 of x valid
from 0.5 to 1 to an accuracy in the region better than 10−6
. Please use a
truncated Chebyshev polynomial fit to do this, and please write your own fit
routine (instead of just calling the numpy one). How many terms do you need?
Carry out a polynomial fit of the same order (we’ll see how to do this ourselves in
coming lectures, but for now I suggest just calling np.polynomial.legendre.legfit,
which will be more stable than np.polyfit). Plot the residuals for both the
truncated Chebyshev and standard polynomial fits. Which one has higher RMS
error? Which one has a larger max error?
Problem 3: a) Write a program to solve for the decay products of U238
(refer to slides for the decay chain). You can use the ODE solver from scipy,
but you’ll need to set the problem up properly. Please make sure to include all
the decay prodcuts in the chain. Assume you start from a sample of pure U238
(in nature, this sort of separation happens chemically when rocks are formed).
Which solver would you use for this problem?
b) Plot the ratio of Pb206 to U238 as a function of time over a region where
it’s interesting. Does this make sense analytically? (If you look at the decay
chain, all the half-lives are short compared to U238, so you can approximate the
U238 decaying instantly to lead. Now plot the ratio of Thorium 230 to U234
over a region where that is interesting. Radioactive decay is frequently used
to date rocks, and these results point at how you can determine the age of a
uranium-bearing rock that is anywhere from thousands to billions of years old.
(Of course, in this case the starting ratio of U234 to U238 would probably have
already reached its long-term average when the rock was formed, but you could
still use the U234/Th230 ratio under that assumption.)
1