Tuesday, June 4, 2024
 Popular · Latest · Hot · Upcoming
19
rated 0 times [  20] [ 1]  / answers: 1 / hits: 15350  / 13 Years ago, sun, june 19, 2011, 12:00:00

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



Consequently, the script should deliver the result 6, since 2*3 = 6.



I hope you know what I mean.


More From » math

 Answers
49

Here's a Java library to help do such a thing:



http://jscl-meditor.sourceforge.net/



And another:



http://www.mathtools.net/Java/Mathematics/index.html



You can always use Rhino and import Java classes to use in your JavaScript.



Here's one for JavaScript:



http://code.google.com/p/smath/wiki/smathJavaScriptAPI


[#91638] Thursday, June 16, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
forrestn

Total Points: 552
Total Questions: 94
Total Answers: 101

Location: Sao Tome and Principe
Member since Thu, Apr 20, 2023
1 Year ago
;