MATLAB应用技巧.docVIP

  • 1
  • 0
  • 约3.05千字
  • 约 4页
  • 2017-05-21 发布于河南
  • 举报
MATLAB应用技巧

Taylor Series in MATLAB The statements syms x f = 1/(5+4*cos(x)) T = taylor(f,8) return T =1/9+2/81*x^2+5/1458*x^4+49/131220*x^6 which is all the terms up to, but not including, order eight in the Taylor series for f(x): Technically, T is a Maclaurin series, since its basepoint is a = 0. The command pretty(T) prints T in a format resembling typeset mathematics: 2 4 49 6 1/9 + 2/81 x + 5/1458 x + ------ x 131220 These commands syms x g = exp(x*sin(x)) t = taylor(g,12,2); generate the first 12 nonzero terms of the Taylor series for g about x = 2. Next, plot these functions t

文档评论(0)

1亿VIP精品文档

相关文档