An example with a pole:
Expansions at infinity:
In the following example, the requested order is 6, but only the first 5 terms are returned, due to cancellation:
Now, use the exact_order option:
An expansion with the variable tending to 0 from the right:
The variable tends to its limit on a ray coming from the origin:
A simple change of variables reverses the direction:
The coefficients can be bounded functions of the variable:
Non-rational exponents are allowed:
Manipulations with the form of the output. The first computation calculates the scale:
Then if we want the answer in a different form:
or