Neat Math and Programs
Robert's contributions
Robert's assimilated math topics
Prime Spiral -- heard about it at a lecture once, found a PostScript
program that would graph it:
primes-distribution.ps.
Made some cosmetic improvements:
primes-distribution2.ps
The original would:
- End midway along a side -- now the spiral ends prior to a corner making the
final dot pattern a square shape. If the paper dimensions are wider than tall,
then the final pattern will be an n by n+1 rectangle.
- Control dot size by way of a dots-per-inch option --
now we can specify the maximum spiral width as a number of dots,
which applies if the dots-per-inch parameter is not defined.
(example here used a grid width of 11)
- Cover the page completely -- that's optional now, the alternative is
to have the square spiral fit within page margins. This is nice if you
want to do a screen capture including only whole dots.
- Draw the underlying spiral in black -- now that gray level is a
parameter. (example here uses .5 on a gray scale of 0.0 to 1.0) (click on
the picture for one that uses a gray value of .7)
Changed 30-Jan-2007 - when the paper dimensions
are set to have the width be greater than the height, since there is room, a
vertical side of the spiral will be added. Since this PostScript file isn't
equipped to alter its orientation, you'd have to feed your paper long side first
to actually print one with these proportions.
- It's here!
to any number of digits, without using extended precision!
- Now in applet form, a Java
program that will let you compute digits of Pi
on your own computer. You even have control of the format of the output.
- A C version has been put together from ...
- The original Pascal version,
which appeared in the Mathematical Monthly. I fixed it so that the output
is in blocks of 5 digits, 4 blocks per row, with an extra line break every
5 rows.
- static sample output.
- A java version of this Pi calculator.
Then, with IO.class and piRadix.class together in a directory, issue a
command like: java piRadix
and you'll be prompted for the number of digits
or: java piRadix 400
to specify a desired number of digits from the command line.
- HLS to RGB
color conversion (and vice-versa).
This is an especially valuable tool for graphics conversion programs which
use DEC's Sixel graphics format.
Also a C version (rgb to hls only).
- Proof
that
is irrational.
- Calendar on a dodecahedron
Stay tuned for more...
- The definite integral:
- Let's all keep a lookout for the day when we can put equations in our web
pages like this:
Links to grass roots math pages
Links to fancy math web pages