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
- Alphabetic
- By Inheritance
Inherited
- Complex
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def %(that: Double): Complex
- def %(that: Float): Complex
- def %(that: Long): Complex
- def %(that: Int): Complex
- def %(that: Complex): Complex
- def *(that: Double): Complex
- def *(that: Float): Complex
- def *(that: Long): Complex
- def *(that: Int): Complex
- def *(that: Complex): Complex
- def +(that: Double): Complex
- def +(that: Float): Complex
- def +(that: Long): Complex
- def +(that: Int): Complex
- def +(that: Complex): Complex
- def -(that: Double): Complex
- def -(that: Float): Complex
- def -(that: Long): Complex
- def -(that: Int): Complex
- def -(that: Complex): Complex
- def /(that: Double): Complex
- def /(that: Float): Complex
- def /(that: Long): Complex
- def /(that: Int): Complex
- def /(that: Complex): Complex
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def abs: Double
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
- def conjugate: Complex
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(that: Any): Boolean
- Definition Classes
- Complex → Equals → AnyRef → Any
- def exp: Complex
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- Complex → AnyRef → Any
-
def
im(): Double
Redundant accessor method, placed for transparent interlink with MATLAB/Mathematica.
- val imag: Double
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def log: Complex
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def pow(b: Complex): Complex
- def pow(b: Double): Complex
-
def
re(): Double
Redundant accessor method, placed for transparent interlink with MATLAB/Mathematica.
- val real: Double
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Complex → AnyRef → Any
- def unary_-: Complex
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )