From 62a9e9c2c383c948d175531326bf68f32618295d Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Fri, 20 Apr 2012 20:49:13 -0400 Subject: [PATCH] Adding maths corpus --- corpora/maths.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 corpora/maths.py diff --git a/corpora/maths.py b/corpora/maths.py new file mode 100644 index 0000000..7ffc098 --- /dev/null +++ b/corpora/maths.py @@ -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]