How to calculate complementary error function in java?
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);