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. |
| format | Convert the series into a human-readable string. |
| 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 |
| to_latex | Convert the series into a LaTeX string. |
cos
Series.cos()Compute the cosine of the series, returning the result.
exp
Series.exp()Compute the exponential of the series, returning the result.
format
Series.format(
terms_on_new_line=False,
color_top_level_sum=True,
color_builtin_symbols=True,
print_finite_field=True,
symmetric_representation_for_finite_field=False,
explicit_rational_polynomial=False,
number_thousands_separator=None,
multiplication_operator='*',
double_star_for_exponentiation=False,
square_brackets_for_function=False,
num_exp_as_superscript=True,
latex=False,
precision=None,
show_namespaces=False,
max_terms=None,
)Convert the series into a human-readable string.
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
to_latex
Series.to_latex()Convert the series into a LaTeX string.