寻找衍生剧本 [英] Looking for derivative script
问题描述
我正在拼命寻找可以计算函数的一阶导数的JavaScript。该函数始终只包含一个变量x。
I am desperately looking for a JavaScript that can calculate the first derivative of a function. The function always includes only one variable, x.
e.g. f(x) = x²
f'(3) = 2x
因此,脚本应该提供结果6,因为 2 * 3 = 6
。
Consequently, the script should deliver the result 6, since 2*3 = 6
.
I希望你知道我的意思。
I hope you know what I mean.
推荐答案
这是一个帮助做这件事的Java库:
Here's a Java library to help do such a thing:
http://jscl-meditor.sourceforge.net/
另一个:
http://www.mathtools.net/Java/Mathematics/index.html
您可以随时使用Rhino和导入在JavaScript中使用的Java类。
You can always use Rhino and import Java classes to use in your JavaScript.
这是JavaScript的一个:
Here's one for JavaScript:
http://code.google.com/p/smath/wiki/smathJavaScriptAPI
这篇关于寻找衍生剧本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!