Packages

object Complex extends Serializable

The Complex companion object defines the origin (zero) and the fourth roots of unity as well as some utility functions.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Complex
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val _0: Complex

    Zero (0) as a Complex number

  5. val _1: Complex

    One (1) as a Complex number

  6. val _1n: Complex

    Negative one (-1) as a Complex number

  7. val _i: Complex

    Imaginary one (i) as a Complex number

  8. val _in: Complex

    Negative imaginary one (-i) as a Complex number

  9. def abs(c: Complex): Complex

    Return the absolute value of that complex number.

    Return the absolute value of that complex number.

    c

    that complex number

  10. def apply(cs: String): Complex

    Create a complex number from its primary string representation "a+bi".

    Create a complex number from its primary string representation "a+bi". Examples: "2.1+3.2i", "2.1", "3.2i".

    cs

    the string form of a complex number

  11. def apply(ct: (Double, Double)): Complex

    Create a complex number from a pair of 'Double's.

    Create a complex number from a pair of 'Double's.

    ct

    the tuple form of a complex number

  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  14. def create(rad: Double, ang: Double): Complex

    Create a complex number from the given polar coordinates.

    Create a complex number from the given polar coordinates.

    rad

    the radius (the length of the vector in the 're-im' plane)

    ang

    the angle (the angle of the vector above the 're'-axis)

  15. def create(cs: String): Complex

    Create a complex number from its secondary string representation "(a, b)".

    Create a complex number from its secondary string representation "(a, b)". Examples: "(2.1, 3.2)", "(2.1, 0)", "(0, 3.2)".

    cs

    the string form of a complex number

  16. implicit def double2Complex(d: Double): Complex

    Implicit conversion from 'Double' to 'Complex'.

    Implicit conversion from 'Double' to 'Complex'.

    d

    the Double parameter to convert

  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  19. def exp(c: Complex): Complex

    Return the complex exponenential function of that complex number.

    Return the complex exponenential function of that complex number.

    c

    that complex number

    See also

    www.math.wisc.edu/~angenent/Free-Lecture-Notes/freecomplexnumbers.pdf

  20. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. def max(c: Complex, d: Complex): Complex

    Return the maximum of two complex number, 'c' and 'd'.

    Return the maximum of two complex number, 'c' and 'd'.

    c

    the first complex number to compare

    d

    the second complex number to compare

  25. def min(c: Complex, d: Complex): Complex

    Return the minimum of two complex numbers, 'c' and 'd'.

    Return the minimum of two complex numbers, 'c' and 'd'.

    c

    the first complex number to compare

    d

    the second complex number to compare

  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. implicit val num: Complex

    Implicit numeric value for establishing type

  30. implicit val ord: Ordering[Complex]

    Ordering for complex numbers

  31. def signum(c: Complex): Complex

    Return the complex signum (csgn) of a complex number.

    Return the complex signum (csgn) of a complex number. The values may be -1, 0, or 1.

    c

    the complex number to obtain the signum of

    See also

    en.wikipedia.org/wiki/Sign_function

  32. def sqrt(c: Complex): Complex

    Return the square root of that complex number.

    Return the square root of that complex number.

    c

    that complex number

    See also

    www.mathpropress.com/stan/bibliography/complexSquareRoot.pdf

  33. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped