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 Summary
Modifier and TypeMethodDescriptionadd(ComposableSeries<T> other) Adds two series: (f + g)(x) = f(x) + g(x).compose(ComposableSeries<T> inner) Composes this series with another: f(g(x)).intdegree()Returns the degree or order of the series.Evaluates the series at a given point.multiply(ComposableSeries<T> other) Multiplies two series: (f * g)(x) = f(x) * g(x).Scales the series by a constant: (c * f)(x) = c * f(x).
-
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
Multiplies two series: (f * g)(x) = f(x) * g(x).- Parameters:
other- the series to multiply- Returns:
- the product series
-
scale
Scales the series by a constant: (c * f)(x) = c * f(x).- Parameters:
scalar- the scaling factor- Returns:
- the scaled series
-
evaluate
-
degree
int degree()Returns the degree or order of the series.- Returns:
- the series degree
-