Monday:
Lab 11A. Plotting mathematical functions in Excel (I
expect you to work through this example and submit it.)
Lab 11B. Projectile -- generate and plot the data for throwing a projectile
up into the air
Lab 11C. Write an R program that uses R's curve
method to plot the same
functions as above, that is,
y(t) = y0 + v0 t + g t2 / 2
where y0 = 0, v0= 15, and g = -9.8 from t=0 to t=3.5
Note that R wants the variable to be called x instead of t, and an example of curve
for a straight line looks like
curve(14 + 1.5*x, from=1, to=6, add=TRUE, col="Green")
Actually the add=TRUE is for placing the curve on some pre-existing plot. So you may or may not want it depending on the situation.
Lab 11D. In the same or another R program, plot the Lennard-Jones potential
4 ε ( (σ / r)12 - (σ / r)6 )
with ε = 0.6502 and σ = 0.3166 from r = 0.3 to r = 0.5
Lab 11E. Make your version of the following program that reads a file from the web. Also pick out your own unique colors -- something other than
red, blue, green, etc.
Due: Oct. 16 (Next Monday is break.)