how do you use the built taylor function, can some one give an example
1 次查看(过去 30 天)
显示 更早的评论
how do you use the built taylor function, can some one give an example
0 个评论
采纳的回答
James Tursa
2012-7-23
编辑:James Tursa
2012-7-23
From the documentation:
syms x
taylor(exp(x))
taylor(sin(x))
taylor(cos(x))
ans =
x^5/120 + x^4/24 + x^3/6 + x^2/2 + x + 1
ans =
x^5/120 - x^3/6 + x
ans =
x^4/24 - x^2/2 + 1
Note that this requires the symbolic math toolbox.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!