mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
math: factorial submodule
This commit is contained in:
parent
a5b43e1f4d
commit
1277ce22f8
6 changed files with 468 additions and 196 deletions
|
@ -27,12 +27,6 @@ fn test_digits() {
|
|||
assert negative_digits[2] == -1
|
||||
}
|
||||
|
||||
fn test_factorial() {
|
||||
assert factorial(12) == 479001600
|
||||
assert factorial(5) == 120
|
||||
assert factorial(0) == 1
|
||||
}
|
||||
|
||||
fn test_erf() {
|
||||
assert erf(0) == 0
|
||||
assert erf(1.5) + erf(-1.5) == 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue