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
Serializable, Product, Equals, AnyRef, Any
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: Long): Complex
  6. def %(that: Int): Complex
  7. def %(that: Complex): Complex
  8. def *(that: Double): Complex
  9. def *(that: Float): Complex
  10. def *(that: Long): Complex
  11. def *(that: Int): Complex
  12. def *(that: Complex): Complex
  13. def +(that: Double): Complex
  14. def +(that: Float): Complex
  15. def +(that: Long): Complex
  16. def +(that: Int): Complex
  17. def +(that: Complex): Complex
  18. def -(that: Double): Complex
  19. def -(that: Float): Complex
  20. def -(that: Long): Complex
  21. def -(that: Int): Complex
  22. def -(that: Complex): Complex
  23. def /(that: Double): Complex
  24. def /(that: Float): Complex
  25. def /(that: Long): Complex
  26. def /(that: Int): Complex
  27. def /(that: Complex): Complex
  28. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  29. def abs: Double
  30. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  31. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  32. def conjugate: Complex
  33. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. def equals(that: Any): Boolean
    Definition Classes
    Complex → Equals → AnyRef → Any
  35. def exp: Complex
  36. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  37. def hashCode(): Int
    Definition Classes
    Complex → AnyRef → Any
  38. def im(): Double

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

  39. val imag: Double
  40. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  41. def log: Complex
  42. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  43. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  44. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  45. def pow(b: Complex): Complex
  46. def pow(b: Double): Complex
  47. def productElementNames: Iterator[String]
    Definition Classes
    Product
  48. def re(): Double

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

  49. val real: Double
  50. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  51. def toString(): String
    Definition Classes
    Complex → AnyRef → Any
  52. def unary_-: Complex
  53. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  54. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  55. 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
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped