瀏覽代碼

Adding maths corpus

master
Ben Kurtovic 12 年之前
父節點
當前提交
62a9e9c2c3
共有 1 個檔案被更改,包括 25 行新增0 行删除
  1. +25
    -0
      corpora/maths.py

+ 25
- 0
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]

Loading…
取消
儲存