Complementary error function in java?

1

How to calculate complementary error function in java?

    
asked by anonymous 21.12.2015 / 15:54

1 answer

3

Add this dependency to the project.

   <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-math3</artifactId>
        <version>3.2</version>
    </dependency>

Just call this function.

double vlr = Erf.erf(x);
System.out.println("valor" + vlr);
    
21.12.2015 / 16:28