Specify Direction of Expansion
Find the Puiseux series approximations using
the Direction argument. This argument lets you
change the convergence area, which is the area where series tries
to find converging Puiseux series expansion approximating the original
expression.
Find the Puiseux series approximation of this expression. By
default, series finds the approximation that
is valid in a small open circle in the complex plane around the expansion
point.
syms x
series(sin(sqrt(-x)), x)
ans =
(-x)^(1/2) - (-x)^(3/2)/6 + (-x)^(5/2)/120
Find the Puiseux series approximation of the same expression
that is valid in a small interval to the left of the expansion point.
Then, find an approximation that is valid in a small interval to the
right of the expansion point.
syms x
series(sin(sqrt(-x)), x)
series(sin(sqrt(-x)), x, 'Direction', 'left')
series(sin(sqrt(-x)), x, 'Direction', 'right')
ans =
(-x)^(1/2) - (-x)^(3/2)/6 + (-x)^(5/2)/120
ans =
- x^(1/2)*1i - (x^(3/2)*1i)/6 - (x^(5/2)*1i)/120
ans =
x^(1/2)*1i + (x^(3/2)*1i)/6 + (x^(5/2)*1i)/120
Try computing the Puiseux series approximation of this expression.
By default, series tries to find an approximation
that is valid in the complex plane around the expansion point. For
this expression, such approximation does not exist.
series(real(sin(x)), x)
Error using sym/series>scalarSeries (line 90)
Unable to compute series expansion.
However, the approximation exists along the real axis, to both
sides of x = 0.
series(real(sin(x)), x, 'Direction', 'realAxis')
ans =
x^5/120 - x^3/6 + x