寻找衍生剧本 [英] Looking for derivative script

查看:85
本文介绍了寻找衍生剧本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在拼命寻找可以计算函数的一阶导数的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