FunctionAdvisor/series - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Mathematics : FunctionAdvisor : FunctionAdvisor/series

FunctionAdvisor/series

return the series expansion of a given mathematical function

 Calling Sequence FunctionAdvisor(series, math_function)

Parameters

 series - literal name; 'series' math_function - Maple name of mathematical function

Description

 • The FunctionAdvisor(series, math_function) command returns the series expansion of the function when the system can compute it. Otherwise, the command returns NULL.
 • The order of the series expansion in the output is set to four. On the left-hand side there is the corresponding function call to compute the series in Maple to facilitate copy and paste. If you change the order in the calling sequence, it returns the number of terms requested.

Examples

 > $\mathrm{FunctionAdvisor}\left(\mathrm{series},\mathrm{JacobiTheta3}\right)$
 ${\mathrm{series}}{}\left({\mathrm{JacobiTheta3}}{}\left({z}{,}{q}\right){,}{z}{,}{4}\right){=}{\sum }_{{\mathrm{_k1}}{=}{1}}^{{\mathrm{∞}}}\phantom{\rule[-0.0ex]{5.0px}{0.0ex}}{2}{}{{q}}^{{{\mathrm{_k1}}}^{{2}}}{+}\left({\sum }_{{\mathrm{_k1}}{=}{1}}^{{\mathrm{∞}}}\phantom{\rule[-0.0ex]{5.0px}{0.0ex}}\left({-}{4}{}{{q}}^{{{\mathrm{_k1}}}^{{2}}}{}{{\mathrm{_k1}}}^{{2}}\right)\right){}{{z}}^{{2}}{+}{\mathrm{O}}\left({{z}}^{{4}}\right){,}{\mathrm{series}}{}\left({\mathrm{JacobiTheta3}}{}\left({z}{,}{q}\right){,}{q}{,}{4}\right){=}{1}{+}{2}{}{\mathrm{cos}}{}\left({2}{}{z}\right){}{q}{+}{\mathrm{O}}\left({{q}}^{{4}}\right)$ (1)
 > $\mathrm{FunctionAdvisor}\left(\mathrm{series},\mathrm{sin}\right)$
 ${\mathrm{series}}{}\left({\mathrm{sin}}{}\left({z}\right){,}{z}{,}{4}\right){=}{z}{-}\frac{{1}}{{6}}{}{{z}}^{{3}}{+}{\mathrm{O}}\left({{z}}^{{5}}\right)$ (2)

The variables used by the FunctionAdvisor command to create the function calling sequences are local variables. Therefore, the previous example does not depend on z.

 > $\mathrm{depends}\left(,z\right)$
 ${\mathrm{false}}$ (3)

To make the FunctionAdvisor command return results using global variables, pass the function call itself.

 > $\mathrm{FunctionAdvisor}\left(\mathrm{series},\mathrm{sin}\left(z\right)\right)$
 ${\mathrm{series}}{}\left({\mathrm{sin}}{}\left({z}\right){,}{z}{,}{4}\right){=}{z}{-}\frac{{1}}{{6}}{}{{z}}^{{3}}{+}{\mathrm{O}}\left({{z}}^{{5}}\right)$ (4)
 > $\mathrm{depends}\left(,z\right)$
 ${\mathrm{true}}$ (5)

Note that for some functions Maple knows how to compute the series expansion with respect to more than one function parameter. In these cases, a sequence of series expansions is returned.

 > $\mathrm{FunctionAdvisor}\left(\mathrm{series},\mathrm{Β}\right)$
 ${\mathrm{series}}{}\left({\mathrm{Β}}{}\left({x}{,}{y}\right){,}{x}{,}{4}\right){=}{{x}}^{{-}{1}}{-}{\mathrm{Ψ}}{}\left({y}\right){-}{\mathrm{γ}}{+}\left(\frac{{1}}{{12}}{}{{\mathrm{π}}}^{{2}}{+}\frac{{1}}{{2}}{}{{\mathrm{γ}}}^{{2}}{-}\frac{{1}}{{2}}{}{\mathrm{Ψ}}{}\left({1}{,}{y}\right){+}\frac{{1}}{{2}}{}{{\mathrm{Ψ}}{}\left({y}\right)}^{{2}}{+}{\mathrm{Ψ}}{}\left({y}\right){}{\mathrm{γ}}\right){}{x}{+}\left({-}\frac{{1}}{{3}}{}{\mathrm{ζ}}{}\left({3}\right){-}\frac{{1}}{{12}}{}{{\mathrm{π}}}^{{2}}{}{\mathrm{γ}}{-}\frac{{1}}{{6}}{}{{\mathrm{γ}}}^{{3}}{-}\frac{{1}}{{6}}{}{\mathrm{Ψ}}{}\left({2}{,}{y}\right){+}\frac{{1}}{{2}}{}{\mathrm{Ψ}}{}\left({1}{,}{y}\right){}{\mathrm{Ψ}}{}\left({y}\right){-}\frac{{1}}{{6}}{}{{\mathrm{Ψ}}{}\left({y}\right)}^{{3}}{+}\frac{{1}}{{2}}{}{\mathrm{γ}}{}{\mathrm{Ψ}}{}\left({1}{,}{y}\right){-}\frac{{1}}{{2}}{}{\mathrm{γ}}{}{{\mathrm{Ψ}}{}\left({y}\right)}^{{2}}{-}\frac{{1}}{{2}}{}{\mathrm{Ψ}}{}\left({y}\right){}{{\mathrm{γ}}}^{{2}}{-}\frac{{1}}{{12}}{}{\mathrm{Ψ}}{}\left({y}\right){}{{\mathrm{π}}}^{{2}}\right){}{{x}}^{{2}}{+}{\mathrm{O}}\left({{x}}^{{3}}\right)$ (6)

 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam