Solidity Zelen & Severo approximation of guassian CDF implementation.
forge build
Tests use test_cases.txt. You can use this file as is or generate new test cases by running python3 generate_tests.py after having installed the necessary dependencies in requirements.txt. I use a similar structure as marcuspang.
forge test -vv
| Description | Threshold |
|---|---|
| 1e8 Fixed Point Error Threshold | 10000000000 |
| Max Error | 16450261803 |
| Average Error | 1646253 |