mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
math: add factorial function (via factorial table)
This commit is contained in:

committed by
Alexander Medvednikov

parent
6d28a80bf8
commit
b31ec4ca9a
@ -27,13 +27,11 @@ fn test_digits() {
|
||||
assert negative_digits[2] == -1
|
||||
}
|
||||
|
||||
/*
|
||||
fn test_factorial() {
|
||||
assert math.factorial(12) == 479001600
|
||||
assert math.factorial(5) == 120
|
||||
assert math.factorial(0) == 1
|
||||
}
|
||||
*/
|
||||
|
||||
fn test_erf() {
|
||||
assert math.erf(0) == 0
|
||||
|
Reference in New Issue
Block a user