Skip to content

Commit df60bdd

Browse files
committed
math: Remove factorial from the math library
1 parent 74751f6 commit df60bdd

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

std/math/math.pics

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -213,18 +213,6 @@ Math :: module {
213213
radToDeg :: (rad=0) = rad * (180 / 3.141592653589793)
214214

215215

216-
// Function: factorial
217-
// Computes the factorial of a number
218-
//
219-
// Parameters:
220-
// n - The number to compute factorial from
221-
//
222-
// Returns:
223-
// The factorial of `n`
224-
factorial :: (n=0) =
225-
if n <= 1 do { 1 }
226-
else do { n * factorial(n - 1) }
227-
228216
// Variable: E
229217
// The double value that is closer than any other to e, the base of the natural logarithms.
230218
E := 2.718281828459045

0 commit comments

Comments
 (0)