- #1

froderick

- 1

- 0

## Homework Statement

The goal of this exercise is to plot parametric equations so that the image looks like the Agnolotti Pasta shell given in the link below.

http://www.nytimes.com/interactive/2012/01/10/science/20120110_pasta.html?ref=science.

## Homework Equations

The relevant equations for the Agnolotti Pasta shell are given in the link

http://www.nytimes.com/interactive/2012/01/10/science/20120110_pasta.html?ref=science.

## The Attempt at a Solution

I get a completely messed up image with my code below. I am not sure what I am missing to dimensionalize the figure. Any help with how to approach this problem would be greatly appreciated! I feel like I am miles away from what this looks like

i = linspace(0,60);

j = linspace(0,60);

z1 = (10.*sin(i.*pi./120).^5 + i./400.*sin(3.*j.*pi./10)).*cos(19.*j.*pi/2000 +0.03.*pi);

z2 = (10.*sin(i.*pi./120) + i./400.*sin(3.*j.*pi./10)).*cos(19.*j.*pi/2000 +0.03.*pi);

z3 = 5.*cos(i.*pi./120).^5.*sin(j.*pi./100) - 5.*sin(j.*pi./100).*cos(i.*pi./120).^200;

plot3(i,j,z1);

hold on

plot3(i,j,z2);

plot3(i,j,z3);

hold off;