Mercurial > octave-antonio
comparison scripts/specfun/primes.m @ 10791:3140cb7a05a1
Add spellchecker scripts for Octave and run spellcheck of documentation
interpreter/doccheck: New directory for spelling/grammar scripts.
interpreter/doccheck/README: Instructions for using scripts.
interpreter/doccheck/spellcheck: Script to spellcheck a Texinfo file.
interpreter/doccheck/aspell.conf: GNU Aspell configuration file for
Octave documentation.
interpreter/doccheck/aspell-octave.en.pws: Private Aspell dictionary.
interpreter/doccheck/add_to_aspell_dict: Script to add new
Octave-specific words to
private Aspell dictionary.
interpreter/octave.texi: New @nospell macro which forces Aspell
to ignore the word marked by the macro.
interpreter/mk_doc_cache.m: Skip new @nospell macro when building
doc_cache.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sat, 17 Jul 2010 19:53:01 -0700 |
parents | c6833d31f34e |
children | c776f063fefe |
comparison
equal
deleted
inserted
replaced
10790:01f1643dfbb1 | 10791:3140cb7a05a1 |
---|---|
19 ## -*- texinfo -*- | 19 ## -*- texinfo -*- |
20 ## @deftypefn {Function File} {} primes (@var{n}) | 20 ## @deftypefn {Function File} {} primes (@var{n}) |
21 ## | 21 ## |
22 ## Return all primes up to @var{n}. | 22 ## Return all primes up to @var{n}. |
23 ## | 23 ## |
24 ## The algorithm used is the Sieve of Erastothenes. | 24 ## The algorithm used is the Sieve of Eratosthenes. |
25 ## | 25 ## |
26 ## Note that if you need a specific number of primes you can use the | 26 ## Note that if you need a specific number of primes you can use the |
27 ## fact the distance from one prime to the next is, on average, | 27 ## fact the distance from one prime to the next is, on average, |
28 ## proportional to the logarithm of the prime. Integrating, one finds | 28 ## proportional to the logarithm of the prime. Integrating, one finds |
29 ## that there are about @math{k} primes less than | 29 ## that there are about @math{k} primes less than |