object Complex extends Serializable
A companion object for the Complex class.
This contains constants and implicit conversions.
- Source
- Complex.scala
- Alphabetic
- By Inheritance
- Complex
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
E: Complex
The base of the natural logarithm.
-
val
I: Complex
One of the two square roots of -1
One of the two square roots of -1
This has real part 0 and imaginary part 1.
-
val
Infinity: Complex
The number whose real and imaginary parts are both positive infinity.
-
val
NaN: Complex
Not a Number.
Not a Number.
This is the number whose real and imaginary parts are both NaN.
-
val
One: Complex
The number with real part 1 and imaginary part 0.
-
val
Pi: Complex
Half of the one true circle constant.
Half of the one true circle constant.
This is defined as the ratio of a circle's circumference to its diameter.
-
val
Tau: Complex
The one true circle constant.
The one true circle constant.
This is defined as the ratio of a circle's circumference to its radius.
It is exactly 2π and is denoted by τ.
-
val
Zero: Complex
The number with real part 0 and imaginary part 0.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
implicit
def
fromDouble(v: Double): Complex
Wraps a
Double
as a complex number.Wraps a
Double
as a complex number.The output will have the input as its real part and 0 as its imaginary part.
- v
The number to convert to a complex number
- returns
v
as a complex number
-
implicit
def
fromInt(v: Int): Complex
Wraps an
Int
as a complex number.Wraps an
Int
as a complex number.The output will have the input as its real part and 0 as its imaginary part.
- v
The number to convert to a complex number
- returns
v
as a complex number
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
This is the documentation for the Evaluator project (see GitHub).
The main package net.totietje.evaluator. The net.totietje.complex package contains an example usage of this package, which may also be useful.