Interface ComposableSeries<T>


public interface ComposableSeries<T>
Interface for mathematical series that support composition.

Enables functional composition f(g(x)) of series, as well as standard arithmetic operations.

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

    • compose

      Composes this series with another: f(g(x)).
      Parameters:
      inner - the inner series g(x)
      Returns:
      the composed series f(g(x))
    • add

      Adds two series: (f + g)(x) = f(x) + g(x).
      Parameters:
      other - the series to add
      Returns:
      the sum series
    • multiply

      ComposableSeries<T> multiply(ComposableSeries<T> other)
      Multiplies two series: (f * g)(x) = f(x) * g(x).
      Parameters:
      other - the series to multiply
      Returns:
      the product series
    • scale

      ComposableSeries<T> scale(T scalar)
      Scales the series by a constant: (c * f)(x) = c * f(x).
      Parameters:
      scalar - the scaling factor
      Returns:
      the scaled series
    • evaluate

      T evaluate(T x)
      Evaluates the series at a given point.
      Parameters:
      x - the evaluation point
      Returns:
      the series value at x
    • degree

      int degree()
      Returns the degree or order of the series.
      Returns:
      the series degree