java.lang.Object
edu.jas.root.Interval<C>
- Type Parameters:
C- coefficient type.
- All Implemented Interfaces:
Serializable
Interval. For example isolating interval for real roots.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTest if an element is contained in this interval.booleanTest if an interval is contained in this interval.copy()Copy this.booleanComparison with any other object.inthashCode()Hash code for this Interval.length()Length.middle()Middle point.Multiply intervals.Random point of interval.BigRational Length.Rational middle point.Subtract intervals.Sum of intervals.BigDecimal representation of Interval.toScript()Get a scripting compatible string representation.toString()String representation of Interval.
-
Field Details
-
left
-
right
-
-
Constructor Details
-
Interval
-
Interval
-
-
Method Details
-
toString
-
toScript
Get a scripting compatible string representation.- Returns:
- script compatible representation for this Interval.
-
copy
-
equals
-
hashCode
-
contains
Test if an element is contained in this interval.- Parameters:
c- element to test.- Returns:
- true, if left ≤ b ≤ right;
-
contains
-
length
-
rationalLength
-
toDecimal
BigDecimal representation of Interval. -
rationalMiddle
-
middle
-
randomPoint
Random point of interval.- Returns:
- a random point contained in this interval.
-
sum
-
subtract
-
multiply
-