case class FinitePowerSeries[X, Y](coefficients: Seq[Y])(f: X=>Y)(using evidence$1: Numeric[X], evidence$2: Numeric[Y]) extends PowerSeries[X, Y]
Represents a finite power series, a mathematical series with a finite number of terms, where each term is a power of a variable multiplied by a coefficient.
Type parameters
X
the type of the variable used in the series
Y
the type of the coefficients and the resulting terms of the series
Value parameters
coefficients
the coefficients of the power series, corresponding to each term
f
a function applied to the powers of the variable, which modifies each term in the series
Computes a finite power series by combining the coefficients with the corresponding powers of the input value and applies a transformation function to each term.
Computes a finite power series by combining the coefficients with the corresponding powers of the input value and applies a transformation function to each term.
Value parameters
x
the input value used to compute the powers in the series
Attributes
Returns
a Series[Y] representing the resulting finite power series