java.lang.Object
studio.magemonkey.fabled.data.formula.func.Square
All Implemented Interfaces:
IValue

public class Square extends Object implements IValue
Squares a number
  • Constructor Details

    • Square

      public Square(IValue formula)
      Parameters:
      formula - wrapped formula
  • Method Details

    • compute

      public double compute(double... input)
      Gets the value using the inputs
      Specified by:
      compute in interface IValue
      Parameters:
      input - the input data
      Returns:
      result value