Tuesday, January 26, 2010

Engineers love the Steelers

I haven't blogged since November 19th! That's so messed up of me. Alot has happened since then:

The calendar has changed from 2009 to 2010

Well that's pretty much it. The Steelers didn't make it to the playoffs this year and the Olympics haven't started yet so life's been slow. I have a plan for an epic upcoming blog, but it will have to wait. For now, enjoy this feat of Matlab code that demonstrates the boredom that an engineer feels in the absence of exciting football.

CODE:
%Jamie Haney
%January 2010
%GO STILLERS

clear all
clc;

phi=-2*pi:0.01:2*pi;
a=8;
b=2;

x1=(a-b)*cos(phi)+b*cos([(a-b)/b]*phi); %hypercycloid
y1=(a-b)*sin(phi)-b*sin([(a-b)/b]*phi);

x2=x1+10;
y2=y1-10;

x3=x1;
y3=y1-20;

plot(x1,y1,'y',x2,y2,'r',x3,y3,'b')

No comments:

My YouTube Playlist of the Minute