Class TestFunction

  • All Implemented Interfaces:
    FunctionIfc

    public class TestFunction
    extends java.lang.Object
    implements FunctionIfc
    • Constructor Summary

      Constructors 
      Constructor Description
      TestFunction()
      Creates a new instance of TestFunction
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double fx​(double x)
      Returns the value of the function for the specified variable value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestFunction

        public TestFunction()
        Creates a new instance of TestFunction
    • Method Detail

      • fx

        public double fx​(double x)
        Returns the value of the function for the specified variable value.
        Specified by:
        fx in interface FunctionIfc
        Parameters:
        x - the input value
        Returns:
        the function value