Skip to content

Instantly share code, notes, and snippets.

@lestrrat
Created August 11, 2009 05:54
Show Gist options
  • Save lestrrat/165652 to your computer and use it in GitHub Desktop.
Save lestrrat/165652 to your computer and use it in GitHub Desktop.
use strict;
use Math::Trig;
my $count = 0;
my $x = 0;
while ($count++ < 100) {
print int( cos( ($x / 2) * pi) ), "\n";
$x < 3 ? $x++ : ($x = 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment