Class Series<T extends Ring<T>>
java.lang.Object
org.episteme.core.mathematics.symbolic.Series<T>
Represents a power series Σ aâ‚™xâ¿.
A power series is an infinite series of the form: f(x) = aâ‚€ + aâ‚Âx + aâ‚‚x² + a₃x³ + ...
This implementation supports: - Truncated series (finite number of terms) - Taylor and Maclaurin expansions - Series arithmetic (addition, multiplication) - Evaluation at a point
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds two series.cos(int order) Creates a Taylor series for cos(x) = 1 - x²/2!Returns the derivative of this series.Evaluates the series at a given point.exp(int order) Creates a Taylor series for exp(x) = 1 + x + x²/2!Returns the expansion center.getCoefficient(int n) Returns the coefficient of xâ¿.Returns the radius of convergence.integral()Returns the integral of this series (with constant of integration = 0).Creates a Maclaurin series (expansion around xâ‚€ = 0).Multiplies two series (Cauchy product).intorder()Returns the number of terms in this series.sin(int order) Creates a Taylor series for sin(x) = x - x³/3!taylor(DifferentiableFunction<Real, Real> f, Real a, int order) Creates a Taylor series for a differentiable function around a point a. f(x) = f(a) + f'(a)(x-a) + f''(a)(x-a)²/2!toString()
-
Constructor Details
-
Series
-
Series
Creates a power series with given coefficients and convergence radius.- Parameters:
coefficients- the series coefficients [aâ‚€, aâ‚Â, aâ‚‚, ...]center- the expansion center (xâ‚€)ring- the ring structureconvergenceRadius- the radius of convergence
-
-
Method Details
-
maclaurin
-
exp
-
sin
-
cos
-
taylor
Creates a Taylor series for a differentiable function around a point a. f(x) = f(a) + f'(a)(x-a) + f''(a)(x-a)²/2! + ...- Parameters:
f- the function to expanda- the expansion pointorder- the number of terms- Returns:
- the Taylor series
-
add
-
multiply
-
evaluate
-
derivative
-
integral
-
order
public int order()Returns the number of terms in this series.- Returns:
- the number of terms
-
getCoefficient
Returns the coefficient of xâ¿.- Parameters:
n- the power- Returns:
- the coefficient
-
getCenter
-
getConvergenceRadius
Returns the radius of convergence.- Returns:
- the convergence radius
-
toString
-