spire.std

FloatAlgebra

class FloatAlgebra extends FloatIsField with FloatIsNRoot with FloatIsTrig with FloatIsReal with Serializable

Annotations
@SerialVersionUID( 0L )
Linear Supertypes
Serializable, Serializable, FloatIsReal, FloatIsSigned, FloatOrder, IsRational[Float], IsAlgebraic[Float], IsReal[Float], Signed[Float], Order[Float], PartialOrder[Float], Eq[Float], FloatIsTrig, Trig[Float], FloatIsNRoot, NRoot[Float], FloatIsField, Field[Float], MultiplicativeAbGroup[Float], MultiplicativeGroup[Float], EuclideanRing[Float], CRing[Float], MultiplicativeCMonoid[Float], MultiplicativeCSemigroup[Float], Ring[Float], Rng[Float], AdditiveAbGroup[Float], AdditiveCMonoid[Float], AdditiveCSemigroup[Float], AdditiveGroup[Float], Rig[Float], MultiplicativeMonoid[Float], Semiring[Float], MultiplicativeSemigroup[Float], AdditiveMonoid[Float], AdditiveSemigroup[Float], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FloatAlgebra
  2. Serializable
  3. Serializable
  4. FloatIsReal
  5. FloatIsSigned
  6. FloatOrder
  7. IsRational
  8. IsAlgebraic
  9. IsReal
  10. Signed
  11. Order
  12. PartialOrder
  13. Eq
  14. FloatIsTrig
  15. Trig
  16. FloatIsNRoot
  17. NRoot
  18. FloatIsField
  19. Field
  20. MultiplicativeAbGroup
  21. MultiplicativeGroup
  22. EuclideanRing
  23. CRing
  24. MultiplicativeCMonoid
  25. MultiplicativeCSemigroup
  26. Ring
  27. Rng
  28. AdditiveAbGroup
  29. AdditiveCMonoid
  30. AdditiveCSemigroup
  31. AdditiveGroup
  32. Rig
  33. MultiplicativeMonoid
  34. Semiring
  35. MultiplicativeSemigroup
  36. AdditiveMonoid
  37. AdditiveSemigroup
  38. AnyRef
  39. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FloatAlgebra()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def abs(a: Float): Float

    An idempotent function that ensures an object has a non-negative sign.

    An idempotent function that ensures an object has a non-negative sign.

    Definition Classes
    FloatIsSignedSigned
  7. def acos(a: Float): Float

    Definition Classes
    FloatIsTrigTrig
  8. def additive: AbGroup[Float]

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def asin(a: Float): Float

    Definition Classes
    FloatIsTrigTrig
  11. def atan(a: Float): Float

    Definition Classes
    FloatIsTrigTrig
  12. def atan2(y: Float, x: Float): Float

    Definition Classes
    FloatIsTrigTrig
  13. def ceil(a: Float): Float

    Rounds a the nearest integer that is greater than or equal to a.

    Rounds a the nearest integer that is greater than or equal to a.

    Definition Classes
    FloatIsRealIsReal
  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def compare(x: Float, y: Float): Int

    Definition Classes
    FloatOrderOrder
  16. def cos(a: Float): Float

    Definition Classes
    FloatIsTrigTrig
  17. def cosh(x: Float): Float

    Definition Classes
    FloatIsTrigTrig
  18. def div(a: Float, b: Float): Float

    Definition Classes
    FloatIsFieldMultiplicativeGroup
  19. def e: Float

    Definition Classes
    FloatIsTrigTrig
  20. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  22. def eqv(x: Float, y: Float): Boolean

    Returns true if x and y are equivalent, false otherwise.

    Returns true if x and y are equivalent, false otherwise.

    Definition Classes
    FloatOrderOrderPartialOrderEq
  23. final def euclid(a: Float, b: Float)(implicit eq: Eq[Float]): Float

    Attributes
    protected[this]
    Definition Classes
    EuclideanRing
    Annotations
    @tailrec()
  24. def exp(a: Float): Float

    Definition Classes
    FloatIsTrigTrig
  25. def expm1(a: Float): Float

    Definition Classes
    FloatIsTrigTrig
  26. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def floor(a: Float): Float

    Rounds a the nearest integer that is less than or equal to a.

    Rounds a the nearest integer that is less than or equal to a.

    Definition Classes
    FloatIsRealIsReal
  28. def fpow(a: Float, b: Float): Float

    Definition Classes
    FloatIsNRootNRoot
  29. def fromDouble(n: Double): Float

    This is implemented in terms of basic Field ops.

    This is implemented in terms of basic Field ops. However, this is probably significantly less efficient than can be done with a specific type. So, it is recommended that this method is overriden.

    This is possible because a Double is a rational number.

    Definition Classes
    FloatIsFieldField
  30. def fromInt(n: Int): Float

    Defined to be equivalent to additive.sumn(one, n).

    Defined to be equivalent to additive.sumn(one, n). That is, n repeated summations of this ring's one, or -one if n is negative.

    Definition Classes
    FloatIsFieldRing
  31. final def gcd(a: Float, b: Float): Float

    Definition Classes
    FloatIsFieldEuclideanRing
  32. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  33. def gt(x: Float, y: Float): Boolean

    Definition Classes
    FloatOrderOrderPartialOrder
  34. def gteqv(x: Float, y: Float): Boolean

    Definition Classes
    FloatOrderOrderPartialOrder
  35. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  36. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  37. def isOne(a: Float)(implicit ev: Eq[Float]): Boolean

    Definition Classes
    MultiplicativeMonoid
  38. def isSignNegative(a: Float): Boolean

    Definition Classes
    Signed
  39. def isSignNonNegative(a: Float): Boolean

    Definition Classes
    Signed
  40. def isSignNonPositive(a: Float): Boolean

    Definition Classes
    Signed
  41. def isSignNonZero(a: Float): Boolean

    Definition Classes
    Signed
  42. def isSignPositive(a: Float): Boolean

    Definition Classes
    Signed
  43. def isSignZero(a: Float): Boolean

    Definition Classes
    Signed
  44. def isWhole(a: Float): Boolean

    Returns true iff a is a an integer.

    Returns true iff a is a an integer.

    Definition Classes
    FloatIsRealIsReal
  45. def isZero(a: Float)(implicit ev: Eq[Float]): Boolean

    Tests if a is zero.

    Tests if a is zero.

    Definition Classes
    AdditiveMonoid
  46. def lcm(a: Float, b: Float): Float

    Definition Classes
    EuclideanRing
  47. def log(a: Float): Float

    Definition Classes
    FloatIsTrigTrig
  48. def log1p(a: Float): Float

    Definition Classes
    FloatIsTrigTrig
  49. def lt(x: Float, y: Float): Boolean

    Definition Classes
    FloatOrderOrderPartialOrder
  50. def lteqv(x: Float, y: Float): Boolean

    Definition Classes
    FloatOrderOrderPartialOrder
  51. def max(x: Float, y: Float): Float

    Definition Classes
    FloatOrderOrder
  52. def min(x: Float, y: Float): Float

    Definition Classes
    FloatOrderOrder
  53. def minus(a: Float, b: Float): Float

    Definition Classes
    FloatIsFieldAdditiveGroup
  54. def mod(a: Float, b: Float): Float

    Definition Classes
    FloatIsFieldEuclideanRing
  55. def multiplicative: AbGroup[Float]

  56. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  57. def negate(a: Float): Float

    Definition Classes
    FloatIsFieldAdditiveGroup
  58. def neqv(x: Float, y: Float): Boolean

    Returns false if x and y are equivalent, true otherwise.

    Returns false if x and y are equivalent, true otherwise.

    Definition Classes
    FloatOrderEq
  59. final def notify(): Unit

    Definition Classes
    AnyRef
  60. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  61. def nroot(a: Float, k: Int): Float

    Definition Classes
    FloatIsNRootNRoot
  62. def on[B](f: (B) ⇒ Float): Order[B]

    Defines an order on B by mapping B to A using f and using As order to order B.

    Defines an order on B by mapping B to A using f and using As order to order B.

    Definition Classes
    OrderPartialOrderEq
  63. def one: Float

    Definition Classes
    FloatIsFieldMultiplicativeMonoid
  64. def partialCompare(x: Float, y: Float): Double

    Result of comparing x with y.

    Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is: - negative iff x < y - zero iff x === y - positive iff x > y

    Definition Classes
    OrderPartialOrder
  65. def pi: Float

    Definition Classes
    FloatIsTrigTrig
  66. def plus(a: Float, b: Float): Float

    Definition Classes
    FloatIsFieldAdditiveSemigroup
  67. def pmax(x: Float, y: Float): Option[Float]

    Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

    Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

    Definition Classes
    PartialOrder
  68. def pmin(x: Float, y: Float): Option[Float]

    Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

    Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

    Definition Classes
    PartialOrder
  69. def pow(a: Float, b: Int): Float

    This is similar to Semigroup#pow, except that a pow 0 is defined to be the multiplicative identity.

    This is similar to Semigroup#pow, except that a pow 0 is defined to be the multiplicative identity.

    Definition Classes
    FloatIsFieldRigSemiring
  70. def prod(as: TraversableOnce[Float]): Float

    Given a sequence of as, sum them using the monoid and return the total.

    Given a sequence of as, sum them using the monoid and return the total.

    Definition Classes
    MultiplicativeMonoid
  71. def prodOption(as: TraversableOnce[Float]): Option[Float]

    Given a sequence of as, sum them using the semigroup and return the total.

    Given a sequence of as, sum them using the semigroup and return the total.

    If the sequence is empty, returns None. Otherwise, returns Some(total).

    Definition Classes
    MultiplicativeSemigroup
  72. def prodn(a: Float, n: Int): Float

    Return a multiplicated with itself n times.

    Return a multiplicated with itself n times.

    Definition Classes
    MultiplicativeGroupMultiplicativeMonoidMultiplicativeSemigroup
  73. def prodnAboveOne(a: Float, n: Int): Float

    Attributes
    protected
    Definition Classes
    MultiplicativeSemigroup
  74. def quot(a: Float, b: Float): Float

    Definition Classes
    FloatIsFieldEuclideanRing
  75. def quotmod(a: Float, b: Float): (Float, Float)

    Definition Classes
    EuclideanRing
  76. def reciprocal(x: Float): Float

    Definition Classes
    MultiplicativeGroup
  77. def reverse: Order[Float]

    Defines an ordering on A where all arrows switch direction.

    Defines an ordering on A where all arrows switch direction.

    Definition Classes
    OrderPartialOrder
  78. def round(a: Float): Float

    Rounds a to the nearest integer.

    Rounds a to the nearest integer.

    Definition Classes
    FloatIsRealIsReal
  79. def sign(a: Float): Sign

    Returns Zero if a is 0, Positive if a is positive, and Negative is a is negative.

    Returns Zero if a is 0, Positive if a is positive, and Negative is a is negative.

    Definition Classes
    Signed
  80. def signum(a: Float): Int

    Returns 0 if a is 0, > 0 if a is positive, and < 0 is a is negative.

    Returns 0 if a is 0, > 0 if a is positive, and < 0 is a is negative.

    Definition Classes
    FloatIsSignedSigned
  81. def sin(a: Float): Float

    Definition Classes
    FloatIsTrigTrig
  82. def sinh(x: Float): Float

    Definition Classes
    FloatIsTrigTrig
  83. def sqrt(a: Float): Float

    Definition Classes
    FloatIsNRootNRoot
  84. def sum(as: TraversableOnce[Float]): Float

    Given a sequence of as, sum them using the monoid and return the total.

    Given a sequence of as, sum them using the monoid and return the total.

    Definition Classes
    AdditiveMonoid
  85. def sumOption(as: TraversableOnce[Float]): Option[Float]

    Given a sequence of as, sum them using the semigroup and return the total.

    Given a sequence of as, sum them using the semigroup and return the total.

    If the sequence is empty, returns None. Otherwise, returns Some(total).

    Definition Classes
    AdditiveSemigroup
  86. def sumn(a: Float, n: Int): Float

    Return a added with itself n times.

    Return a added with itself n times.

    Definition Classes
    AdditiveGroupAdditiveMonoidAdditiveSemigroup
  87. def sumnAboveOne(a: Float, n: Int): Float

    Attributes
    protected
    Definition Classes
    AdditiveSemigroup
  88. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  89. def tan(a: Float): Float

    Definition Classes
    FloatIsTrigTrig
  90. def tanh(x: Float): Float

    Definition Classes
    FloatIsTrigTrig
  91. def times(a: Float, b: Float): Float

    Definition Classes
    FloatIsFieldMultiplicativeSemigroup
  92. def toAlgebraic(a: Float): Algebraic

    Definition Classes
    IsRationalIsAlgebraic
  93. def toDegrees(a: Float): Float

    Definition Classes
    FloatIsTrigTrig
  94. def toDouble(x: Float): Double

    Approximates a as a Double.

    Approximates a as a Double.

    Definition Classes
    FloatIsRealIsReal
  95. def toRadians(a: Float): Float

    Definition Classes
    FloatIsTrigTrig
  96. def toRational(a: Float): Rational

    Definition Classes
    FloatIsRealIsRational
  97. def toReal(a: Float): Real

    Definition Classes
    IsAlgebraicIsReal
  98. def toString(): String

    Definition Classes
    AnyRef → Any
  99. def tryCompare(x: Float, y: Float): Option[Int]

    Result of comparing x with y.

    Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is: - negative iff x < y - zero iff x == y - positive iff x > y

    Definition Classes
    PartialOrder
  100. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  101. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  102. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  103. def zero: Float

    Definition Classes
    FloatIsFieldAdditiveMonoid

Inherited from Serializable

Inherited from Serializable

Inherited from FloatIsReal

Inherited from FloatIsSigned

Inherited from FloatOrder

Inherited from IsRational[Float]

Inherited from IsAlgebraic[Float]

Inherited from IsReal[Float]

Inherited from Signed[Float]

Inherited from Order[Float]

Inherited from PartialOrder[Float]

Inherited from Eq[Float]

Inherited from FloatIsTrig

Inherited from Trig[Float]

Inherited from FloatIsNRoot

Inherited from NRoot[Float]

Inherited from FloatIsField

Inherited from Field[Float]

Inherited from MultiplicativeAbGroup[Float]

Inherited from MultiplicativeGroup[Float]

Inherited from EuclideanRing[Float]

Inherited from CRing[Float]

Inherited from MultiplicativeCMonoid[Float]

Inherited from MultiplicativeCSemigroup[Float]

Inherited from Ring[Float]

Inherited from Rng[Float]

Inherited from AdditiveAbGroup[Float]

Inherited from AdditiveCMonoid[Float]

Inherited from AdditiveCSemigroup[Float]

Inherited from AdditiveGroup[Float]

Inherited from Rig[Float]

Inherited from MultiplicativeMonoid[Float]

Inherited from Semiring[Float]

Inherited from MultiplicativeSemigroup[Float]

Inherited from AdditiveMonoid[Float]

Inherited from AdditiveSemigroup[Float]

Inherited from AnyRef

Inherited from Any

Ungrouped