Packages

c

spire.std

FloatAlgebra

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

Annotations
@SerialVersionUID()
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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FloatAlgebra()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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
  5. def acos(a: Float): Float
    Definition Classes
    FloatIsTrigTrig
  6. def additive: AbGroup[Float]
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def asin(a: Float): Float
    Definition Classes
    FloatIsTrigTrig
  9. def atan(a: Float): Float
    Definition Classes
    FloatIsTrigTrig
  10. def atan2(y: Float, x: Float): Float
    Definition Classes
    FloatIsTrigTrig
  11. 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
  12. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def compare(x: Float, y: Float): Int
    Definition Classes
    FloatOrderOrder
  14. def cos(a: Float): Float
    Definition Classes
    FloatIsTrigTrig
  15. def cosh(x: Float): Float
    Definition Classes
    FloatIsTrigTrig
  16. def div(a: Float, b: Float): Float
    Definition Classes
    FloatIsFieldMultiplicativeGroup
  17. def e: Float
    Definition Classes
    FloatIsTrigTrig
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  20. 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
  21. final def euclid(a: Float, b: Float)(implicit eq: Eq[Float]): Float
    Attributes
    protected[this]
    Definition Classes
    EuclideanRing
    Annotations
    @tailrec()
  22. def exp(a: Float): Float
    Definition Classes
    FloatIsTrigTrig
  23. def expm1(a: Float): Float
    Definition Classes
    FloatIsTrigTrig
  24. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. 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
  26. def fpow(a: Float, b: Float): Float
    Definition Classes
    FloatIsNRootNRoot
  27. 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
  28. 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
  29. final def gcd(a: Float, b: Float): Float
    Definition Classes
    FloatIsFieldEuclideanRing
  30. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  31. def gt(x: Float, y: Float): Boolean
    Definition Classes
    FloatOrderOrderPartialOrder
  32. def gteqv(x: Float, y: Float): Boolean
    Definition Classes
    FloatOrderOrderPartialOrder
  33. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. def isOne(a: Float)(implicit ev: Eq[Float]): Boolean
    Definition Classes
    MultiplicativeMonoid
  36. def isSignNegative(a: Float): Boolean
    Definition Classes
    Signed
  37. def isSignNonNegative(a: Float): Boolean
    Definition Classes
    Signed
  38. def isSignNonPositive(a: Float): Boolean
    Definition Classes
    Signed
  39. def isSignNonZero(a: Float): Boolean
    Definition Classes
    Signed
  40. def isSignPositive(a: Float): Boolean
    Definition Classes
    Signed
  41. def isSignZero(a: Float): Boolean
    Definition Classes
    Signed
  42. def isWhole(a: Float): Boolean

    Returns true iff a is a an integer.

    Returns true iff a is a an integer.

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

    Tests if a is zero.

    Tests if a is zero.

    Definition Classes
    AdditiveMonoid
  44. def lcm(a: Float, b: Float): Float
    Definition Classes
    EuclideanRing
  45. def log(a: Float): Float
    Definition Classes
    FloatIsTrigTrig
  46. def log1p(a: Float): Float
    Definition Classes
    FloatIsTrigTrig
  47. def lt(x: Float, y: Float): Boolean
    Definition Classes
    FloatOrderOrderPartialOrder
  48. def lteqv(x: Float, y: Float): Boolean
    Definition Classes
    FloatOrderOrderPartialOrder
  49. def max(x: Float, y: Float): Float
    Definition Classes
    FloatOrderOrder
  50. def min(x: Float, y: Float): Float
    Definition Classes
    FloatOrderOrder
  51. def minus(a: Float, b: Float): Float
    Definition Classes
    FloatIsFieldAdditiveGroup
  52. def mod(a: Float, b: Float): Float
    Definition Classes
    FloatIsFieldEuclideanRing
  53. def multiplicative: AbGroup[Float]
  54. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  55. def negate(a: Float): Float
    Definition Classes
    FloatIsFieldAdditiveGroup
  56. 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
  57. final def notify(): Unit
    Definition Classes
    AnyRef
  58. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  59. def nroot(a: Float, k: Int): Float
    Definition Classes
    FloatIsNRootNRoot
  60. 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
  61. def one: Float
    Definition Classes
    FloatIsFieldMultiplicativeMonoid
  62. 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
  63. def pi: Float
    Definition Classes
    FloatIsTrigTrig
  64. def plus(a: Float, b: Float): Float
    Definition Classes
    FloatIsFieldAdditiveSemigroup
  65. 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
  66. 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
  67. 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
  68. 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
  69. 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
  70. def prodn(a: Float, n: Int): Float

    Return a multiplicated with itself n times.

    Return a multiplicated with itself n times.

    Definition Classes
    MultiplicativeGroupMultiplicativeMonoidMultiplicativeSemigroup
  71. def prodnAboveOne(a: Float, n: Int): Float
    Attributes
    protected
    Definition Classes
    MultiplicativeSemigroup
  72. def quot(a: Float, b: Float): Float
    Definition Classes
    FloatIsFieldEuclideanRing
  73. def quotmod(a: Float, b: Float): (Float, Float)
    Definition Classes
    EuclideanRing
  74. def reciprocal(x: Float): Float
    Definition Classes
    MultiplicativeGroup
  75. 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
  76. def round(a: Float): Float

    Rounds a to the nearest integer.

    Rounds a to the nearest integer.

    Definition Classes
    FloatIsRealIsReal
  77. 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
  78. 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
  79. def sin(a: Float): Float
    Definition Classes
    FloatIsTrigTrig
  80. def sinh(x: Float): Float
    Definition Classes
    FloatIsTrigTrig
  81. def sqrt(a: Float): Float
    Definition Classes
    FloatIsNRootNRoot
  82. 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
  83. 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
  84. def sumn(a: Float, n: Int): Float

    Return a added with itself n times.

    Return a added with itself n times.

    Definition Classes
    AdditiveGroupAdditiveMonoidAdditiveSemigroup
  85. def sumnAboveOne(a: Float, n: Int): Float
    Attributes
    protected
    Definition Classes
    AdditiveSemigroup
  86. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  87. def tan(a: Float): Float
    Definition Classes
    FloatIsTrigTrig
  88. def tanh(x: Float): Float
    Definition Classes
    FloatIsTrigTrig
  89. def times(a: Float, b: Float): Float
    Definition Classes
    FloatIsFieldMultiplicativeSemigroup
  90. def toAlgebraic(a: Float): Algebraic
    Definition Classes
    IsRationalIsAlgebraic
  91. def toDegrees(a: Float): Float
    Definition Classes
    FloatIsTrigTrig
  92. def toDouble(x: Float): Double

    Approximates a as a Double.

    Approximates a as a Double.

    Definition Classes
    FloatIsRealIsReal
  93. def toRadians(a: Float): Float
    Definition Classes
    FloatIsTrigTrig
  94. def toRational(a: Float): Rational
    Definition Classes
    FloatIsRealIsRational
  95. def toReal(a: Float): Real
    Definition Classes
    IsAlgebraicIsReal
  96. def toString(): String
    Definition Classes
    AnyRef → Any
  97. 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
  98. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  99. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  100. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  101. 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