repositories
/
bsc-thesis1415.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
566f393
)
small type
author
Mart Lubbers
<mart@martlubbers.net>
Wed, 8 Oct 2014 18:45:57 +0000
(20:45 +0200)
committer
Mart Lubbers
<mart@martlubbers.net>
Wed, 8 Oct 2014 18:45:57 +0000
(20:45 +0200)
thesis2/fac.py
[deleted file]
patch
|
blob
|
history
diff --git
a/thesis2/fac.py
b/thesis2/fac.py
deleted file mode 100644
(file)
index
1226f56
..0000000
--- a/
thesis2/fac.py
+++ /dev/null
@@
-1,16
+0,0 @@
-#!/bin/env python
-# -*- coding: utf-8 -*-
-
-lookup = {0: 1}
-
-def fac(n):
- if n in lookup:
- return n
- else:
- return n*fac(n-1)
-
-def fac2(n):
- if n == 0:
- return 1
- else:
- return n*fac(n-1)