MATLAB: Does the TAYLOR function within the Symbolic Math Toolbox return incorrect results for sixth (or higher) order polynomials

maplesymbolicSymbolic Math Toolboxtaylor

For example:
syms x;
taylor(x^6, 7)
ans =
0
The expected answer should be:
ans =
x^6

Best Answer

This has been verified as a bug in the Maple kernel accessed by the Symbolic Math Toolbox in the way that the TAYLOR function generates taylor expansions.
As a workaround, you can use the Extended Symbolic Math Toolbox:
maple('Order:=10;')
taylor(x^6, 7)
which produces the expected result:
x^6