MATH-MISC(1) MATH-MISC(1)
NAME
fit, mersenne, parts - miscellaneous mathematical
applications
SYNOPSIS
math/fit [ -ddeg ] [ -v ] [ file ]
math/mersenne [ num ]
math/parts [ -a ] [ num... ]
DESCRIPTION
A collection of simple mathematical utilities.
math/fit
Fits a polynomial of degree deg to a set of points (x,
y) where x is the independent variable, y the dependent
one. All x and y values should be seperated by white
space and can be real or integer. The values are read
from file or standard input if none is given. The -v
option prints a table of actual and expected y values.
math/mersenne
Tests the primality of the Mersenne numbers ie numbers
of the form 2^n-1. The argument num is the power of 2
in the above.
math/parts
Calculates the number of partitions of the given
number(s). The -a option will print out a table of the
number of partitions of all numbers up to the given
number(s).
SOURCE
/appl/math/fit.b
/appl/math/mersenne.b
/appl/math/parts.b
Page 1 Plan 9 (printed 11/6/25)