mirror of
https://github.com/sigmasternchen/gleam-community-maths
synced 2025-03-15 07:59:01 +00:00
Merge pull request #10 from hunkyjimpjorps/patch-1
assert to avoid inexhaustive pattern warning
This commit is contained in:
commit
37c7da2e46
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