LALComplex.c File Reference

#include <math.h>
#include <lal/LALComplex.h>

Include dependency graph for LALComplex.c:

Go to the source code of this file.

Defines

#define LAL_NO_COMPLEX_MACROS

Functions

double hypot (double x, double y)
double log1p (double x)
double acosh (double x)
double atanh (double x)
 NRCSID (LALCOMPLEXC,"$Id: LALComplex.c,v 1.3 2007/10/03 14:49:11 jolien Exp $")
COMPLEX16 XLALCOMPLEX16Rect (REAL8 x, REAL8 y)
COMPLEX16 XLALCOMPLEX16Polar (REAL8 r, REAL8 theta)
REAL8 XLALCOMPLEX16Arg (COMPLEX16 z)
REAL8 XLALCOMPLEX16Abs (COMPLEX16 z)
REAL8 XLALCOMPLEX16Abs2 (COMPLEX16 z)
REAL8 XLALCOMPLEX16LogAbs (COMPLEX16 z)
COMPLEX16 XLALCOMPLEX16Add (COMPLEX16 a, COMPLEX16 b)
COMPLEX16 XLALCOMPLEX16AddReal (COMPLEX16 a, REAL8 x)
COMPLEX16 XLALCOMPLEX16AddImag (COMPLEX16 a, REAL8 y)
COMPLEX16 XLALCOMPLEX16Sub (COMPLEX16 a, COMPLEX16 b)
COMPLEX16 XLALCOMPLEX16SubReal (COMPLEX16 a, REAL8 x)
COMPLEX16 XLALCOMPLEX16SubImag (COMPLEX16 a, REAL8 y)
COMPLEX16 XLALCOMPLEX16Mul (COMPLEX16 a, COMPLEX16 b)
COMPLEX16 XLALCOMPLEX16MulReal (COMPLEX16 a, REAL8 x)
COMPLEX16 XLALCOMPLEX16MulImag (COMPLEX16 a, REAL8 y)
COMPLEX16 XLALCOMPLEX16Div (COMPLEX16 a, COMPLEX16 b)
COMPLEX16 XLALCOMPLEX16DivReal (COMPLEX16 a, REAL8 x)
COMPLEX16 XLALCOMPLEX16DivImag (COMPLEX16 a, REAL8 y)
COMPLEX16 XLALCOMPLEX16Conjugate (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Negative (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Inverse (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Sqrt (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16SqrtReal (REAL8 x)
COMPLEX16 XLALCOMPLEX16Exp (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Pow (COMPLEX16 a, COMPLEX16 b)
COMPLEX16 XLALCOMPLEX16PowReal (COMPLEX16 a, REAL8 b)
COMPLEX16 XLALCOMPLEX16Log (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Log10 (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16LogB (COMPLEX16 a, COMPLEX16 b)
COMPLEX16 XLALCOMPLEX16Sin (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Cos (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Tan (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Sec (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Csc (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Cot (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Arcsin (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16ArcsinReal (REAL8 a)
COMPLEX16 XLALCOMPLEX16Arccos (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16ArccosReal (REAL8 a)
COMPLEX16 XLALCOMPLEX16Arctan (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Arcsec (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16ArcsecReal (REAL8 a)
COMPLEX16 XLALCOMPLEX16Arccsc (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16ArccscReal (REAL8 a)
COMPLEX16 XLALCOMPLEX16Arccot (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Sinh (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Cosh (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Tanh (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Sech (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Csch (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Coth (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Arcsinh (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Arccosh (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16ArccoshReal (REAL8 a)
COMPLEX16 XLALCOMPLEX16Arctanh (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16ArctanhReal (REAL8 a)
COMPLEX16 XLALCOMPLEX16Arcsech (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Arccsch (COMPLEX16 a)
COMPLEX16 XLALCOMPLEX16Arccoth (COMPLEX16 a)
COMPLEX8 XLALCOMPLEX8Rect (REAL4 x, REAL4 y)
COMPLEX8 XLALCOMPLEX8Polar (REAL4 r, REAL4 theta)
REAL4 XLALCOMPLEX8Arg (COMPLEX8 z)
REAL4 XLALCOMPLEX8Abs (COMPLEX8 z)
REAL4 XLALCOMPLEX8Abs2 (COMPLEX8 z)
REAL4 XLALCOMPLEX8LogAbs (COMPLEX8 z)
COMPLEX8 XLALCOMPLEX8Add (COMPLEX8 a, COMPLEX8 b)
COMPLEX8 XLALCOMPLEX8AddReal (COMPLEX8 a, REAL4 x)
COMPLEX8 XLALCOMPLEX8AddImag (COMPLEX8 a, REAL4 y)
COMPLEX8 XLALCOMPLEX8Sub (COMPLEX8 a, COMPLEX8 b)
COMPLEX8 XLALCOMPLEX8SubReal (COMPLEX8 a, REAL4 x)
COMPLEX8 XLALCOMPLEX8SubImag (COMPLEX8 a, REAL4 y)
COMPLEX8 XLALCOMPLEX8Mul (COMPLEX8 a, COMPLEX8 b)
COMPLEX8 XLALCOMPLEX8MulReal (COMPLEX8 a, REAL4 x)
COMPLEX8 XLALCOMPLEX8MulImag (COMPLEX8 a, REAL4 y)
COMPLEX8 XLALCOMPLEX8Div (COMPLEX8 a, COMPLEX8 b)
COMPLEX8 XLALCOMPLEX8DivReal (COMPLEX8 a, REAL4 x)
COMPLEX8 XLALCOMPLEX8DivImag (COMPLEX8 a, REAL4 y)
COMPLEX8 XLALCOMPLEX8Conjugate (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Negative (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Inverse (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Sqrt (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8SqrtReal (REAL4 x)
COMPLEX8 XLALCOMPLEX8Exp (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Pow (COMPLEX8 a, COMPLEX8 b)
COMPLEX8 XLALCOMPLEX8PowReal (COMPLEX8 a, REAL4 b)
COMPLEX8 XLALCOMPLEX8Log (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Log10 (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8LogB (COMPLEX8 a, COMPLEX8 b)
COMPLEX8 XLALCOMPLEX8Sin (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Cos (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Tan (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Sec (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Csc (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Cot (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Arcsin (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8ArcsinReal (REAL4 a)
COMPLEX8 XLALCOMPLEX8Arccos (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8ArccosReal (REAL4 a)
COMPLEX8 XLALCOMPLEX8Arctan (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Arcsec (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8ArcsecReal (REAL4 a)
COMPLEX8 XLALCOMPLEX8Arccsc (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8ArccscReal (REAL4 a)
COMPLEX8 XLALCOMPLEX8Arccot (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Sinh (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Cosh (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Tanh (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Sech (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Csch (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Coth (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Arcsinh (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Arccosh (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8ArccoshReal (REAL4 a)
COMPLEX8 XLALCOMPLEX8Arctanh (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8ArctanhReal (REAL4 a)
COMPLEX8 XLALCOMPLEX8Arcsech (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Arccsch (COMPLEX8 a)
COMPLEX8 XLALCOMPLEX8Arccoth (COMPLEX8 a)


Define Documentation

#define LAL_NO_COMPLEX_MACROS

Definition at line 32 of file LALComplex.c.


Function Documentation

double hypot ( double  x,
double  y 
)

double log1p ( double  x  ) 

double acosh ( double  x  ) 

double atanh ( double  x  ) 

NRCSID ( LALCOMPLEXC  ,
"$Id: LALComplex.  c,
v 1.3 2007/10/03 14:49:11 jolien Exp $"   
)

COMPLEX16 XLALCOMPLEX16Rect ( REAL8  x,
REAL8  y 
)

Definition at line 48 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Polar ( REAL8  r,
REAL8  theta 
)

Definition at line 56 of file LALComplex.c.

REAL8 XLALCOMPLEX16Arg ( COMPLEX16  z  ) 

Definition at line 68 of file LALComplex.c.

REAL8 XLALCOMPLEX16Abs ( COMPLEX16  z  ) 

Definition at line 82 of file LALComplex.c.

REAL8 XLALCOMPLEX16Abs2 ( COMPLEX16  z  ) 

Definition at line 88 of file LALComplex.c.

REAL8 XLALCOMPLEX16LogAbs ( COMPLEX16  z  ) 

Definition at line 97 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Add ( COMPLEX16  a,
COMPLEX16  b 
)

Definition at line 125 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16AddReal ( COMPLEX16  a,
REAL8  x 
)

Definition at line 136 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16AddImag ( COMPLEX16  a,
REAL8  y 
)

Definition at line 144 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Sub ( COMPLEX16  a,
COMPLEX16  b 
)

Definition at line 153 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16SubReal ( COMPLEX16  a,
REAL8  x 
)

Definition at line 164 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16SubImag ( COMPLEX16  a,
REAL8  y 
)

Definition at line 172 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Mul ( COMPLEX16  a,
COMPLEX16  b 
)

Definition at line 180 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16MulReal ( COMPLEX16  a,
REAL8  x 
)

Definition at line 191 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16MulImag ( COMPLEX16  a,
REAL8  y 
)

Definition at line 199 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Div ( COMPLEX16  a,
COMPLEX16  b 
)

Definition at line 207 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16DivReal ( COMPLEX16  a,
REAL8  x 
)

Definition at line 226 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16DivImag ( COMPLEX16  a,
REAL8  y 
)

Definition at line 234 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Conjugate ( COMPLEX16  a  ) 

Definition at line 242 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Negative ( COMPLEX16  a  ) 

Definition at line 250 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Inverse ( COMPLEX16  a  ) 

Definition at line 258 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Sqrt ( COMPLEX16  a  ) 

Definition at line 272 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16SqrtReal ( REAL8  x  ) 

Definition at line 314 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Exp ( COMPLEX16  a  ) 

Definition at line 331 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Pow ( COMPLEX16  a,
COMPLEX16  b 
)

Definition at line 342 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16PowReal ( COMPLEX16  a,
REAL8  b 
)

Definition at line 367 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Log ( COMPLEX16  a  ) 

Definition at line 388 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Log10 ( COMPLEX16  a  ) 

Definition at line 399 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16LogB ( COMPLEX16  a,
COMPLEX16  b 
)

Definition at line 405 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Sin ( COMPLEX16  a  ) 

Definition at line 415 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Cos ( COMPLEX16  a  ) 

Definition at line 436 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Tan ( COMPLEX16  a  ) 

Definition at line 457 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Sec ( COMPLEX16  a  ) 

Definition at line 485 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Csc ( COMPLEX16  a  ) 

Definition at line 492 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Cot ( COMPLEX16  a  ) 

Definition at line 500 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Arcsin ( COMPLEX16  a  ) 

Definition at line 511 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16ArcsinReal ( REAL8  a  ) 

Definition at line 578 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Arccos ( COMPLEX16  a  ) 

Definition at line 602 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16ArccosReal ( REAL8  a  ) 

Definition at line 669 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Arctan ( COMPLEX16  a  ) 

Definition at line 693 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Arcsec ( COMPLEX16  a  ) 

Definition at line 753 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16ArcsecReal ( REAL8  a  ) 

Definition at line 760 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Arccsc ( COMPLEX16  a  ) 

Definition at line 784 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16ArccscReal ( REAL8  a  ) 

Definition at line 791 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Arccot ( COMPLEX16  a  ) 

Definition at line 815 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Sinh ( COMPLEX16  a  ) 

Definition at line 837 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Cosh ( COMPLEX16  a  ) 

Definition at line 847 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Tanh ( COMPLEX16  a  ) 

Definition at line 857 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Sech ( COMPLEX16  a  ) 

Definition at line 881 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Csch ( COMPLEX16  a  ) 

Definition at line 888 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Coth ( COMPLEX16  a  ) 

Definition at line 895 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Arcsinh ( COMPLEX16  a  ) 

Definition at line 906 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Arccosh ( COMPLEX16  a  ) 

Definition at line 915 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16ArccoshReal ( REAL8  a  ) 

Definition at line 923 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Arctanh ( COMPLEX16  a  ) 

Definition at line 947 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16ArctanhReal ( REAL8  a  ) 

Definition at line 963 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Arcsech ( COMPLEX16  a  ) 

Definition at line 980 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Arccsch ( COMPLEX16  a  ) 

Definition at line 987 of file LALComplex.c.

COMPLEX16 XLALCOMPLEX16Arccoth ( COMPLEX16  a  ) 

Definition at line 994 of file LALComplex.c.

COMPLEX8 XLALCOMPLEX8Rect ( REAL4  x,
REAL4  y 
)

Definition at line 1002 of file LALComplex.c.

COMPLEX8 XLALCOMPLEX8Polar ( REAL4  r,
REAL4  theta 
)

Definition at line 1010 of file LALComplex.c.

REAL4 XLALCOMPLEX8Arg ( COMPLEX8  z  ) 

Definition at line 1022 of file LALComplex.c.

REAL4 XLALCOMPLEX8Abs ( COMPLEX8  z  ) 

Definition at line 1036 of file LALComplex.c.

REAL4 XLALCOMPLEX8Abs2 ( COMPLEX8  z  ) 

Definition at line 1042 of file LALComplex.c.

REAL4 XLALCOMPLEX8LogAbs ( COMPLEX8  z  ) 

Definition at line 1051 of file LALComplex.c.

COMPLEX8 XLALCOMPLEX8Add ( COMPLEX8  a,
COMPLEX8  b 
)

Definition at line 1079 of file LALComplex.c.

COMPLEX8 XLALCOMPLEX8AddReal ( COMPLEX8  a,
REAL4  x 
)

Definition at line 1090 of file LALComplex.c.

COMPLEX8 XLALCOMPLEX8AddImag ( COMPLEX8  a,
REAL4  y