Package org.apache.commons.math
Interface FieldElement<T>
- Type Parameters:
T
- the type of the field elements
public interface FieldElement<T>
Interface representing field elements.
- Since:
- 2.0
- See Also:
-
Method Summary
-
Method Details
-
add
Compute this + a.- Parameters:
a
- element to add- Returns:
- a new element representing this + a
-
subtract
Compute this - a.- Parameters:
a
- element to subtract- Returns:
- a new element representing this - a
-
multiply
Compute this × a.- Parameters:
a
- element to multiply- Returns:
- a new element representing this × a
-
divide
Compute this ÷ a.- Parameters:
a
- element to add- Returns:
- a new element representing this ÷ a
- Throws:
ArithmeticException
- if a is the zero of the additive operation (i.e. additive identity)
-
getField
Get theField
to which the instance belongs.- Returns:
Field
to which the instance belongs
-