Interface FX


  • public interface FX
    Represents a function f(x).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static FX ONE
      The function f(x) = 1
      static FX X
      The function f(x) = x
      static FX XX
      The function f(x) = x 2
      static FX XXX
      The function f(x) = x 3
      static FX XXXX
      The function f(x) = x 4
    • Field Detail

      • XXXX

        static final FX XXXX
        The function f(x) = x 4
      • XXX

        static final FX XXX
        The function f(x) = x 3
      • XX

        static final FX XX
        The function f(x) = x 2
      • X

        static final FX X
        The function f(x) = x
      • ONE

        static final FX ONE
        The function f(x) = 1
    • Method Detail

      • f

        double f​(double x)
        The function y = f(x)
        Parameters:
        x - the x parameter
        Returns:
        y
      • getCCodeExpr

        String getCCodeExpr()
        Returns the function as C code expression, e.g. "pow(x, 3) * y"
        Returns:
        the C code