Skip to content
 
 

Latest commit

 

History

44 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPComplex


PHP Class for handling Complex numbers


Currently provides methods for:

  • 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)
  • cot (cotangent)
  • acot (inverse cotangent)
  • sqrt (square root)
  • exp (exponential)
  • ln (natural log)
  • log10 (base-10 log)
  • log2 (base-2 log)

Planned additional functionality, but still to implement

  • tanh (hyperbolic tangent)
  • atanh (inverse hyperbolic tangent)
  • coth (hyperbolic cotangent)
  • acoth (inverse hyperbolic cotangent)
  • pow (power)

Functions added

  • tanh (hyperbolic tangent)
  • atanh (inverse hyperbolic tangent)
  • coth (hyperbolic cotangent)
  • acoth (inverse hyperbolic cotangent)
  • gudermannian () Hyperbolic
  • inversegudermannian () Hyperbolic
  • haversine () Trigonometric
  • inversehaversine () Trigonometric

About

PHP Class for handling Complex numbers

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages