Maxima:用定义替换函数 f(x)?

标签 maxima

抱歉,我找不到任何相关信息。

如果我有带符号函数 f(x) 的表达式,现在我想用它的显式形式替换这些表达式 f(x) 怎么办?

例如:

我有

f(x):= x^2+sin(x)

并在分化

diff (%e**sqrt(f(x)*a), x,2);

我想用上面的表达式替换 f(x) 吗?

谢谢

卡尔

最佳答案

(%i1) i: integrate(f(x)*f(4*x), x, 0, 1) $

(%i2) f(x):= x^2+sin(x) $

(%i3) ev(i, f);
                     1
                    /
                    [             2                  2
(%o3)               I  (sin(x) + x ) (sin(4 x) + 16 x ) dx
                    ]
                    /
                     0
 -- Function: ev (<expr>, <arg_1>, ..., <arg_n>)

     Evaluates the expression <expr> in the environment specified by the
     arguments <arg_1>, ..., <arg_n>.  The arguments are switches
     (Boolean flags), assignments, equations, and functions.  'ev'
     returns the result (another expression) of the evaluation.

关于Maxima:用定义替换函数 f(x)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61251819/

相关文章:

maxima - 自定义简化(规则和模式)

plot - 为什么 Maxima 在尝试绘制参数图时在 plot2d 上给我一个错误?

通过算法获得正弦波的幅度和相位?

maxima - 将函数应用于 Maxima 中的命名参数列表

python - 使用 find_peaks 查找局部最大值

Maxima - "expt"是什么?

Maxima 中的函数(泛函)函数

replace - 千里马:如何用符号代替普通子表达式

for-loop - 在 Maxima 中,我该如何解这个方程?

list - Maxima:生成下标为 "multi-dimensional"的名词列表