Series

Series()

A series expansion class.

Supports standard arithmetic operations, such as addition and multiplication.

Examples

>>> x = Expression.symbol('x')
>>> s = Expression.parse("(1-cos(x))/sin(x)").series(x, 0, 4)
>>> print(s)

Methods

Name Description
cos Compute the cosine of the series, returning the result.
exp Compute the exponential of the series, returning the result.
log Compute the natural logarithm of the series, returning the result.
pow Raise the series to the power of num/den, returning the result.
sin Compute the sine of the series, returning the result.
spow Raise the series to the power of exp, returning the result.
to_expression Convert the term stream into an expression. This may exceed the available memory.

cos

Series.cos()

Compute the cosine of the series, returning the result.

exp

Series.exp()

Compute the exponential of the series, returning the result.

log

Series.log()

Compute the natural logarithm of the series, returning the result.

pow

Series.pow(num, den)

Raise the series to the power of num/den, returning the result.

sin

Series.sin()

Compute the sine of the series, returning the result.

spow

Series.spow(exp)

Raise the series to the power of exp, returning the result.

to_expression

Series.to_expression()

Convert the term stream into an expression. This may exceed the available memory.