# Functions Index :: P :: PowSeriesAA

Module:

Definition:

PowSeriesAA(val x, string coefs_array, string powers_array)

Description:

Returns a power series of `x` with coefficients and powers supplied by
(two) respective arrays.

It is provided as a simpler alternative for series with small number of terms to the more generic PowSeries function.

Arguments:

`x`: The value of which the power series will be calculated.

`coefs_array`: The array holding the power series coefficients.

`powers_array`: The array holding the powers of the series.

Notes and conditions on arguments relations:

**1]** `coefs_array` and `powers_array` must have the same number
of elements.

Examples:

# Calculate the power series 0.5*x + 3.23*x^{3} - 2.5*x^{5}
for x = 5.4

coefs = "0.5, 3.23, -2.5"

powers = "1, 3, 5"

f1 = PowSeriesAA(5.4, coefs, powers)

# Calculate the power series 1.3*x^{-0.52} + 0.22*x^{2.34}
- 2.3*x^{12.91}

# for x = 3.3

coefs2 = "1.3, 0.22, -2.3"

powers2 = "-0.52, 2.34, 12.91"

f2 = PowSeriesAA(3.3, coefs2, powers2)