Skip to content

MarkBaker/PHPComplex

Repository files navigation

PHPComplex


PHP Class for handling Complex numbers

Master: Build Status

Develop: Build Status


Currently provides the following operations:

  • addition
  • subtraction
  • multiplication
  • division
    • division by
    • division into

together with functions for

  • theta (polar theta angle)
  • rho (polar distance/radius)
  • conjugate
  • negative
  • inverse (1 / complex)
  • cos (cosine)
  • acos (inverse cosine)
  • cosh (hyperbolic cosine)
  • acosh (inverse hyperbolic cosine)
  • sin (sine)
  • asin (inverse sine)
  • sinh (hyperbolic sine)
  • asinh (inverse hyperbolic sine)
  • sec (secant)
  • asec (inverse secant)
  • sech (hyperbolic secant)
  • asech (inverse hyperbolic secant)
  • csc (cosecant)
  • acsc (inverse cosecant)
  • csch (hyperbolic secant)
  • acsch (inverse hyperbolic secant)
  • tan (tangent)
  • atan (inverse tangent)
  • tanh (hyperbolic tangent)
  • atanh (inverse hyperbolic tangent)
  • cot (cotangent)
  • acot (inverse cotangent)
  • coth (hyperbolic cotangent)
  • acoth (inverse hyperbolic cotangent)
  • sqrt (square root)
  • exp (exponential)
  • ln (natural log)
  • log10 (base-10 log)
  • log2 (base-2 log)

Planned additional functionality, but still to implement

  • pow (power)

About

PHP Class for handling Complex numbers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages