Interface FX


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

    Fields
    Modifier and Type
    Field
    Description
    static final FX
    The function f(x) = 1
    static final FX
    The function f(x) = x
    static final FX
    The function f(x) = x 2
    static final FX
    The function f(x) = x 3
    static final FX
    The function f(x) = x 4
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    f(double x)
    The function y = f(x)
    Returns the function as C code expression, e.g.
  • Field Details

    • 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 Details

    • 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