ERFC功能的使用:commons.apache.org库 [英] Use of Erfc function: commons.apache.org library
问题描述
我的问题很简单:我想用Java中的误差函数ERFC(双)与Eclipse,但我不希望执行它(因为它是复杂的)
My problem is simple: I would like to use the error function Erfc(double) in Java with Eclipse but I do not want to implement it (because it is complicated).
所以,我发现这一点:
<一个href=\"http://commons.apache.org/proper/commons-math/apidocs/org/apache/commons/math3/special/Erf.html\" rel=\"nofollow\">http://commons.apache.org/proper/commons-math/apidocs/org/apache/commons/math3/special/Erf.html
这不正是我想要的。问题是,我无法使用它。因为它不是由docs.oracle.com,我不能只将其导入。但不幸的是,我不能包含库,并使用它既不因为我从下载:
That does exactly what I want. The problem is that I can not use it. As it is not from "docs.oracle.com", I can not just import it. But unfortunately, I can not include the library and use it neither because what I download from :
http://commons.apache.org/proper/commons-math/ download_math.cgi
不是一个.jar
有人不知道如何装 - 用吗?
Does someone know how to "install - use" it?
我使用Ubuntu 12.04上的英特尔®酷睿™i7-3610QM CPU @ 2.30GHz×8,我的IDE是ecplipse。
I use Ubuntu 12.04 on a Intel® Core™ i7-3610QM CPU @ 2.30GHz × 8 and my IDE is ecplipse.
推荐答案
好吧,这是一个愚蠢的问题!所以,我已经自己找到了答案。
Ok, this was a stupid question! So I have found the answer by myself.
我只需要下载的二进制文件,并将其添加为一个.jar。然后,它可以作为一个经典的库。
I just needed to download the binary files and add it as a .jar. Then it works as a classical library.
要使用它,我必须
进口org.apache.commons.math3。*;
import org.apache.commons.math3.*;
这篇关于ERFC功能的使用:commons.apache.org库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!