Class FactFunction

java.lang.Object
com.graphbuilder.math.func.FactFunction
All Implemented Interfaces:
Function

public class FactFunction extends Object implements Function
The factorial function.
  • Constructor Details

    • FactFunction

      public FactFunction()
  • Method Details

    • of

      public double of(double[] d, int numParam)
      Takes the (int) of the value at index location 0 and computes the factorial of that number.
      Specified by:
      of in interface Function
    • acceptNumParam

      public boolean acceptNumParam(int numParam)
      Returns true only for 1 parameter, false otherwise.
      Specified by:
      acceptNumParam in interface Function
    • toString

      public String toString()
      Overrides:
      toString in class Object