com.sssw.rt.expr
Class AgFactorial
java.lang.Object
|
+--com.sssw.rt.expr.AgFactorial
- public class AgFactorial
- extends Object
A runtime helper class that provides a factorial function.
Method Summary |
static double |
evaluate(double d1)
Calculates the factorial of the specified value. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
AgFactorial
public AgFactorial()
evaluate
public static double evaluate(double d1)
throws Exception
- Calculates the factorial of the specified value.
- Parameters:
d1
- the value for which the factorial is calculated.- Example:
double result = AgFactorial.evaluate(5.0);