Math_Complex
[ class tree: Math_Complex ] [ index: Math_Complex ] [ all elements ]

Class: Math_ComplexOp

Source Location: /Math_Complex-0.8/ComplexOp.php

Class Overview


Math_ComplexOp: static class to operate on Math_Complex objects


Author(s):

Version:

  • 0.8

Methods


Inherited Variables

Inherited Methods


Class Details

[line 37]
Math_ComplexOp: static class to operate on Math_Complex objects

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



[ Top ]


Method Detail

acos   [line 425]

object Math_Complex &acos( object Math_Complex &$c1)

Calculates the inverse cosine of a complex number z = acos(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

acosh   [line 653]

object Math_Complex &acosh( object Math_Complex &$c1)

Calculates the inverse hyperbolic cosine of a complex number z = acosh(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

acot   [line 506]

object Math_Complex &acot( object Math_Complex &$c1)

Calculates the inverse cotangent of a complex number z = acot(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

acoth   [line 731]

object Math_Complex &acoth( object Math_Complex &$c1)

Calculates the inverse hyperbolic cotangent of a complex number z = acoth(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

acsc   [line 487]

object Math_Complex &acsc( object Math_Complex &$c1)

Calculates the inverse cosecant of a complex number z = acsc(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

acsch   [line 715]

object Math_Complex &acsch( object Math_Complex &$c1)

Calculates the inverse hyperbolic cosecant of a complex number z = acsch(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

add   [line 769]

object Math_Complex &add( object Math_Complex &$c1, object Math_Complex &$c2)

Returns the sum of two complex numbers: z = c1 + c2
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     
object Math_Complex   $c2     

[ Top ]

areEqual   [line 749]

mixed &areEqual( object Math_Complex &$c1, object Math_Complex &$c2)

Determines if is c1 == c2
  • Return: True if $c1 == $c2, False if $c1 != $c2, PEAR_Error object on error
  • Access: public

Parameters:

object Math_Complex   $c1     
object Math_Complex   $c2     

[ Top ]

asec   [line 468]

object Math_Complex &asec( object Math_Complex &$c1)

Calculates the inverse secant of a complex number z = asec(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

asech   [line 699]

object Math_Complex &asech( object Math_Complex &$c1)

Calculates the inverse hyperbolic secant of a complex number z = asech(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

asin   [line 339]

object Math_Complex &asin( object Math_Complex &$c1)

Calculates the inverse sine of a complex number z = asin(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

asinAlt   [line 352]

void &asinAlt( mixed &$c1)


[ Top ]

asinh   [line 632]

object Math_Complex &asinh( object Math_Complex &$c1)

Calculates the inverse hyperbolic sine of a complex number z = asinh(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

asinReal   [line 404]

object Math_Complex &asinReal( float $r)

Calculates the complex inverse sine of a real number z = asinReal(r)
  • Access: public

Parameters:

float   $r     

[ Top ]

atan   [line 445]

object Math_Complex &atan( object Math_Complex &$c1)

Calculates the inverse tangent of a complex number z = atan(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

atanh   [line 673]

object Math_Complex &atanh( object Math_Complex &$c1)

Calculates the inverse hyperbolic tangent of a complex number z = atanh(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

conjugate   [line 184]

object Math_Complex &conjugate( object Math_Complex &$c1)

Calculates the conjugate of a complex number z = conj(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

cos   [line 253]

object Math_Complex &cos( object Math_Complex &$c1)

Calculates the cosine of a complex number z = cos(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

cosh   [line 544]

object Math_Complex &cosh( object Math_Complex &$c1)

Calculates the hyperbolic cosine of a complex number z = cosh(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

cot   [line 320]

object Math_Complex &cot( object Math_Complex &$c1)

Calculates the cotangent of a complex number z = cot(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

coth   [line 613]

object Math_Complex &coth( object Math_Complex &$c1)

Calculates the hyperbolic cotangent of a complex number z = coth(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

createFromPolar   [line 62]

object Math_Complex &createFromPolar( float $r, float $theta)

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

Parameters:

float   $r     
float   $theta     

[ Top ]

csc   [line 305]

object Math_Complex &csc( object Math_Complex &$c1)

Calculates the cosecant of a complex number z = csc(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

csch   [line 596]

object Math_Complex &csch( object Math_Complex &$c1)

Calculates the hyperbolic cosecant of a complex number z = csch(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

div   [line 822]

object Math_Complex &div( object Math_Complex &$c1, object Math_Complex &$c2)

Returns the division of two complex numbers: z = c1 * c2
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     
object Math_Complex   $c2     

[ Top ]

exp   [line 134]

object Math_Complex &exp( object Math_Complex &$c1)

Calculates the exponential of a complex number z = exp(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

inverse   [line 214]

object Math_Complex &inverse( object Math_Complex &$c1)

Calculates the inverse of a complex number z = 1/c1
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

isComplex   [line 45]

boolean isComplex( mixed &$c1)

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

[ Top ]

log   [line 153]

object Math_Complex &log( object Math_Complex &$c1)

Calculates the logarithm (base 2) of a complex number z = log(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

log10   [line 169]

object Math_Complex &log10( object Math_Complex &$c1)

Calculates the logarithm (base 10) of a complex number z = log10(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

logBase   [line 878]

object Math_Complex &logBase( object Math_Complex &$c1, object Math_Complex &$c2)

Returns the logarithm of base c2 of the complex number c1
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     
object Math_Complex   $c2     

[ Top ]

mult   [line 803]

object Math_Complex &mult( object Math_Complex &$c1, object Math_Complex &$c2)

Returns the product of two complex numbers: z = c1 * c2
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     
object Math_Complex   $c2     

[ Top ]

multIm   [line 922]

object Math_Complex &multIm( object Math_Complex $c1, float $im)

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

Parameters:

object Math_Complex   $c1     
float   $im     

[ Top ]

multReal   [line 899]

object Math_Complex &multReal( object Math_Complex &$c1, float $real)

Multiplies a complex number by a real number

z = realnumber * c1

  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     
float   $real     

[ Top ]

negative   [line 198]

object Math_Complex &negative( object Math_Complex &$c1)

Calculates the negative of a complex number z = -c1
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

pow   [line 848]

object Math_Complex &pow( object Math_Complex &$c1, object Math_Complex &$c2)

Returns the complex power of two complex numbers: z = c1^c2
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     
object Math_Complex   $c2     

[ Top ]

powReal   [line 942]

object Math_Complex &powReal( object Math_Complex $c1, float $real)

Returns the exponentiation of a complex numbers to a real power: z = c1^(real)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     
float   $real     

[ Top ]

sec   [line 290]

object Math_Complex &sec( object Math_Complex &$c1)

Calculates the secant of a complex number z = sec(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

sech   [line 579]

object Math_Complex &sech( object Math_Complex &$c1)

Calculates the hyperbolic secant of a complex number z = sech(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

sin   [line 236]

object Math_Complex &sin( object Math_Complex &$c1)

Calculates the sine of a complex number z = sin(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

sinh   [line 527]

object Math_Complex &sinh( object Math_Complex &$c1)

Calculates the hyperbolic sine of a complex number z = sinh(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

sqrt   [line 80]

object Math_Complex &sqrt( object Math_Complex &$c1)

Calculates the complex square root of a complex number z = sqrt(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

sqrtReal   [line 115]

object Math_Complex &sqrtReal( float $realnum)

Calculates the complex square root of a real number z = sqrt(realnumber)
  • Access: public

Parameters:

float   $realnum     A float

[ Top ]

sub   [line 786]

object Math_Complex &sub( object Math_Complex &$c1, object Math_Complex &$c2)

Returns the difference of two complex numbers: z = c1 - c2
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     
object Math_Complex   $c2     

[ Top ]

tan   [line 270]

object Math_Complex &tan( object Math_Complex &$c1)

Calculates the tangent of a complex number z = tan(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]

tanh   [line 561]

object Math_Complex &tanh( object Math_Complex &$c1)

Calculates the hyperbolic tangent of a complex number z = tanh(c1)
  • Return: on success, PEAR_Error otherwise
  • Access: public

Parameters:

object Math_Complex   $c1     

[ Top ]


Documentation generated on Fri, 30 Apr 2004 21:51:50 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.