This website works better with JavaScript.
Home
Help
Sign In
ben
/
func-smash
mirror of
https://github.com/earwig/func-smash
Watch
1
Star
1
Fork
0
Code
Releases
0
Activity
Browse Source
Adding maths corpus
master
Ben Kurtovic
12 years ago
parent
59eaf62931
commit
62a9e9c2c3
1 changed files
with
25 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+25
-0
corpora/maths.py
+ 25
- 0
corpora/maths.py
View File
@@ -0,0 +1,25 @@
def f1(a):
b = a + 9.0
return b
def f2(a):
b = a - 7.0
return b
def f3(a):
b = a * 5.0
return b
def f4(a):
b = a / 3.0
return b
def f5(a):
b = a ** 2.0
return b
def f6(a):
b = a % 10.0
return b
corpus = [f1, f2, f3, f4, f5, f6]
Write
Preview
Loading…
Cancel
Save