scalation.math

Complex

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
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val _0: Complex

    Zero (0) as a Complex number

  7. val _1: Complex

    One (1) as a Complex number

  8. val _1n: Complex

    Negative one (-1) as a Complex number

  9. val _i: Complex

    Imaginary one (i) as a Complex number

  10. val _in: Complex

    Negative imaginary one (-i) as a Complex number

  11. 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

  12. 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

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

    Create a complex number from a pair (Tuple2) of Doubles.

    Create a complex number from a pair (Tuple2) of Doubles.

    ct

    the tuple form of a complex number

  14. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. 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)

  17. 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

  18. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  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
  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. val ord: Ordering[Complex]

    Ordering for complex numbers.

  28. 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

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  30. def toString(): String

    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped