com.klg.jclass.util.formulae
Class Root
java.lang.Object
|
+--com.klg.jclass.util.formulae.Operation
|
+--com.klg.jclass.util.formulae.Root
- All Implemented Interfaces:
- Cloneable, Expression
- public class Root
- extends Operation
This is a concrete implementation for square roots
This is a unary operator, *???but can also work on lists???*.
Constructor Summary |
Root(com.klg.jclass.util.formulae.Expression operand)
Define a square root on the given Expression |
Root(Number operand)
Define a square root on the given Number |
Method Summary |
com.klg.jclass.util.formulae.Result |
evaluate()
Return the square root of the given value |
Methods inherited from class com.klg.jclass.util.formulae.Operation |
clone |
Root
public Root(com.klg.jclass.util.formulae.Expression operand)
- Define a square root on the given Expression
Root
public Root(Number operand)
- Define a square root on the given Number
evaluate
public com.klg.jclass.util.formulae.Result evaluate()
- Return the square root of the given value
- Specified by:
evaluate
in interface Expression
- Specified by:
evaluate
in class Operation
- Returns:
- The square root of the given operand