Class SqrtFunction

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

public class SqrtFunction extends Object implements Function
The square root function.
See Also:
  • Constructor Details

    • SqrtFunction

      public SqrtFunction()
  • Method Details

    • of

      public double of(double[] d, int numParam)
      Returns the square root of the value at index location 0.
      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