Class PiFunction

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

public class PiFunction extends Object implements Function
The constant Pi.
See Also:
  • Constructor Details

    • PiFunction

      public PiFunction()
  • Method Details

    • of

      public double of(double[] d, int numParam)
      Returns the constant Pi regardless of the input.
      Specified by:
      of in interface Function
    • acceptNumParam

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

      public String toString()
      Overrides:
      toString in class Object