org.statcato.calculator
Class MathFunction
- java.lang.Object
-
- org.statcato.calculator.MathFunction
-
public class MathFunction extends java.lang.ObjectA mathematical function object defined by a type.- Since:
- 1.0
- See Also:
MathFunctions
-
-
Constructor Summary
Constructors Constructor and Description MathFunction(int type, boolean isRadian)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description CompUnitcall(CompUnit c)Performs a function call on the given computation unit.doublecall1(double argument)Performs a function call on the given double value.
-
-
-
Method Detail
-
call
public CompUnit call(CompUnit c)
Performs a function call on the given computation unit.- Parameters:
c- computational unit- Returns:
- the result of calling the function on the argument
-
call1
public double call1(double argument)
Performs a function call on the given double value.- Parameters:
argument- double value- Returns:
- the result of calling the function on the given double value
-
-
DMelt 3.0 © DataMelt by jWork.ORG