using the taylor series function of matlab
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I am trying to write a piece of code that allows me to input the numbers of terms in a taylor series and I know that i must use the "k = input('numbers of terms')" comand, when I use: (here is my code)
k = input('total number of terms in the taylor series:');
syms x;
taylor(exp(x), x, 'ExpansionPoint', k)
is k the number of terms? and if not how do i set the number of terms to be expressed?
thank you in advance.
0 个评论
采纳的回答
Walter Roberson
2012-9-4
taylor(exp(x), x, 'Order', k)
Note that this will expand around x=0 unless you provide an expansion point.
4 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Mathematics and Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!