Common Lisp Package: NET.COMMON-LISP.OCT

README:

FUNCTION

Public

/= (NUMBER &REST MORE-NUMBERS)

Returns T if no two of its arguments are numerically equal, NIL otherwise.

< (NUMBER &REST MORE-NUMBERS)

Returns T if its arguments are in strictly increasing order, NIL otherwise.

<= (NUMBER &REST MORE-NUMBERS)

Returns T if its arguments are in strictly increasing order, NIL otherwise.

= (NUMBER &REST MORE-NUMBERS)

Returns T if all of its arguments are numerically equal, NIL otherwise.

> (NUMBER &REST MORE-NUMBERS)

Returns T if its arguments are in strictly increasing order, NIL otherwise.

>= (NUMBER &REST MORE-NUMBERS)

Returns T if its arguments are in strictly increasing order, NIL otherwise.

FROUND (NUMBER &OPTIONAL (DIVISOR 1))

Same as ROUND, but returns first value as a float.

MAX (NUMBER &REST MORE-NUMBERS)

Returns the greatest of its arguments.

MIN (NUMBER &REST MORE-NUMBERS)

Returns the least of its arguments.

SIGNUM (NUMBER)

If NUMBER is zero, return NUMBER, else return (/ NUMBER (ABS NUMBER)).

Undocumented

* (&REST ARGS)

+ (&REST ARGS)

- (NUMBER &REST MORE-NUMBERS)

/ (NUMBER &REST MORE-NUMBERS)

1+ (X)

1- (X)

CEILING (X &OPTIONAL Y)

COMPLEX (X &OPTIONAL (Y 0))

COMPLEXP (X)

CONJUGATE (Z)

DECODE-FLOAT (F)

EXPT (X Y)

FCEILING (X &OPTIONAL Y)

FFLOOR (X &OPTIONAL Y)

FLOAT (X NUM-TYPE)

FLOAT-SIGN (N &OPTIONAL FLOAT2)

FLOOR (X &OPTIONAL Y)

FTRUNCATE (X &OPTIONAL (Y 1))

IMAGPART (X)

INTEGER-DECODE-FLOAT (F)

MINUSP (X)

NUMBERP (X)

PLUSP (X)

QD-FORMAT-EXP (STREAM ARG COLON-P AT-SIGN-P &OPTIONAL W D E (K 1) OVF (PAD ) EXP-MARKER)

REALP (X)

REALPART (X)

ROUND (NUMBER &OPTIONAL (DIVISOR 1))

SCALE-FLOAT (F N)

TRUNCATE (X &OPTIONAL (Y 1))

ZEROP (X)

Private

QD-COMPLEX-ACOS (Z)

Compute acos z = pi/2 - asin z Z may be any number, but the result is always a complex.

QD-COMPLEX-ACOSH (Z)

Compute acosh z = 2 * log(sqrt((z+1)/2) + sqrt((z-1)/2)) Z may be any number, but the result is always a complex.

QD-COMPLEX-ASIN (Z)

Compute asin z = asinh(i*z)/i Z may be any number, but the result is always a complex.

QD-COMPLEX-ASINH (Z)

Compute asinh z = log(z + sqrt(1 + z*z)) Z may be any number, but the result is always a complex.

QD-COMPLEX-ATAN (Z)

Compute atan z = atanh (i*z) / i Z may be any number, but the result is always a complex.

QD-COMPLEX-ATANH (Z)

Compute atanh z = (log(1+z) - log(1-z))/2

QD-COMPLEX-LOG (Z)

Log of Z = log |Z| + i * arg Z Z may be any number, but the result is always a complex.

QD-COMPLEX-LOG-SCALED (Z J)

Compute log(2^j*z). This is for use with J /= 0 only when |z| is huge.

QD-COMPLEX-SQRT (Z)

Principle square root of Z Z may be any number, but the result is always a complex.

QD-COMPLEX-TAN (Z)

Compute tan z = -i * tanh(i * z) Z may be any number, but the result is always a complex.

QD-COMPLEX-TANH (Z)

Compute tanh z = sinh z / cosh z

SCALB (X N)

Compute 2^N * X without compute 2^N first (use properties of the underlying floating-point format

Undocumented

1+Z (Z)

1-Z (Z)

BIGNUM-TO-QD (BIGNUM)

DECIMAL-STRING (N)

QD-CLASS-READER (STREAM SUBCHAR ARG)

QD-CSSQS (Z)

QD-FORMAT-EXP-AUX (STREAM NUMBER W D E K OVF PAD MARKER ATSIGN)

QD-SCALE-EXPONENT (ORIGINAL-X)

READ-QD-REAL-OR-COMPLEX (STREAM)

SQUARE (X)

Z+1 (Z)

Z-1 (Z)

MACRO

Public

DECF (PLACE &OPTIONAL (DELTA 1) &ENVIRONMENT ENV)

The first argument is some location holding a number. This number is decremented by the second argument, DELTA, which defaults to 1.

INCF (PLACE &OPTIONAL (DELTA 1) &ENVIRONMENT ENV)

The first argument is some location holding a number. This number is incremented by the second argument, DELTA, which defaults to 1.

GENERIC-FUNCTION

Public

ABS (X)

Absolute value of X

ACOS (X)

Inverse cosine of X

ACOSH (X)

Inverse hyperbolic cosine of X

ASIN (X)

Inverse sine of X

ATAN (Y &OPTIONAL X)

If X not given, atan(y). If X is given, atan(y/x), taking the quadrant into account

ATANH (X)

Inverse hyperbolic tangent of X

CIS (X)

(complex (cos x) (sin x))

COERCE (X TYPE)

COERCE

COS (X)

Cosine of X

COSH (X)

Hyperbolic cosine of X

EXP (X)

Exponential of X

LOG (A &OPTIONAL B)

Log of A base B. If B not given, then natural log

PHASE (X)

Phase of X

RANDOM (X &OPTIONAL STATE)

RANDOM

SIN (X)

Sine of X

SINH (X)

Hyperbolic sine of X

SQRT (X)

Square root of X

TAN (X)

Tangent of X

TANH (X)

Hyperbolic tangent of X

Undocumented

ASINH (X)

FLOAT-DIGITS (X)

MAKE-QD (X)

RATIONAL (X)

RATIONALIZE (X)

Private

ADD1 (A)

Add 1

LOG1P (X)

log(1+x)

QCOMPLEX (X &OPTIONAL Y)

Create a complex number with components X and Y. If Y not given, assume 0

QCONJUGATE (Z)

The complex conjugate of Z

QDECODE-FLOAT (F)

decode-float

QEXPT (X Y)

X^Y

QFLOAT (X FTYPE)

Convert X to a float of the same type a FLOAT

QFLOAT-SIGN (A &OPTIONAL B)

Transfer sign of A to B. If B not given, assume 1

QIMAGPART (X)

The imaginary part of X

QINTEGER-DECODE-FLOAT (F)

integer-decode-float

QMINUSP (A)

A < 0

QPLUSP (A)

A > 0

QREALPART (X)

The real part of X

QSCALE-FLOAT (X N)

Multiply the float X by 2^N

QZEROP (A)

A = 0?

SUB1 (A)

Subtract 1

TWO-ARG-* (A B)

A * B

TWO-ARG-+ (A B)

A + B

TWO-ARG-- (A B)

A - B

TWO-ARG-/ (A B)

A / B

TWO-ARG-< (A B)

A < B

TWO-ARG-<= (A B)

A <= B

TWO-ARG-= (A B)

A = B?

TWO-ARG-> (A B)

A > B

TWO-ARG->= (A B)

A >= B

UNARY-DIVIDE (A)

1 / A

UNARY-MINUS (A)

-A

Undocumented

%UNARY-ROUND (X)

QFFLOOR (X &OPTIONAL Y)

QFLOOR (X &OPTIONAL Y)

SLOT-ACCESSOR

Public

Undocumented

QD-REAL (OBJECT)

Private

Undocumented

QD-IMAG (OBJECT)

QD-VALUE (OBJECT)

CLASS

Public

QD-COMPLEX

Complex number consisting of QUAD-DOUBLE components

QD-REAL (OBJECT)

QUAD-DOUBLE real number

CONSTANT

Public

+2PI+

2*pi represented as a QD-REAL

+LOG2+

Natural log of 2 represented as a QD-REAL

+PI+

Pi represented as a QD-REAL

+PI/2+

Pi/2 represented as a QD-REAL

+PI/4+

Pi/4 represented as a QD-REAL

Private

+LEAST-POSITIVE-NORMALIZED-QUAD-DOUBLE-FLOAT+

Least positive normalized QD-REAL

+LEAST-POSITIVE-QUAD-DOUBLE-FLOAT+

Least positive QD-REAL

+MOST-POSITIVE-QUAD-DOUBLE-FLOAT+

Most positive representable QD-REAL

+QD-REAL-ONE+

QD-REAL representation of 1