ArithFunct/annashest
ArithFunct/agysar
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)
nn5 
5        if callable(f) and not callable(g):6        if callable(f) and not callable(g):
6            return f(x) + g7            return f(x) + g
nn8 
7        if not callable(f) and callable(g):9        if not callable(f) and callable(g):
8            return f + g(x)10            return f + g(x)
nn11 
9        if not callable(f) and not callable(g):12        if not callable(f) and not callable(g):
10            return f + g13            return f + g
1114
12    return h15    return h
1316
1417
15def SUB(f, g):18def SUB(f, g):
16    def h(x):19    def h(x):
17        if callable(f) and callable(g):20        if callable(f) and callable(g):
18            return f(x) - g(x)21            return f(x) - g(x)
nn22 
19        if callable(f) and not callable(g):23        if callable(f) and not callable(g):
20            return f(x) - g24            return f(x) - g
nn25 
21        if not callable(f) and callable(g):26        if not callable(f) and callable(g):
22            return f - g(x)27            return f - g(x)
nn28 
23        if not callable(f) and not callable(g):29        if not callable(f) and not callable(g):
24            return f - g30            return f - g
2531
26    return h32    return h
2733
2834
29def MUL(f, g):35def MUL(f, g):
30    def h(x):36    def h(x):
31        if callable(f) and callable(g):37        if callable(f) and callable(g):
32            return f(x) * g(x)38            return f(x) * g(x)
nn39 
33        if callable(f) and not callable(g):40        if callable(f) and not callable(g):
34            return f(x) * g41            return f(x) * g
nn42 
35        if not callable(f) and callable(g):43        if not callable(f) and callable(g):
36            return f * g(x)44            return f * g(x)
nn45 
37        if not callable(f) and not callable(g):46        if not callable(f) and not callable(g):
38            return f * g47            return f * g
3948
40    return h49    return h
4150
4251
43def DIV(f, g):52def DIV(f, g):
44    def h(x):53    def h(x):
45        if callable(f) and callable(g):54        if callable(f) and callable(g):
46            return f(x) / g(x)55            return f(x) / g(x)
nn56 
47        if callable(f) and not callable(g):57        if callable(f) and not callable(g):
48            return f(x) / g58            return f(x) / g
nn59 
49        if not callable(f) and callable(g):60        if not callable(f) and callable(g):
50            return f / g(x)61            return f / g(x)
tt62 
51        if not callable(f) and not callable(g):63        if not callable(f) and not callable(g):
52            return f / g64            return f / g
5365
54    return h66    return h
5567
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op