Interface MultivariateRealFunction

All Superinterfaces:
Function<Vector<Real>, Real>, Function<Vector<Real>, Real>, Relation<Vector<Real>, Real>

public interface MultivariateRealFunction extends Function<Vector<Real>, Real>
Represents a real-valued function of multiple real variables (R^n -> R).

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Details

    • evaluate

      Real evaluate(Vector<Real> point)
      Evaluates this function at the given point.
      Specified by:
      evaluate in interface Function<Vector<Real>, Real>
      Parameters:
      point - the input vector (x1, x2, ..., xn)
      Returns:
      the function value f(x)
    • gradient

      default Vector<Real> gradient(Vector<Real> point)
      Computes the gradient of the function at the given point.

      The gradient is the vector of partial derivatives: ∇f = (∂f/∂x1, ∂f/∂x2, ..., ∂f/∂xn)

      Parameters:
      point - the point at which to compute the gradient
      Returns:
      the gradient vector
    • partialDerivative

      default Real partialDerivative(Vector<Real> point, int variableIndex)
      Computes the partial derivative with respect to the i-th variable at the given point.
      Parameters:
      point - the point at which to compute the derivative
      variableIndex - the index of the variable (0-based)
      Returns:
      the partial derivative ∂f/∂xi
    • getDomain

      default String getDomain()
      Description copied from interface: Relation
      Returns the domain description.
      Specified by:
      getDomain in interface Relation<Vector<Real>, Real>
      Returns:
      domain name (e.g., "ℝ", "ℕ", "ℂ")
    • getCodomain

      default String getCodomain()
      Description copied from interface: Relation
      Returns the codomain description.
      Specified by:
      getCodomain in interface Relation<Vector<Real>, Real>
      Returns:
      codomain name