扩展数学函数 [英] Extending Math Functions

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

问题描述

Javascript有一个非常小的数学函数列表。但是没有

的原因,这个列表无法大大扩展。速度不是一个问题,除非你将多个级别的复杂计算嵌套。在

这种情况​​下你需要更多的RAM而不是PC必须存储功能

在循环中计算,这样你就不必每次都重新计算

循环遍历循环。使用HD进行存储扩展

ram对于许多应用程序来说太慢了。


一些函数如双曲线函数很容易添加,因为它们是

只是内置javascript数学函数的简单组合。我已经在网上找到了一些例子,比如贝塞尔函数。我发现

比我在谷歌搜索中预期的javascript数学函数少得多。

因此我不得不写几个我自己的函数。


请参阅 http://www.cwdjr.net/math/I0L0andI1L1 .html 的例子是两个

来自地狱的功能这很难评估。幸运的是

有Fortran程序可以作为起点。我是

能够修改Fortran程序来处理javascript。我过去曾在技术应用程序中使用过

这些函数。


该页面设置为拒绝NN 4系列,因为它不会

支持一些所需的脚本,例如.toExponential(n)和

to.Fixed(n),用于以指数或固定格式写入输出。我感到惊讶的是,即使是旧的MSNTV(前WebTV)机顶盒,也没有更长的时间,也会支持这些输出格式。我不知道

关于IE4。如果它不支持这些输出格式,我可以通过检查document.getElementById来轻松地阻止它。


代码在最新版本上运行正常IE6,MSN9,Firefox,

Mozilla,Netscape和Opera。我不卖任何东西,所以对于这样的特殊兴趣页面,我认为没有必要支持旧的

浏览器。


使用javascript进行数学运算的优势在于它非常便携。

你可以在任何可以使用计算机的地方做到这一点,或者你可以在你的任何地方进行。

离线本地计算机。 PC上有几个数学程序

,它们的功能远远超过你希望用的javascript。

不幸的是,我想要的程序大约需要1800美元。还有

是你可以在服务器上安装的版本,但这些也很昂贵。

Javascript has a very small math function list. However there is no
reason that this list can not be extended greatly. Speed is not an
issue, unless you nest complicated calculations several levels deep. In
that case you need much more ram than a PC has to store functions
calculated in loops so that you do not have to recalculate every time
you cycle through the nest of loops. Using a HD for storage to extend
ram is much too slow for many applications.

Some functions such as hyperbolic ones are easy to add, since they are
just simple combinations of the built in javascript math functions. I
have found a few examples on the web such as Bessel functions. I found
far fewer javascript math functions than I expected on Google searches.
Thus I have had to write several functions of my own.

See http://www.cwdjr.net/math/I0L0andI1L1.html for an example of two
"functions from hell" that are very difficult to evaluate. Fortunately
there are Fortran programs that can be used as a starting point. I was
able to modify the Fortran programs to work on javascript. I have used
these functions for technical applications in the past.

The page is set up to reject the NN 4 series, because it will not
support some of the script needed such as .toExponential(n) and
to.Fixed(n)for writing output in exponential or fixed format. I was
amazed that even the old MSNTV(former WebTV) set-top box, that no
longer is being made, will even support these output formats. I wonder
about IE4. If it will not support these output formats, I can easly
block it by checking for document.getElementById.

The code works properly on the latest versions of IE6, MSN9, Firefox,
Mozilla, Netscape, and Opera. I am not selling anything, so for a
special interest page such as this, I see no need to support older
browsers.

The advantage of doing math with javascript is that it is so portable.
You can do it anywhere you can use a computer, or you can do it on your
own local computer offline. There are several math programs for PCs
that will do very much more than you can hope to do with javascript.
Unfortunately the program I would like costs about US$ 1800. Also there
are versions you can install on a server, but these also are expensive.

推荐答案

1800。还有

是你可以在服务器上安装的版本,但这些也很昂贵。

1800. Also there
are versions you can install on a server, but these also are expensive.


"我是
b $ b令人惊讶的是,即使是旧的MSNTV(以前的WebTV)机顶盒,也没有制作更长的时间,甚至还支持这些输出格式。


承认,你是个白痴。


首先你想要javascript的自定义数学函数。


然后你抱怨(见第1行)


========================

告诉我你的钱。


我没有时间给任何休闲消费者。


支付你的会费,即50年来告诉别人该怎么做。


--------


摘要:

什么都不做,就这么做吧。


你的美国毕竟不是那么友善。


它被认为是世界上咄咄逼人的诅咒。


"I was
amazed that even the old MSNTV(former WebTV) set-top box, that no
longer is being made, will even support these output formats."

Admit it, you are an idiot.

First you wanted custom math function for javascript.

Then you complain about (see line 1)

========================

Show me your money.

I have no time for leisure consumers of anything.

Pay your dues, that is 50 years of tellings others what to do.

--------

SUMMARY:

Do nothing, just go away.

Your "US" kind is not so kind after all.

It is considered the overbearing curse of the world.



在2005年6月22日06:02, cw******@yahoo.com 写道:
On 22/06/2005 06:02, cw******@yahoo.com wrote:
Javascript有一个非常小的数学函数列表。但是没有理由不能大大扩展这个列表。


你有没有考虑过这样一个事实,即大量选择这样的功能

将大部分未使用,因此浪费时间和资源

实现和公开?


在专门的应用程序中,主机可以自由扩展实现的对象和

方法,但是至于对于浏览器而言,有很多方法可以为Math对象添加许多方法。


[snip]

页面被设置为拒绝NN 4系列,因为它不会支持一些所需的脚本,如.toExponential(n)和
to.Fixed(n),用于以指数或固定方式写入输出格式。


这两种方法的实现在一些主机中都是错误的。

我不知道IE4。如果它不支持这些输出格式,我可以通过检查document.getElementById轻松地阻止它。
Javascript has a very small math function list. However there is no
reason that this list can not be extended greatly.
Have you considered the fact that a large selection of such functions
would go largely unused, and therefore be a waste of time and resources
to implement and expose?

In specialised applications, a host is free to extend what objects and
methods are implemented, but as far as browsers are concerned, there is
no benefit in adding lots of methods to the Math object.

[snip]
The page is set up to reject the NN 4 series, because it will not
support some of the script needed such as .toExponential(n) and
to.Fixed(n)for writing output in exponential or fixed format.
Implementations of both methods are bug-ridden in some hosts.
I wonder about IE4. If it will not support these output formats, I can easly
block it by checking for document.getElementById.




你最好不要阻止基于的浏览器他们做了什么,或者做了什么,不是支持,而是支持不相关的功能。见

< URL:http://www.jibbering.com/faq/#FAQ4_26>和它的链接。


[snip]


Mike


-

Michael Winter

替换.invalid与.uk通过电子邮件回复。



You would be better off blocking browsers based on what they do, or do
not, support, not on unrelated features. See
<URL:http://www.jibbering.com/faq/#FAQ4_26> and its links.

[snip]

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.


这篇关于扩展数学函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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