Package tech.units.indriya.function
Class Calculus
- java.lang.Object
-
- tech.units.indriya.function.Calculus
-
-
Field Summary
Fields Modifier and Type Field Description static MathContextDEFAULT_MATH_CONTEXTThe default MathContext used for BigDecimal calculus.static MathContextMATH_CONTEXTExposes (non-final) the MathContext used for BigDecimal calculus.
-
Constructor Summary
Constructors Constructor Description Calculus()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NumberSystemcurrentNumberSystem()Returns the currentNumberSystemused for Number arithmetic.static List<NumberSystem>getAvailableNumberSystems()All availableNumberSystemsused for Number arithmetic.static Map<Class<? extends AbstractConverter>,Integer>getNormalFormOrder()static NumberSystemgetNumberSystem(String name)Returns the givenNumberSystemused for Number arithmetic by (class) name.static voidsetCurrentNumberSystem(NumberSystem system)Sets the current number system
-
-
-
Field Detail
-
DEFAULT_MATH_CONTEXT
public static final MathContext DEFAULT_MATH_CONTEXT
The default MathContext used for BigDecimal calculus.
-
MATH_CONTEXT
public static MathContext MATH_CONTEXT
Exposes (non-final) the MathContext used for BigDecimal calculus.
-
-
Constructor Detail
-
Calculus
public Calculus()
-
-
Method Detail
-
getAvailableNumberSystems
public static List<NumberSystem> getAvailableNumberSystems()
All availableNumberSystemsused for Number arithmetic.
-
currentNumberSystem
public static NumberSystem currentNumberSystem()
Returns the currentNumberSystemused for Number arithmetic.
-
setCurrentNumberSystem
public static void setCurrentNumberSystem(NumberSystem system)
Sets the current number system- Parameters:
system- the new current number system.- See Also:
currentNumberSystem()
-
getNumberSystem
public static NumberSystem getNumberSystem(String name)
Returns the givenNumberSystemused for Number arithmetic by (class) name.
-
getNormalFormOrder
public static Map<Class<? extends AbstractConverter>,Integer> getNormalFormOrder()
-
-