Package org.apache.commons.numbers.field
Class BigFractionField
java.lang.Object
org.apache.commons.numbers.field.AbstractField<BigFraction>
org.apache.commons.numbers.field.BigFractionField
- All Implemented Interfaces:
Field<BigFraction>
BigFraction
field.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BigFractionField
get()
Get the field instance.one()
Return the value of one.zero()
Return the value of zero.Methods inherited from class org.apache.commons.numbers.field.AbstractField
add, divide, multiply, multiply, negate, reciprocal, subtract
-
Field Details
-
INSTANCE
Singleton.
-
-
Constructor Details
-
BigFractionField
private BigFractionField()Singleton.
-
-
Method Details
-
get
Get the field instance.- Returns:
- the field instance.
-
one
Return the value of one.- Returns:
- the field element
1
such that for alla
,1 * a == a
.
-
zero
Return the value of zero.- Returns:
- the field element
0
such that for alla
,0 + a == a
.
-