final class DrxDouble extends AnyVal
- Source
- numeric.scala
- Alphabetic
- By Inheritance
- DrxDouble
- AnyVal
- Any
- by richDrxAny
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- def %/(ref: Double): Double
alias to relativeChange percent operator where the divisor is the reference
- def *(c: Complex): Complex
- def *(vec: Vec): Vec
- def *[A](other: BaseValue[A]): A
- def **(e: Double): Double
- def +(other: String): String
- def +-(w: Double): Bound[Double]
- def ->[B](y: B): (DrxDouble, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def G: Double
- def M: Double
- def acos: Double
- def acosd: Double
ArcCosine returning degrees instead of radians: acos(x)*180/pi
- def acosh: Double
ln(x + sqrt(x^2 - 1))
- def add(k: Double): Double
- def applyIf(t: Boolean, f: (DrxDouble) => DrxDouble): DrxDouble
- Implicit
- This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def applyIf(t: (DrxDouble) => Boolean)(f: (DrxDouble) => DrxDouble): DrxDouble
better chaining for types
better chaining for types
- Implicit
- This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asin: Double
- def asind: Double
ArcSine returning degrees instead of radians: asin(x)*180/pi
- def asinh: Double
ln(x + sqrt(x^2 + 1))
- def atan: Double
- def atan2(a: Double): Double
- def atand: Double
ArcTan returning degrees instead of radians: atan(x)*180/pi
- def atanh: Double
ln((1+v)/(1-v))/2
- def cos: Double
- def cos2: Double
- def cosd: Double
Cosine assuming degrees instead of radians: cos(x*pi/180)
- def cosh: Double
(ex + e-x)/2
- def dB: Double
note this assumes a power based ratio, a root-power (field) quanity needs to be multiplied by 2
- def day: Time
- def deg: Angle
- def diff(w: Double): Double
- def div(k: Double): Double
- def divCeil(k: Double): Long
- def divFloor(k: Double): Long
- def divOption(w: Double): Option[Double]
- def double: Double
- def elementOf(xs: Set[DrxDouble]): Boolean
- Implicit
- This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ensuring(cond: (DrxDouble) => Boolean, msg: => Any): DrxDouble
- def ensuring(cond: (DrxDouble) => Boolean): DrxDouble
- def ensuring(cond: Boolean, msg: => Any): DrxDouble
- def ensuring(cond: Boolean): DrxDouble
- def erf: Double
erf --max error: 1.5×10−7 https://en.wikipedia.org/wiki/Error_function#Numerical_approximations A+S
- def even: Boolean
- def exp(base: Double): Double
nice way to flip things around rather than using base.pow(v); useful for chained equation descriptions
- def exp: Double
- def exp10: Double
- def exp2: Double
- def expE: Double
- def foldLeft[T](acc: T)(f: (T) => T): T
- def formatted(fmtstr: String): String
- def ft: Length
- def g0: Acceleration
- def gamma: Double
gamma --max-error 1E-14 https://en.wikipedia.org/wiki/Lanczos_approximation https://rosettacode.org/wiki/Gamma_function#Scala
- def get: Option[Double]
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def half: Double
- def hr: Time
- def hypot(a: Double): Double
- def hz: Frequency
- def i: Complex
imaginary number notation
- def ierf: Double
- def inv: Double
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isReal: Boolean
- def isUnreal: Boolean
- def iterate[T](acc: T)(f: (T) => T): T
- def k: Double
- def km: Length
- def lerp(b: Double)(amt: Double): Double
- def ln: Double
- def log(b: Double): Double
- def log: Double
- def log10: Double
- def log2: Double
- def logE: Double
- def m: Length
- def mapAbs(f: (Double) => Double): Double
apply an operation to the absolute value and return the double with the original sgn.
apply an operation to the absolute value and return the double with the original sgn. -1.2.mapAbs(_.ceil) => -2.0 ; -1.2.ceil => 1.0
- def mean(w: Double): Double
- def minute: Time
- def modOption(w: Double): Option[Double]
- def month: Time
- def ms: Time
- def mul(k: Double): Double
- def neg: Double
- def next: Double
- def noneIf(f: (DrxDouble) => Boolean): Option[DrxDouble]
- Implicit
- This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def not: Double
- def ns: Time
- def odd: Boolean
- def optionIf(f: (DrxDouble) => Boolean): Option[DrxDouble]
optionally wrap an object
optionally wrap an object
- Implicit
- This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def percent: Ratio
ratio construction by percent
- def percentError(ref: Double): Double
- def plusOrMinus(w: Double): Bound[Double]
- def pow(e: Double): Double
- def preApply[B](f: (DrxDouble) => B): B
a preApply f => f(a)
a preApply f => f(a)
- Implicit
- This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def prev: Double
- def px: Weight
- def rad: Angle
- def relativeChange(ref: Double): Double
relativeChange percent operator where the divisor is the reference https://en.wikipedia.org/wiki/Approximation_error https://en.wikipedia.org/wiki/Relative_change_and_difference
- def relativeDifference(w: Double): Double
- def s: Time
- def sat(max: Double): Double
- def sat(min: Double, max: Double): Double
- def sgn: Double
- def sgnOf(w: Double): Double
- def sideEffect(f: (DrxDouble) => Unit): DrxDouble
side effect filter
side effect filter
- Implicit
- This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def sigmoid: Double
- def sin: Double
- def sin2: Double
- def sind: Double
Sine assuming degrees instead of radians: sin(x*pi/180)
- def sinh: Double
(ex - e-x)/2
- def someIf(f: (DrxDouble) => Boolean): Option[DrxDouble]
- Implicit
- This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def sq: Double
- def sqrt: Double
- def sub(k: Double): Double
- def take(n: Int): Iterable[Double]
- def tan: Double
- def tan2: Double
- def tand: Double
Tan assuming degrees instead of radians: tan(x*pi/180)
- def tanh: Double
sinh/cosh => (e2x - 1)/(e2x + 1)
- val thisAny: DrxDouble
- Implicit
- This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def times(f: => Unit): Unit
- def toBig: BigDecimal
- def toBits: Long
- def toByteArray: Array[Byte]
- def toRatio: Ratio
- def toString(): String
- Definition Classes
- Any
- def todB: Double
- val v: Double
- def x: Vec
- def xy: Vec
- def xyz: Vec
- def y: Vec
- def yr: Time
- def z: Vec
- def ||(w: Double): Double
- def ~(w: Double): Bound[Double]
- def ~=(w: Double)(implicit eps: Eps): Boolean
- def ~>(w: Double): Bound[Double]
Deprecated Value Members
- def #^(e: Double): Double
- Annotations
- @deprecated
- Deprecated
(Since version 0.2.13) just use **, don't duplicate operator symbols
- def /:[T](acc: T)(f: (T) => T): T
- Annotations
- @deprecated
- Deprecated
(Since version dp) use foldLeft instead in scala-2.13
- def ?>(f: (DrxDouble) => Boolean): Option[DrxDouble]
alias for option if
alias for option if
- Implicit
- This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) to many symbols are hard to undertand
- def |>[B](f: (DrxDouble) => B): B
- Implicit
- This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use
preApply
if you must (symbols are concise without concision)
- def →[B](y: B): (DrxDouble, B)
- Implicit
- This member is added by an implicit conversion from DrxDouble toArrowAssoc[DrxDouble] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.