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) * x
>>> 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.
get_absolute_order Get the absolute order.
get_ramification Get the ramification.
get_relative_order Get the relative order.
get_trailing_exponent Get the trailing exponent; the exponent of the first non-zero term.
log Compute the natural logarithm of the series, returning the result.
pow Raise the series to the power of num/den, returning the result.
shift Shift the series by e units of the ramification.
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 series to an expression

cos

Series.cos()

Compute the cosine of the series, returning the result.

exp

Series.exp()

Compute the exponential of the series, returning the result.

get_absolute_order

Series.get_absolute_order()

Get the absolute order.

get_ramification

Series.get_ramification()

Get the ramification.

get_relative_order

Series.get_relative_order()

Get the relative order.

get_trailing_exponent

Series.get_trailing_exponent()

Get the trailing exponent; the exponent of the first non-zero term.

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.

shift

Series.shift(e)

Shift the series by e units of the ramification.

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 series to an expression