PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Math » Math_Complex » Manual

Class Summary Math_Complex

Class Summary Math_Complex – Math_Complex: class to represent an manipulate complex numbers (z = a + b*i)

Math_Complex: class to represent an manipulate complex numbers (z = a + b*i)

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

Class Trees for Math_Complex

constructor Math_Complex::Math_Complex

constructor Math_Complex::Math_Complex() – Constructor for Math_Complex

Synopsis

require_once '/Complex.php';

object Math_Complex constructor Math_Complex::Math_Complex ( float $real , float $im )

Description

This package is not documented yet.

Parameter

float $real

Real part of the number

float $im

Imaginary part of the number

Throws

No exceptions thrown.

Note

This function can not be called statically.

Math_Complex::abs

Math_Complex::abs() – Returns the magnitude (also referred as norm) of the number

Synopsis

require_once '/Complex.php';

float Math_Complex::abs ( )

Description

This package is not documented yet.

Throws

No exceptions thrown.

Note

This function can not be called statically.

Math_Complex::abs2

Math_Complex::abs2() – Returns the square of the magnitude of the number

Synopsis

require_once '/Complex.php';

float Math_Complex::abs2 ( )

Description

This package is not documented yet.

Throws

No exceptions thrown.

Note

This function can not be called statically.

Math_Complex::angle

Math_Complex::angle() – Returns the angle (argument) associated with the complex number Alias of Math_Complex::arg()

Synopsis

require_once '/Complex.php';

mixed Math_Complex::angle ( )

Description

This package is not documented yet.

Return value

returns A float on success, a PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can not be called statically.

Math_Complex::arg

Math_Complex::arg() – Returns the argument of the complex number

Synopsis

require_once '/Complex.php';

float|PEAR_Error Math_Complex::arg ( )

Description

This package is not documented yet.

Return value

returns A floating point number on success, a PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can not be called statically.

Math_Complex::getIm

Math_Complex::getIm() – Returns the imaginary part of the complex number

Synopsis

require_once '/Complex.php';

float Math_Complex::getIm ( )

Description

This package is not documented yet.

Throws

No exceptions thrown.

Note

This function can not be called statically.

Math_Complex::getReal

Math_Complex::getReal() – Returns the real part of the complex number

Synopsis

require_once '/Complex.php';

float Math_Complex::getReal ( )

Description

This package is not documented yet.

Throws

No exceptions thrown.

Note

This function can not be called statically.

Math_Complex::norm

Math_Complex::norm() – Returns the norm of the number Alias of Math_Complex::abs()

Synopsis

require_once '/Complex.php';

float Math_Complex::norm ( )

Description

This package is not documented yet.

Throws

No exceptions thrown.

Note

This function can not be called statically.

Math_Complex::toString

Math_Complex::toString() – Simple string representation of the number

Synopsis

require_once '/Complex.php';

string Math_Complex::toString ( )

Description

This package is not documented yet.

Throws

No exceptions thrown.

Note

This function can not be called statically.

Class Summary Math_ComplexOp

Class Summary Math_ComplexOp – Math_ComplexOp: static class to operate on Math_Complex objects

Math_ComplexOp: static class to operate on Math_Complex objects

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

Class Trees for Math_ComplexOp

Math_ComplexOp::acos

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::acos ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::acosh

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::acosh ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::acot

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::acot ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::acoth

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::acoth ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::acsc

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::acsc ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::acsch

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::acsch ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::add

