spire.math

Algebraic

object Algebraic extends AlgebraicInstances with Serializable

Linear Supertypes
Serializable, Serializable, AlgebraicInstances, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Algebraic
  2. Serializable
  3. Serializable
  4. AlgebraicInstances
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. final class BitBound extends AnyVal

    A bit bound represents either an upper or lower bound as some power of 2.

  2. sealed abstract class Expr extends Serializable

    The Algebraic expression AST.

  3. sealed abstract class ZeroBoundFunction extends AnyRef

    A zero bound function, defined over an algebraic expression algebra.

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. implicit final val AlgebraicAlgebra: AlgebraicAlgebra

    Definition Classes
    AlgebraicInstances
  7. implicit final val AlgebraicTag: LargeTag[Algebraic]

    Definition Classes
    AlgebraicInstances
  8. object BFMSS extends ZeroBoundFunction with Product with Serializable

    An implementation of "A Separation Bound for Real Algebraic Expressions", by Burnikel, Funke, Mehlhorn, Schirra, and Schmitt.

  9. object BitBound

  10. object Expr extends Serializable

  11. object LiYap extends ZeroBoundFunction with Product with Serializable

    An implementation of "A New Constructive Root Bound for Algebraic Expressions" by Chen Li & Chee Yap.

  12. val One: Algebraic

    Returns an Algebraic expression equal to 1.

  13. val Zero: Algebraic

    Returns an Algebraic expression equal to 0.

  14. def apply(n: String): Algebraic

    Returns an Algebraic expression equivalent to BigDecimal(n).

    Returns an Algebraic expression equivalent to BigDecimal(n). If n is not parseable as a BigDecimal then an exception is thrown.

  15. def apply(n: Rational): Algebraic

    Returns an Algebraic expression equivalent to n.

  16. def apply(n: BigDecimal): Algebraic

    Returns an Algebraic expression equivalent to n.

  17. def apply(n: BigInt): Algebraic

    Returns an Algebraic expression equivalent to n.

  18. implicit def apply(n: Double): Algebraic

    Returns an Algebraic expression equivalent to n, if n is finite.

    Returns an Algebraic expression equivalent to n, if n is finite. If n is either infinite or NaN, then an IllegalArgumentException is thrown.

  19. def apply(n: Float): Algebraic

    Returns an Algebraic expression equivalent to n, if n is finite.

    Returns an Algebraic expression equivalent to n, if n is finite. If n is either infinite or NaN, then an IllegalArgumentException is thrown.

  20. def apply(n: Long): Algebraic

    Returns an Algebraic expression equivalent to n.

  21. implicit def apply(n: Int): Algebraic

    Returns an Algebraic expression equivalent to n.

  22. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  23. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  26. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  28. def hashCode(): Int

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

    Definition Classes
    Any
  30. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  31. final def notify(): Unit

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

    Definition Classes
    AnyRef
  33. final def nroot(value: BigDecimal, n: Int, scale: Int, roundingMode: RoundingMode): BigDecimal

    Returns an absolute approximation of the n-th root of value, up to scale digits past the decimal point.

    Returns an absolute approximation of the n-th root of value, up to scale digits past the decimal point. This only uses the rounding mode to chop-off the few remaining digits after the approximation, so may be inaccurate.

  34. final def nroot(value: BigDecimal, n: Int, mc: MathContext): BigDecimal

    Returns a relative approximation of the n-th root of value, up to the number of digits specified by mc.

    Returns a relative approximation of the n-th root of value, up to the number of digits specified by mc. This only uses the rounding mode to chop-off the few remaining digits after the approximation, so may be inaccurate.

  35. final def nrootApprox(x: BigDecimal, n: Int): BigDecimal

    Returns a number that is approximately equal to x.pow(1/n).

    Returns a number that is approximately equal to x.pow(1/n). This number is useful as initial values in converging n-root algorithms, but not as a general purpose n-root algorithm. There are no guarantees about the accuracy here.

  36. def root(poly: Polynomial[Rational], i: Int): Algebraic

    Returns an Algebraic expression whose value is equivalent to the i-th real root of the Polynomial poly.

    Returns an Algebraic expression whose value is equivalent to the i-th real root of the Polynomial poly. If i is negative or does not an index a real root (eg the value is greater than or equal to the number of real roots) then an ArithmeticException is thrown. Roots are indexed starting at 0. So if there are 3 roots, then they are indexed as 0, 1, and 2.

    poly

    the polynomial containing at least i real roots

    i

    the index (0-based) of the root

    returns

    an algebraic whose value is the i-th root of the polynomial

  37. def roots(poly: Polynomial[Rational]): Vector[Algebraic]

    Returns all of the real roots of the given polynomial, in order from smallest to largest.

    Returns all of the real roots of the given polynomial, in order from smallest to largest.

    poly

    the polynomial to return the real roots of

    returns

    all the real roots of poly

  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. def toString(): String

    Definition Classes
    AnyRef → Any
  40. def unsafeRoot(poly: Polynomial[BigInt], i: Int, lb: Rational, ub: Rational): Algebraic

    Returns an Algebraic whose value is the real root within (lb, ub).

    Returns an Algebraic whose value is the real root within (lb, ub). This is potentially unsafe, as we assume that exactly 1 real root lies within the interval, otherwise the results are undetermined.

    poly

    a polynomial with a real root within (lb, ub)

    i

    the index of the root in the polynomial

    lb

    the lower bound of the open interval containing the root

    ub

    the upper bound of the open interval containing the root

  41. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AlgebraicInstances

Inherited from AnyRef

Inherited from Any

Ungrouped