maxima - 将泰勒展开式分配给函数

标签 maxima taylor-series

当我使用 千里马 计算泰勒级数:

f(x,y) := taylor((x+y)^3, [x, y], [2, 3], 2);
f(2,3);  /* error: wrong number of arguments */

基本上我想定义一个函数作为 (x+y)^3 的扩展, 接收 x,y作为参数。我怎样才能做到这一点?

最佳答案

尝试

(%i1) f(x,y) := ''(ratdisrep(taylor(('x+'y)^3, ['x, 'y], [2, 3], 2))) $

(%i2) f(2, 3);
(%o2)                                 125

或者
(%i1) define(f(x, y), ratdisrep(taylor(('x+'y)^3, ['x, 'y], [2, 3], 2)))$

(%i2) f(2, 3);
(%o2)                                 125

关于maxima - 将泰勒展开式分配给函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23294656/

相关文章:

node.js - 获取文件的新内容

maxima - Maxima 中 Maple "unapply"或 Mathematica "Function"的模拟

compare - 如何将两个表达式与最大值进行比较?

c - 定点运算中的单精度

c - 泰勒定理 C

python - x 上的对数

python - 通过使用python中的log(1 + e ^ x)的taylor级数展开1个暗淡矢量

c - 用 C 语言的泰勒级数逼近 Sine(x) 并遇到很多问题

maxima - 如何使用Maxima找到函数的最大值和最小值?

arguments - (wx)最大: how to get consistent expressions using `args` ?