find the leading term of a series expansion
series('leadterm'(expr), eqn, n)
equation (such as x=a) or name (such as x)
(optional) non-negative integer
The series function computes a truncated series expansion of expr, with respect to the variable x, about the point a, up to order n.
If the third argument n is present then it specifies the ``truncation order'' of the series. If n is not present, the ``truncation order'' is determined by the global variable Order. The user may assign any non-negative integer to Order. The default value of Order is 6.
If the first argument to series consists of a function call to leadterm, then only the first (the lowest degree) term of the series of expr is computed.
When series is invoked with leadterm, it is still subject to the constraint of the global variable Order; the series will only be computed up to degree Order. Thus, if series/leadterm is called on an expression whose leading term is of higher degree than Order, an error results. However, Order may be set arbitrarily high when using the leadterm option, without wasted computation, since only the first term is actually computed.
Download Help Document
What kind of issue would you like to report? (Optional)