mirror of
https://github.com/sigmasternchen/gleam-community-maths
synced 2025-03-15 07:59:01 +00:00
assert to avoid inexhaustive pattern warning
Just adding an assert to the coefficients for computing the Gauss error function, to satisfy the exhaustiveness checks in 0.33
This commit is contained in:
parent
ad11b966a9
commit
30289cd0ff
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ pub fn beta(x: Float, y: Float) -> Float {
|
|||
/// </div>
|
||||
///
|
||||
pub fn erf(x: Float) -> Float {
|
||||
let [a1, a2, a3, a4, a5]: List(Float) = [
|
||||
let assert [a1, a2, a3, a4, a5]: List(Float) = [
|
||||
0.254829592, -0.284496736, 1.421413741, -1.453152027, 1.061405429,
|
||||
]
|
||||
let p: Float = 0.3275911
|
||||
|
|
Loading…
Reference in a new issue