Class DoubleMath
- java.lang.Object
-
- org.tensorics.core.fields.doubles.DoubleMath
-
- All Implemented Interfaces:
Math<java.lang.Double>
public class DoubleMath extends java.lang.Object implements Math<java.lang.Double>
Provides mathematical operations on doubles. This is of course the most trivial implementation of theMath
interface, since it simply delegates to theMath
class. However, this is necessary to keep the the tensorics language generic for any scalar values.
-
-
Constructor Summary
Constructors Constructor Description DoubleMath()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Double
pow(java.lang.Double base, java.lang.Double exponent)
Has to return the first argument raised to the power of the second argument.java.lang.Double
root(java.lang.Double base, java.lang.Double exponent)
-
-
-
Method Detail
-
pow
public java.lang.Double pow(java.lang.Double base, java.lang.Double exponent)
Description copied from interface:Math
Has to return the first argument raised to the power of the second argument. This has to work for positive and negative exponents.
-
-