Function Reference: @sym/taylor - Octave Forge

Method on @sym: taylor (f)

Method on @sym: taylor (f, x)

Method on @sym: taylor (f, x, a)

Method on @sym: taylor (f, [x, y])

Method on @sym: taylor (f, [x, y], [a, b])

Method on @sym: taylor (…, key, value)

Symbolic Taylor series.

If omitted, is chosen with and defaults to zero. xsymvara

Key/value pairs can be used to set the order:

syms x
f = exp(x);
taylor(f, x, 0, 'order', 6)
  ⇒ (sym)
        5    4    3    2
       x    x    x    x
      ─── + ── + ── + ── + x + 1
      120   24   6    2

Two-dimensional expansion:

syms x y
f = exp(x*y);
taylor(f, [x,y] , [0,0], 'order', 7)
  ⇒  (sym)
       3  3    2  2
      x ⋅y    x ⋅y
      ───── + ───── + x⋅y + 1
        6       2

As an alternative to passing , you can also set the expansion point using a key/value notation: a

syms x
f = exp(x);
taylor(f, 'expansionPoint', 1, 'order', 4)
  ⇒ (sym)
               3            2
      ℯ⋅(x - 1)    ℯ⋅(x - 1)
      ────────── + ────────── + ℯ⋅(x - 1) + ℯ
          6            2

See also: @sym/diff.

Package: symbolic

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值