How to use erf(x) function to get the error function at x in Python

3 Answers

0 votes
import math

print(math.erf(.25))


'''
run:

0.2763263901682369

'''

 



answered Oct 12, 2017 by avibootz
0 votes
import math

print(1.0 + math.erf(0.25 / math.sqrt(2.0)) / 2.0)


'''
run:

1.0987063256829237

'''

 



answered Oct 12, 2017 by avibootz
0 votes
import math

print(math.erf(-0.25))


'''
run:

-0.2763263901682369

'''

 



answered Oct 12, 2017 by avibootz
...