Adjust erf estimation function (#15423)
Release Notes: - Fixed a (potential) small error in erf estimation. Technically, the error is negligible. I am not sure where the current calculation for erf come from and if it is intended or a simple mistake. However it looks slightly different from the official calculation, notably [this](https://en.wikipedia.org/wiki/Error_function#Approximation_with_elementary_functions) from Wikipedia. I will add a comment if it is intended.
This commit is contained in:
parent
2db2b636f2
commit
f24f601e05
4 changed files with 37 additions and 4 deletions
|
@ -172,3 +172,7 @@ path = "examples/window_shadow.rs"
|
|||
[[example]]
|
||||
name = "input"
|
||||
path = "examples/input.rs"
|
||||
|
||||
[[example]]
|
||||
name = "shadow"
|
||||
path = "examples/shadow.rs"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue