ArithFunct/agysar
ArithFunct/annashest
f1def ADD(f, g):f1def ADD(f, g):
2    def h(x):2    def h(x):
3        if callable(f) and callable(g):3        if callable(f) and callable(g):
4            return f(x) + g(x)4            return f(x) + g(x)
n5 n
6        if callable(f) and not callable(g):5        if callable(f) and not callable(g):
7            return f(x) + g6            return f(x) + g
n8 n
9        if not callable(f) and callable(g):7        if not callable(f) and callable(g):
10            return f + g(x)8            return f + g(x)
n11 n
12        if not callable(f) and not callable(g):9        if not callable(f) and not callable(g):
13            return f + g10            return f + g
1411
15    return h12    return h
1613
1714
18def SUB(f, g):15def SUB(f, g):
19    def h(x):16    def h(x):
20        if callable(f) and callable(g):17        if callable(f) and callable(g):
21            return f(x) - g(x)18            return f(x) - g(x)
n22 n
23        if callable(f) and not callable(g):19        if callable(f) and not callable(g):
24            return f(x) - g20            return f(x) - g
n25 n
26        if not callable(f) and callable(g):21        if not callable(f) and callable(g):
27            return f - g(x)22            return f - g(x)
n28 n
29        if not callable(f) and not callable(g):23        if not callable(f) and not callable(g):
30            return f - g24            return f - g
3125
32    return h26    return h
3327
3428
35def MUL(f, g):29def MUL(f, g):
36    def h(x):30    def h(x):
37        if callable(f) and callable(g):31        if callable(f) and callable(g):
38            return f(x) * g(x)32            return f(x) * g(x)
n39 n
40        if callable(f) and not callable(g):33        if callable(f) and not callable(g):
41            return f(x) * g34            return f(x) * g
n42 n
43        if not callable(f) and callable(g):35        if not callable(f) and callable(g):
44            return f * g(x)36            return f * g(x)
n45 n
46        if not callable(f) and not callable(g):37        if not callable(f) and not callable(g):
47            return f * g38            return f * g
4839
49    return h40    return h
5041
5142
52def DIV(f, g):43def DIV(f, g):
53    def h(x):44    def h(x):
54        if callable(f) and callable(g):45        if callable(f) and callable(g):
55            return f(x) / g(x)46            return f(x) / g(x)
n56 n
57        if callable(f) and not callable(g):47        if callable(f) and not callable(g):
58            return f(x) / g48            return f(x) / g
n59 n
60        if not callable(f) and callable(g):49        if not callable(f) and callable(g):
61            return f / g(x)50            return f / g(x)
t62 t
63        if not callable(f) and not callable(g):51        if not callable(f) and not callable(g):
64            return f / g52            return f / g
6553
66    return h54    return h
6755
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op