惰性函数
一般惰性函数无法直接计算结果,请问大家惰性函数一般是指什么函数,有其定义吗? 一般是指大写字母开头的函数,比如Diff、Int。惰性函数设置的目的本来就是为了不直接计算结果,主要是为了表达方便,比如有些算式如果求解出来会很长,在以后的运算中总带着这样长的算式不方便,这时可以用这些函数,在需要求解时再求解。 版主说的有理,不过可能有误导
实际上可以使用 value 函数来得到含有惰性函数的计算结果,
举例如下
Diff(sin(x), x$n);
value(Diff(sin(x),`$`(x,n)));
Note that in the context of a call to diff (or Diff), n entering diff(f(x),[`$`(x,n)]) is understood to be an integer; that is: diff computes integer order derivatives. To compute fractional derivatives see fracdiff
值得注意的是
diff 默认 n 为整数
分数阶导数, 使用 fracdiff 哪有可能误导了?lz 又没问惰性函数如何求值,我也没说不能用value求值。真受不了你这种贬低别人、抬高自己的人。
版主说的有理,不过可能有误导
实际上可以使用 value 函数来得到含有惰性函数的计算结果,
举例如下
Diff(sin(x), x$n);
value(Diff(sin(x),`$`(x,n)));
Note that in the context of a call to diff (or Diff) ...
alljoyland 发表于 2010-1-15 09:32 http://forum.simwe.com/images/common/back.gif
页:
[1]