case class Complex(real: Double, imag: Double) extends Product with Serializable

Immutable complex number representation backed by doubles for the real and imaginary parts.

Integration with scala.math.Numeric and scala.math.Fractional is provided.

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

Instance Constructors

  1. new Complex(real: Double, imag: Double)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def %(that: Double): Complex
  4. def %(that: Float): Complex
  5. def %(that: Int): Complex
  6. def %(that: Complex): Complex
  7. def *(that: Double): Complex
  8. def *(that: Float): Complex
  9. def *(that: Int): Complex
  10. def *(that: Complex): Complex
  11. def +(that: Double): Complex
  12. def +(that: Float): Complex
  13. def +(that: Int): Complex
  14. def +(that: Complex): Complex
  15. def -(that: Double): Complex
  16. def -(that: Float): Complex
  17. def -(that: Int): Complex
  18. def -(that: Complex): Complex
  19. def /(that: Double): Complex
  20. def /(that: Float): Complex
  21. def /(that: Int): Complex
  22. def /(that: Complex): Complex
  23. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  24. def abs: Double
  25. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  26. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  27. def conjugate: Complex
  28. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def equals(that: Any): Boolean
    Definition Classes
    Complex → Equals → AnyRef → Any
  30. def exp: Complex
  31. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  32. def hashCode(): Int
    Definition Classes
    Complex → AnyRef → Any
  33. def im(): Double

    Redundant accessor method, placed for transparent interlink with MATLAB/Mathematica.

  34. val imag: Double
  35. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  36. def log: Complex
  37. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  38. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  39. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  40. def pow(b: Complex): Complex
  41. def pow(b: Double): Complex
  42. def productElementNames: Iterator[String]
    Definition Classes
    Product
  43. def re(): Double

    Redundant accessor method, placed for transparent interlink with MATLAB/Mathematica.

  44. val real: Double
  45. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  46. def toString(): String
    Definition Classes
    Complex → AnyRef → Any
  47. def unary_-: Complex
  48. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  49. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  50. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped