This is the generic-arithmetic Reference Manual, version 0.1.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Fri May 15 12:23:08 2026 GMT+0.
The main system appears first, followed by any subsystem dependency.
generic-arithmeticA library for generic arithmetic operations
Joe Marshall
MIT
0.1.0
fiveam (system).
fold (system).
function (system).
package.lisp (file).
generic-arithmetic.lisp (file).
tests.lisp (file).
Files are sorted by type and then listed depth-first from the systems components trees.
generic-arithmetic/generic-arithmetic.asdgeneric-arithmetic/package.lispgeneric-arithmetic/generic-arithmetic.lispgeneric-arithmetic/tests.lispgeneric-arithmetic/generic-arithmetic.asdgeneric-arithmetic (system).
generic-arithmetic/generic-arithmetic.lisppackage.lisp (file).
generic-arithmetic (system).
- (function).
/ (function).
/= (function).
1+ (generic function).
1- (generic function).
< (function).
<2 (generic function).
<= (function).
<=2 (generic function).
= (function).
=2 (generic function).
> (function).
>2 (generic function).
>= (function).
>=2 (generic function).
abs (generic function).
acos (generic function).
acosh (generic function).
add2 (generic function).
asin (generic function).
asinh (generic function).
atan (generic function).
atanh (generic function).
ceiling (generic function).
cis (generic function).
conjugate (generic function).
cos (generic function).
cosh (generic function).
cube (generic function).
denominator (generic function).
divide2 (generic function).
exp (generic function).
expt (generic function).
floor (generic function).
imagpart (generic function).
log (generic function).
max2 (generic function).
min2 (generic function).
mod (generic function).
multiply2 (generic function).
negate (generic function).
numerator (generic function).
phase (generic function).
random (generic function).
rationalize (generic function).
realpart (generic function).
reciprocal (generic function).
rem (generic function).
round (generic function).
signum (generic function).
sin (generic function).
sinh (generic function).
sqrt (generic function).
square (generic function).
subtract2 (generic function).
tan (generic function).
tanh (generic function).
truncate (generic function).
zerop (generic function).
/=2 (generic function).
generic-arithmetic/tests.lispgeneric-arithmetic.lisp (file).
package.lisp (file).
generic-arithmetic (system).
Packages are listed by definition order.
generic-arithmeticcommon-lisp.
fold.
function.
- (function).
/ (function).
/= (function).
1+ (generic function).
1- (generic function).
< (function).
<2 (generic function).
<= (function).
<=2 (generic function).
= (function).
=2 (generic function).
> (function).
>2 (generic function).
>= (function).
>=2 (generic function).
abs (generic function).
acos (generic function).
acosh (generic function).
add2 (generic function).
asin (generic function).
asinh (generic function).
atan (generic function).
atanh (generic function).
ceiling (generic function).
cis (generic function).
conjugate (generic function).
cos (generic function).
cosh (generic function).
cube (generic function).
denominator (generic function).
divide2 (generic function).
exp (generic function).
expt (generic function).
floor (generic function).
imagpart (generic function).
log (generic function).
max2 (generic function).
min2 (generic function).
mod (generic function).
multiply2 (generic function).
negate (generic function).
numerator (generic function).
phase (generic function).
random (generic function).
rationalize (generic function).
realpart (generic function).
reciprocal (generic function).
rem (generic function).
round (generic function).
signum (generic function).
sin (generic function).
sinh (generic function).
sqrt (generic function).
square (generic function).
subtract2 (generic function).
tan (generic function).
tanh (generic function).
truncate (generic function).
zerop (generic function).
/=2 (generic function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Subtract the second and all subsequent arguments from the first; or with one argument, negate the first argument.
Divide the first argument by each of the following arguments, in turn. With one argument, return reciprocal.
Return T if no two of its arguments are numerically equal, NIL otherwise.
Return T if its arguments are in strictly increasing order, NIL otherwise.
Return T if arguments are in strictly non-decreasing order, NIL otherwise.
Return T if all of its arguments are numerically equal, NIL otherwise.
Return T if its arguments are in strictly decreasing order, NIL otherwise.
Return T if arguments are in strictly non-increasing order, NIL otherwise.
Return NUMBER + 1.
Return NUMBER - 1.
Return T if its arguments are in strictly increasing order, NIL otherwise.
number) (right number)) ¶Return T if arguments are in strictly non-decreasing order, NIL otherwise.
number) (right number)) ¶Return T if all of its arguments are numerically equal, NIL otherwise.
number) (right number)) ¶Return T if its arguments are in strictly decreasing order, NIL otherwise.
number) (right number)) ¶Return T if arguments are in strictly non-increasing order, NIL otherwise.
number) (right number)) ¶Return the absolute value of the number.
number)) ¶Return the arc cosine of NUMBER.
number)) ¶Return the hyperbolic arc cosine of NUMBER.
number)) ¶Add LEFT and RIGHT.
(eql 0)) right) ¶(eql 0.0)) right) ¶(eql 0.0d0)) right) ¶(eql 0.0)) (right number)) ¶(eql 0.0d0)) (right number)) ¶(eql 0))) ¶(eql 0.0))) ¶(eql 0.0d0))) ¶number) (right (eql 0.0))) ¶number) (right number)) ¶Return the arc sine of NUMBER.
number)) ¶Return the hyperbolic arc sine of NUMBER.
number)) ¶Compute the arctangent of NUMBER. If DENOMINATOR is provided, compute atan(NUMBER / DENOMINATOR).
number) &optional denominator) ¶Return the hyperbolic arc tangent of NUMBER.
number)) ¶Return number (or number/divisor) as an integer, rounded toward 0. The second returned value is the remainder.
number) &optional divisor) ¶Return cos(Theta) + i sin(Theta), i.e. exp(i Theta).
number)) ¶Return the complex conjugate of NUMBER. For non-complex numbers, this is an identity.
number)) ¶Return the cosine of NUMBER.
number)) ¶Return the hyperbolic cosine of NUMBER.
number)) ¶Compute the cube of NUMBER.
Return the denominator of NUMBER, which must be rational.
rational)) ¶Divide LEFT by RIGHT.
(eql 1)) right) ¶(eql 1.0)) right) ¶(eql 1.0d0)) right) ¶(eql 1))) ¶(eql 1.0))) ¶(eql 1.0d0))) ¶number) (right (eql 1.0))) ¶number) (right (eql 1.0d0))) ¶number) (right number)) ¶Return e raised to the power NUMBER.
Return BASE raised to the POWER.
(eql 0))) ¶(eql 0.0))) ¶(eql 0.0d0))) ¶(eql 1))) ¶number) (exponent (eql 1.0))) ¶number) (exponent (eql 1.0d0))) ¶integer)) ¶(eql 0)) exponent) ¶(eql 0.0)) exponent) ¶(eql 0.0d0)) exponent) ¶(eql 1)) exponent) ¶(eql 1.0)) exponent) ¶(eql 1.0d0)) exponent) ¶number) (exponent number)) ¶Return the greatest integer not greater than number, or number/divisor. The second returned value is (mod number divisor).
number) &optional divisor) ¶Extract the imaginary part of a number.
number)) ¶Return the logarithm of NUMBER in the base BASE, which defaults to e.
Return the greatest of its arguments; among EQUALP greatest, return the first.
number) (right number)) ¶Return the least of its arguments; among EQUALP least, return the first.
number) (right number)) ¶Return second result of FLOOR.
number) (divisor number)) ¶Multiply LEFT by RIGHT.
(eql 0)) right) ¶(eql 0.0)) right) ¶(eql 0.0d0)) right) ¶(eql 1)) right) ¶(eql 1.0)) right) ¶(eql 1.0d0)) right) ¶(eql 1.0)) (right number)) ¶(eql 0))) ¶(eql 0.0))) ¶(eql 0.0d0))) ¶(eql 1))) ¶(eql 1.0))) ¶(eql 1.0d0))) ¶number) (right (eql 1.0))) ¶number) (right (eql 1.0d0))) ¶number) (right number)) ¶Return (- number)
number)) ¶Return the numerator of NUMBER, which must be rational.
rational)) ¶Return the angle part of the polar representation of a complex number. For complex numbers, this is (atan (imagpart number) (realpart number)). For non-complex positive numbers, this is 0. For non-complex negative numbers this is PI.
number)) ¶Converts any REAL to a RATIONAL. Floats are converted to a simple rational representation exploiting the assumption that floats are only accurate to their precision. RATIONALIZE (and also RATIONAL) preserve the invariant: (= x (float (rationalize x) x))
number)) ¶Extract the real part of a number.
number)) ¶Return 1/number.
number)) ¶Return second result of TRUNCATE.
number) (divisor number)) ¶Rounds number (or number/divisor) to nearest integer. The second returned value is the remainder.
number) &optional divisor) ¶If NUMBER is zero, return NUMBER, else return (/ NUMBER (ABS NUMBER)).
number)) ¶Return the sine of NUMBER.
number)) ¶Return the hyperbolic sine of NUMBER.
number)) ¶Return the square root of NUMBER.
number)) ¶Compute the square of NUMBER.
Subtract RIGHT from LEFT.
(eql 0)) right) ¶(eql 0.0)) right) ¶(eql 0.0d0)) right) ¶(eql 0)) (right number)) ¶(eql 0.0)) (right number)) ¶(eql 0.0d0)) (right number)) ¶(eql 0))) ¶(eql 0.0))) ¶(eql 0.0d0))) ¶number) (right (eql 0.0))) ¶number) (right number)) ¶Return the tangent of NUMBER.
number)) ¶Return the hyperbolic tangent of NUMBER.
number)) ¶Return number (or number/divisor) as an integer, rounded toward 0. The second returned value is the remainder.
number) &optional divisor) ¶Is this number zero?
number)) ¶| Jump to: | -
/
1
<
=
>
A C D E F G I L M N P R S T Z |
|---|
| Jump to: | -
/
1
<
=
>
A C D E F G I L M N P R S T Z |
|---|
| Jump to: | F G P S T |
|---|
| Jump to: | F G P S T |
|---|