Class Math_ComplexOp

Description

Math_ComplexOp: static class to operate on Math_Complex objects

Originally this class was part of NumPHP (Numeric PHP package)

Located in Program_Root/Math_Complex/ComplexOp.php (line 37)


	
			
Method Summary
void &asinAlt (mixed &$c1)
object Math_Complex &createFromPolar (float $r, float $theta)
boolean isComplex (mixed &$c1)
object Math_Complex &sqrtReal (float $realnum)
Methods
acos (line 425)

Calculates the inverse cosine of a complex number z = acos(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
acosh (line 653)

Calculates the inverse hyperbolic cosine of a complex number z = acosh(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
acot (line 506)

Calculates the inverse cotangent of a complex number z = acot(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
acoth (line 731)

Calculates the inverse hyperbolic cotangent of a complex number z = acoth(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
acsc (line 487)

Calculates the inverse cosecant of a complex number z = acsc(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
acsch (line 715)

Calculates the inverse hyperbolic cosecant of a complex number z = acsch(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
add (line 769)

Returns the sum of two complex numbers: z = c1 + c2

  • return:

    on success, PEAR_Error otherwise

  • access: public
areEqual (line 749)

Determines if is c1 == c2

  • return:

    True if $c1 == $c2, False if $c1 != $c2, PEAR_Error object on error

  • access: public
mixed &areEqual (object Math_Complex &$c1, object Math_Complex &$c2)
asec (line 468)

Calculates the inverse secant of a complex number z = asec(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
asech (line 699)

Calculates the inverse hyperbolic secant of a complex number z = asech(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
asin (line 339)

Calculates the inverse sine of a complex number z = asin(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
asinAlt (line 352)
void &asinAlt (mixed &$c1)
asinh (line 632)

Calculates the inverse hyperbolic sine of a complex number z = asinh(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
asinReal (line 404)

Calculates the complex inverse sine of a real number z = asinReal(r)

  • access: public
object Math_Complex &asinReal (float $r)
  • float $r
atan (line 445)

Calculates the inverse tangent of a complex number z = atan(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
atanh (line 673)

Calculates the inverse hyperbolic tangent of a complex number z = atanh(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
conjugate (line 184)

Calculates the conjugate of a complex number z = conj(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
cos (line 253)

Calculates the cosine of a complex number z = cos(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
cosh (line 544)

Calculates the hyperbolic cosine of a complex number z = cosh(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
cot (line 320)

Calculates the cotangent of a complex number z = cot(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
coth (line 613)

Calculates the hyperbolic cotangent of a complex number z = coth(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
createFromPolar (line 62)

Converts a polar complex z = r*exp(theta*i) to z = a + b*i

  • access: public
object Math_Complex &createFromPolar (float $r, float $theta)
  • float $r
  • float $theta
csc (line 305)

Calculates the cosecant of a complex number z = csc(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
csch (line 596)

Calculates the hyperbolic cosecant of a complex number z = csch(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
div (line 822)

Returns the division of two complex numbers: z = c1 * c2

  • return:

    on success, PEAR_Error otherwise

  • access: public
exp (line 134)

Calculates the exponential of a complex number z = exp(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
inverse (line 214)

Calculates the inverse of a complex number z = 1/c1

  • return:

    on success, PEAR_Error otherwise

  • access: public
isComplex (line 45)

Checks if a given object is an instance of PEAR::Math_Complex

  • access: public
boolean isComplex (mixed &$c1)
log (line 153)

Calculates the logarithm (base 2) of a complex number z = log(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
log10 (line 169)

Calculates the logarithm (base 10) of a complex number z = log10(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
logBase (line 878)

Returns the logarithm of base c2 of the complex number c1

  • return:

    on success, PEAR_Error otherwise

  • access: public
mult (line 803)

Returns the product of two complex numbers: z = c1 * c2

  • return:

    on success, PEAR_Error otherwise

  • access: public
multIm (line 922)

Returns the product of a complex number and an imaginary number

x = b + c*i y = a*i z = x * y = multIm(x, a);

  • return:

    on success, PEAR_Error otherwise

  • access: public
object Math_Complex &multIm (object Math_Complex $c1, float $im)
multReal (line 899)

Multiplies a complex number by a real number

z = realnumber * c1

  • return:

    on success, PEAR_Error otherwise

  • access: public
object Math_Complex &multReal (object Math_Complex &$c1, float $real)
negative (line 198)

Calculates the negative of a complex number z = -c1

  • return:

    on success, PEAR_Error otherwise

  • access: public
pow (line 848)

Returns the complex power of two complex numbers: z = c1^c2

  • return:

    on success, PEAR_Error otherwise

  • access: public
powReal (line 942)

Returns the exponentiation of a complex numbers to a real power: z = c1^(real)

  • return:

    on success, PEAR_Error otherwise

  • access: public
object Math_Complex &powReal (object Math_Complex $c1, float $real)
sec (line 290)

Calculates the secant of a complex number z = sec(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
sech (line 579)

Calculates the hyperbolic secant of a complex number z = sech(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
sin (line 236)

Calculates the sine of a complex number z = sin(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
sinh (line 527)

Calculates the hyperbolic sine of a complex number z = sinh(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
sqrt (line 80)

Calculates the complex square root of a complex number z = sqrt(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
sqrtReal (line 115)

Calculates the complex square root of a real number z = sqrt(realnumber)

  • access: public
object Math_Complex &sqrtReal (float $realnum)
  • float $realnum:

    A float

sub (line 786)

Returns the difference of two complex numbers: z = c1 - c2

  • return:

    on success, PEAR_Error otherwise

  • access: public
tan (line 270)

Calculates the tangent of a complex number z = tan(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public
tanh (line 561)

Calculates the hyperbolic tangent of a complex number z = tanh(c1)

  • return:

    on success, PEAR_Error otherwise

  • access: public

Documention generated on Fri, 27 Jun 2003 18:28:27 -0700 by phpDocumentor 1.2.0