有(某种)高级数学Javascript库吗? [英] Are there any (somewhat) advanced mathematics Javascript libraries?

查看:85
本文介绍了有(某种)高级数学Javascript库吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一些库可以为Javascript提供任何其他通用数学函数?说出诸如范围之内的和,导数,积分等之类的东西.我可以想象不可能有很多事情,因此即使是执行粗略近似的库也会很有趣.

Are there any libraries knocking around that provide any additional general purpose math functions for Javascript? Say things like sums over a range, derivatives, integrals, etc. I can imagine that many things aren't possible, so even libraries that do rough approximations would be interesting.

谢谢!

更新:如下所述,我想没有任何图书馆可以做我想做的事情.本着这种精神,我开始在自己的名为 MathPlus 的库中开始.

Update: As mentioned below, I guess that there aren't any libraries that do what I want to do. In that spirit, I have started on my own library called MathPlus.

推荐答案

当您要求积分和导数时,您要寻找什么?数字还是符号?不确定还是不确定?单变量还是多变量?等等.

What are you looking for when you ask for integrals and derivatives? Numerical or symbolic? Indefinite or definite? Single-variable or multivariate? Etc.

编写一个程序来进行符号区分实际上并不难,尽管简化和显示远非简单(相反,可能与直觉相反).同样,数值微分和数值定积分很简单,具体取决于所需的精度. (如果您需要一点,那很容易;如果您需要一点儿知识并且正在执行许多操作,则需要进行一些认真的数值分析(算术)才能使它起作用;如果需要大量的精度,则需要一个bignum库,因此JS是太好了.)

It's actually not hard to write a program to do symbolic differentiation, though simplification and display is far from simple (contrary, perhaps, to intuition). Similarly, numerical differentiation and numerical definite integration is simple enough, depending on how much precision you need. (If you need a little it's easy; if you need a fair bit and are doing many operations, you need some serious numerical analysis (math) to make it work; if you need lots of precision you need a bignum library so JS isn't that great.)

在任何语言中,当然"的符号集成都非常困难.在这种情况下,您最好的选择是查询Wolfram | alpha等网站.

'Of course' symbolic integration is extremely difficult in any language. Your best bet in that case would be to query a site like Wolfram|alpha...

如果您需要对以上几点进行澄清或扩展,请告诉我.

If you need clarification or expansion on any of these points, let me know.

这篇关于有(某种)高级数学Javascript库吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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