]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/math/primes/miller-rabin/miller-rabin-docs.factor
factor: trim using lists
[factor.git] / basis / math / primes / miller-rabin / miller-rabin-docs.factor
index 2d19d51e060d65436131654fc262e975772d79b8..81aa15e49c11b2c55833ee62b51a320bc0092aef 100644 (file)
@@ -1,12 +1,13 @@
 ! Copyright (C) 2009 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: help.markup help.syntax kernel sequences math ;
+USING: help.markup help.syntax kernel math
+math.primes.miller-rabin ;
 IN: math.primes.miller-rabin
 
 HELP: miller-rabin
 { $values
     { "n" integer }
-    { "?" "a boolean" }
+    { "?" boolean }
 }
 { $description "Returns true if the number is a prime. Calls " { $link miller-rabin* } " with a default of 10 Miller-Rabin tests." } ;
 
@@ -15,14 +16,16 @@ HELP: miller-rabin
 HELP: miller-rabin*
 { $values
     { "n" integer } { "numtrials" integer }
-    { "?" "a boolean" }
+    { "?" boolean }
 }
 { $description "Performs " { $snippet "numtrials" } " trials of the Miller-Rabin probabilistic primality test algorithm and returns true if prime." } ;
 
 ARTICLE: "math.primes.miller-rabin" "Miller-Rabin probabilistic primality test"
 "The " { $vocab-link "math.primes.miller-rabin" } " vocabulary implements the Miller-Rabin probabilistic primality test and utility words that use it in order to generate random prime numbers." $nl
 "The Miller-Rabin probabilistic primality test:"
-{ $subsection miller-rabin }
-{ $subsection miller-rabin* } ;
+{ $subsections
+    miller-rabin
+    miller-rabin*
+} ;
 
 ABOUT: "math.primes.miller-rabin"