Skip to content

Commit

Permalink
Made waves.rscript an executable.
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfe committed Jan 23, 2012
1 parent ae57837 commit c5f3032
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions r/waves.rscript
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env Rscript
#
# Quick test to see how zero-phase sine and cosine waves
# correlate.
#
Expand All @@ -18,6 +20,7 @@ waves <- function() {
plot(b, type="l")
plot(c, type="l")

print("Correlation: ")
print(sum(c)) # Displays a near-zero number
cat("Correlation: ", sum(c), "\n") # Displays a near-zero number
}

waves()

0 comments on commit c5f3032

Please sign in to comment.