From 7dfd75a8f4bd6129265b648705761084197b7e51 Mon Sep 17 00:00:00 2001 From: Anil Date: Sat, 21 May 2011 18:38:46 -0400 Subject: [PATCH 2/2] Fixed typos on mathn documentation --- lib/mathn.rb | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mathn.rb b/lib/mathn.rb index e16a322..f51c44c 100644 --- a/lib/mathn.rb +++ b/lib/mathn.rb @@ -16,14 +16,14 @@ # will return (3/2) instead of the usual 1. The results will be fractions instead # of floats when possible. # -# Mathn also provides a Prime class for enumerating prime numbers. Sample: +# mathn also provides a Prime class for enumerating prime numbers. Sample: # # Prime.first(5) # # will return [2, 3, 5, 7, 11] # # Requiring mathn you can also solve classic prime number problems -# Problmes like 'what is the largest prime factor of 9?' +# Problems like 'what is the largest prime factor of 9?' # # results = 9.prime_division # puts results[results.length-1][0] @@ -37,7 +37,7 @@ # # Matrix[[1,2,3],[4,5,6]].transpose # -# will retrun Matrix[[1, 4], [2, 5], [3, 6]] +# will return Matrix[[1, 4], [2, 5], [3, 6]] # # # -- 1.7.3.4