CLCS

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.

Figure 12–1 shows operators relating to arithmetic operations.

*1+gcd
+1-incf
-conjugatelcm
/decf
Figure 12–1: Operators relating to Arithmetic.

Figure 12–2 shows defined names relating to exponential, logarithmic, and trigonometric operations.

abscossignum
acoscoshsin
acoshexpsinh
asinexptsqrt
asinhisqrttan
atanlogtanh
atanhphase
cispi
Figure 12–2: Defined names relating to Exponentials, Logarithms, and Trigonometry.

Figure 12–3 shows operators relating to numeric comparison and predication.

/=>=oddp
<evenpplusp
<=maxzerop
=min
>minusp
  Figure 12–3: Operators for numeric comparison and predication.

Figure 12–4 shows defined names relating to numeric type manipulation and coercion.

ceilingfloat-radixrational
complexfloat-signrationalize
decode-floatfloorrealpart
denominatorfroundrem
fceilingftruncateround
ffloorimagpartscale-float
floatinteger-decode-floattruncate
float-digitsmod
float-precisionnumerator
  Figure 12–4: Defined names relating to numeric type manipulation and coercion.

Backlinks

*, +, -, Number Concepts