ToC DocOverview CGDoc RelNotes Index PermutedIndex
Allegro CL
Home Previous Up Next Table of Contents Index
  ANSI Common Lisp   12 Numbers   12.1 Number Concepts

12.1.1 Numeric Operations

Common Lisp provides a large variety of operations related to numbers. This section provides an overview of those operations by grouping them into categories that emphasize some of the relationships among them.

The next figure shows operators relating to arithmetic operations.

Operators relating to Arithmetic.
* 1+ gcd
+ 1- incf
- conjugate lcm
/ decf

The next figure shows defined names relating to exponential, logarithmic, and trigonometric operations.

Defined names relating to Exponentials, Logarithms, and Trigonometry.
abs cos signum
acos cosh sin
acosh exp sinh
asin expt sqrt
asinh isqrt tan
atan log tanh
atanh phase
cis pi

The next figure shows operators relating to numeric comparison and predication.

Operators for numeric comparison and predication.
/= >= oddp
< evenp plusp
<= max zerop
= min
> minusp

The next figure shows defined names relating to numeric type manipulation and coercion.

Defined names relating to numeric type manipulation and coercion.
ceiling float-radix rational
complex float-sign rationalize
decode-float floor realpart
denominator fround rem
fceiling ftruncate round
ffloor imagpart scale-float
float integer-decode-float truncate
float-digits mod
float-precision numerator

12.1.1.1  Associativity and Commutativity in Numeric Operations
12.1.1.2  Contagion in Numeric Operations
12.1.1.3  Viewing Integers as Bits and Bytes


Home Previous Up Next Table of Contents Index
© Franz Inc. 1998-2015 - File last updated 03-23-2015