Math_ComplexOp::add() – Returns the sum of two complex numbers: z = c1 + c2

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::add ( Math_Complex &$c1 , Math_Complex &$c2 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1
Math_Complex &$c2

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::areEqual

Math_ComplexOp::areEqual() – Determines if is c1 == c2:

Synopsis

require_once '/ComplexOp.php';

boolean|PEAR_Error& Math_ComplexOp::areEqual ( Math_Complex &$c1 , Math_Complex &$c2 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1
Math_Complex &$c2

Return value

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

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::asec

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::asec ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::asech

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::asech ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::asin

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::asin ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::asinAlt

Math_ComplexOp::asinAlt() – Calculates the inverse sine of a complex number: z = asinAlt(c1) Uses an alternative algorithm

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::asinAlt ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::asinh

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::asinh ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::asinReal

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex & Math_ComplexOp::asinReal ( float $r )

Description

This package is not documented yet.

Parameter

float $r

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::atan

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::atan ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::atanh

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::atanh ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::conjugate

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::conjugate ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::cos

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::cos ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::cosh

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::cosh ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::cot

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::cot ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::coth

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::coth ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::createFromPolar

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex & Math_ComplexOp::createFromPolar ( float $r , float $theta )

Description

This package is not documented yet.

Parameter

float $r
float $theta

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::csc

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::csc ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::csch

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::csch ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::div

Math_ComplexOp::div() – Returns the division of two complex numbers: z = c1 * c2

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::div ( Math_Complex &$c1 , Math_Complex &$c2 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1
Math_Complex &$c2

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::exp

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::exp ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::inverse

Math_ComplexOp::inverse() – Calculates the inverse of a complex number: z = 1/c1

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::inverse ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::isComplex

Math_ComplexOp::isComplex() – Checks if a given object is an instance of PEAR::Math_Complex

Synopsis

require_once '/ComplexOp.php';

boolean Math_ComplexOp::isComplex ( mixed &$c1 )

Description

This package is not documented yet.

Parameter

mixed &$c1

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::log

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::log ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::log10

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::log10 ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::logBase

Math_ComplexOp::logBase() – Returns the logarithm of base c2 of the complex number c1

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::logBase ( Math_Complex &$c1 , Math_Complex &$c2 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1
Math_Complex &$c2

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::mult

Math_ComplexOp::mult() – Returns the product of two complex numbers: z = c1 * c2

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::mult ( Math_Complex &$c1 , Math_Complex &$c2 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1
Math_Complex &$c2

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::multIm

Math_ComplexOp::multIm() – Returns the product of a complex number and an imaginary number if: x = b + c*i, y = a*i; then: z = x * y = multIm(x, a)

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::multIm ( Math_Complex $c1 , float $im )

Description

This package is not documented yet.

Parameter

Math_Complex $c1
float $im

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::multReal

Math_ComplexOp::multReal() – Multiplies a complex number by a real number: z = realnumber * c1

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::multReal ( Math_Complex &$c1 , float $real )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1
float $real

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::negative

Math_ComplexOp::negative() – Calculates the negative of a complex number: z = -c1

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::negative ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::pow

Math_ComplexOp::pow() – Returns the complex power of two complex numbers: z = c1^c2

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::pow ( Math_Complex &$c1 , Math_Complex &$c2 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1
Math_Complex &$c2

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::powReal

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::powReal ( Math_Complex $c1 , float $real )

Description

This package is not documented yet.

Parameter

Math_Complex $c1
float $real

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::sec

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::sec ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::sech

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::sech ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::sin

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::sin ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::sinh

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::sinh ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::sqrt

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::sqrt ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::sqrtReal

Math_ComplexOp::sqrtReal() – Calculates the complex square root of a real number: z = sqrt(realnumber)

Synopsis

require_once '/ComplexOp.php';

Math_Complex & Math_ComplexOp::sqrtReal ( float $realnum )

Description

This package is not documented yet.

Parameter

float $realnum

A float

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::sub

Math_ComplexOp::sub() – Returns the difference of two complex numbers: z = c1 - c2

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::sub ( Math_Complex &$c1 , Math_Complex &$c2 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1
Math_Complex &$c2

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::tan

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::tan ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.

Math_ComplexOp::tanh

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

Synopsis

require_once '/ComplexOp.php';

Math_Complex |PEAR_Error & Math_ComplexOp::tanh ( Math_Complex &$c1 )

Description

This package is not documented yet.

Parameter

Math_Complex &$c1

Return value

returns A valid Math_Complex number on success, PEAR_Error otherwise

Throws

No exceptions thrown.

Note

This function can be called statically.