In this experiment, we used an ammonite fossil to plot a logarithmic spiral.
1. Trace the spiral form as seen on the fossil with tracing paper;
3. Let your starting point be the origin and draw an x and y-axis;
4. Measure every 30 degrees from the x-axis from 0 to 360;
5. Measure the distance from the origin to the point on the spiral at every 30 degree interval;
6. With these measurements, we are now able to plot the results using Maple.
> restart;with(plots):with(stats):plotsetup(inline):readlib(readdata):readlib(readline):
> readline("a:/spirdata");AM:=readdata(`a:spirdata`,2):
"AM" stands for ammonite the name of the fossilized mollusk shell used to collect the data.
Using seq allows you to select values separately.
Avalues=angles->we multiplied our values by Pi/180 to convert from angles to radians.
> Avalues:=evalf([seq(AM[i,2],i=1..27)]*Pi/180);
> Rvalues:=[seq(AM[i,1],i=1..27)];
> Lvalues:=[seq(ln(AM[i,1]),i=1..27)];
The R stands for radius, the A for angle theta and the L for linear.
You can take your separate values and make a list of ordered pairs for plotting.
> SP:=[seq([Lvalues[n],Avalues[n]],n=1..27)];
This is the linear representation of our spiral.
> plot(SP,style=point,symbol=circle);
Using the fit command, we we're able to find the linear equation that best suited the graph.
> eq_fit:= fit[leastsquare[[x,y],y=b*x+a,{a,b}]]([Avalues,Lvalues]);
Sd represents spiral data. We will now superimpose the spiral that we fitted over our data points.
> Sd:=[seq([Rvalues[n],Avalues[n]],n=1..27)]: