Decomposition of a function from two variables into a Taylor series

Tell me, please, how in Matlab to decompose a function into a Taylor series of two variables?

 0
Author: skablet, 2019-11-24

1 answers

That's it (the Symbolic Math Toolbox package should be installed):

syms x y                      % x и y - объекты класса sym 
f = sin(x*y);                 % функция, которую раскладываем
taylor(f,[x y],'Order',15)    % до 15 порядка
 1
Author: AVK, 2019-11-26 07:16:06