C8LIB
A Double Precision Complex Arithmetic Utility Library
C8LIB
is a Python library which
implements certain
elementary functions for "C8" or
double precision complex variables.
The symbol "C8" is used to suggest a double precision complex
variable. Here the 8 indicates that the underlying pair of
real numbers each use 8 bytes of storage.
C8LIB contains routines that operate on scalars, vectors or
doubly dimensioned arrays of C8's. A vector of C8's is denoted
a C8VEC, and a doubly dimensioned array is a C8MAT.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
C8LIB is available in
a C version and
a C++ version and
a FORTRAN90 version and
a MATLAB version and
a Python version.
Related Programs:
C4LIB,
a Python library which
contains many utility routines, using "C4" or
"single precision complex" arithmetic.
COMPLEX_NUMBERS,
a Python program which
demonstrates some simple features involved in the use of
complex numbers in FORTRAN90 programming.
I4LIB,
a Python library which
contains many utility routines, using "I4" or "single precision integer"
arithmetic.
R4LIB,
a Python library which
contains many utility routines
using single precision real (R4) arithmetic.
R8LIB,
a Python library which
contains many utility routines, using "R8" or
"double precision real" arithmetic.
UNIFORM,
a Python library which
contains uniform random number generators (RNG's) for
several arithmetic types.
Source Code:
-
c8_abs.py,
returns the absolute value of a C8.
-
c8_acos.py,
returns the inverse cosine of a C8.
-
c8_acosh.py,
returns the inverse hyperbolic cosine of a C8.
-
c8_add.py,
adds two C8's.
-
c8_arg.py,
returns the argument of a C8.
-
c8_asin.py,
returns the inverse sine of a C8.
-
c8_asinh.py,
returns the inverse hyperbolic sine of a C8.
-
c8_atan.py,
returns the inverse tangent of a C8.
-
c8_atanh.py,
returns the inverse hyperbolic tangent of a C8.
-
c8_conj.py,
returns the conjugate of a C8.
-
c8_cos.py,
returns the cosine of a C8.
-
c8_cosh.py,
returns the hyperbolic cosine of a C8.
-
c8_cube_root.py,
returns the cube root of a C8.
-
c8_div.py,
divides one C8 by another.
-
c8_div_r8.py,
divides a C8 by an R8.
-
c8_exp.py,
returns the exponential of a C8.
-
c8_i.py,
returns the value of the imaginary unit as a C8.
-
c8_imag.py,
returns the imaginary part of a C8.
-
c8_inv.py,
returns the inverse of a C8.
-
c8_le_l1.py,
evaluates C1 <= C2 in the L1 norm.
-
c8_le_l2.py,
evaluates C1 <= C2 in the L2 norm.
-
c8_le_li.py,
evaluates C1 <= C2 in the Loo norm.
-
c8_log.py,
returns the logarithm of a C8.
-
c8_mag.py,
returns the magnitude of a C8.
-
c8_mul.py,
multiplies two C8's.
-
c8_nint.py,
returns the nearest integer to a C8.
-
c8_norm_l1.py,
returns the L1 norm of a C8.
-
c8_norm_l2.py,
returns the L2 norm of a C8.
-
c8_norm_li.py,
returns the Loo norm of a C8.
-
c8_normal_01.py,
returns a unit normal C8.
-
c8_one.py,
returns the value of one as a C8.
-
c8_print.py,
prints a C8.
-
c8_real.py,
returns the real part of a C8.
-
c8_sin.py,
returns the sine of a C8.
-
c8_sinh.py,
returns the hyperbolic sine of a C8.
-
c8_sqrt.py,
returns the square root of a C8.
-
c8_sub.py,
subtracts two C8's.
-
c8_tan.py,
returns the tangent of a C8.
-
c8_tanh.py,
returns the hyperbolic tangent of a C8.
-
c8_to_cartesian.py,
converts a C8 to cartesian form.
-
c8_to_polar.py,
converts a C8 to polar form.
-
c8_uniform_01.py,
returns a unit pseudorandom C8.
-
c8_zero.py,
returns the value of zero as a C8.
-
c8mat_identity.py,
returns the identity matrix.
-
c8mat_indicator.py,
returns the indicator matrix.
-
c8mat_norm_fro.py,
returns the Frobenius norm of a C8MAT.
-
c8mat_norm_l1.py,
returns the L1 norm of a C8MAT.
-
c8mat_norm_li.py,
returns the Loo norm of a C8MAT.
-
c8mat_print.py,
prints a C8MAT.
-
c8mat_print_some.py,
prints some of a C8MAT.
-
c8mat_uniform_01.py,
returns a unit pseudorandom C8MAT.
-
c8vec_indicator.py,
returns the indicator vector as a C8VEC.
-
c8vec_nint.py,
rounds a C8VEC.
-
c8vec_norm_l1.py,
returns the L1 norm of a C8VEC.
-
c8vec_norm_l2.py,
returns the L2 norm of a C8VEC.
-
c8vec_norm_li.py,
returns the Loo norm of a C8VEC.
-
c8vec_print.py,
prints a C8VEC.
-
c8vec_print_part.py,
prints part of a C8VEC.
-
c8vec_sort_a_l1.py,
sorts C8VEC's by L1 norm.
-
c8vec_sort_a_l2.py,
sorts C8VEC's by L2 norm.
-
c8vec_sort_a_li.py,
sorts C8VEC's by Loo norm.
-
c8vec_spiral.py,
returns N points on a spiral between C1 and C2.
-
c8vec_uniform_01.py,
returns a unit pseudorandom C8VEC.
-
c8vec_unity.py,
returns the N roots of unity.
-
cartesian_to_c8.py,
converts cartesian form to a C8.
-
polar_to_c8.py,
converts polar form to a C8.
-
r8_atan.py,
computes the arc tangent of real arguments;
-
r8_uniform_01.py,
returns a unit pseudorandom R8.
-
sort_safe_rc.py,
externally sorts a list of items into ascending order.
-
timestamp.py,
prints the current YMDHMS date as a timestamp;
Examples and Tests:
You can go up one level to
the Python source codes.
Last revised on 19 June 2016.