ArithFunct/kabaczek
ArithFunct/Bernard04
n1def ADD(fg):n1def ADD(ab):
2    def h(x):2    def h(x):
n3        if callable(f):n3        if callable(a):
4            f_1 = f(x)4            c = a(x)
5        else:5        else:
n6            f_1 = fn6            c = a
7 
7        if callable(g):8        if callable(b):
8            g_1 = g(x)9            d = b(x)
9        else:10        else:
n10            g_1 = gn11            d = b
12 
11        return f_1 + g_113        return c + d
14 
12    return h15    return h
1316
1417
n15def SUB(fg):n18def SUB(ab):
16    def h(x):19    def h(x):
n17        if callable(f):n20        if callable(a):
18            f_1 = f(x)21            c = a(x)
19        else:22        else:
n20            f_1 = fn23            c = a
24 
21        if callable(g):25        if callable(b):
22            g_1 = g(x)26            d = b(x)
23        else:27        else:
n24            g_1 = gn28            d = b
29 
25        return f_1 - g_130        return c - d
31 
26    return h32    return h
2733
2834
n29def MUL(fg):n35def MUL(ab):
30    def h(x):36    def h(x):
n31        if callable(f):n37        if callable(a):
32            f_1 = f(x)38            c = a(x)
33        else:39        else:
n34            f_1 = fn40            c = a
41 
35        if callable(g):42        if callable(b):
36            g_1 = g(x)43            d = b(x)
37        else:44        else:
n38            g_1 = gn45            d = b
46 
39        return f_1 * g_147        return c * d
48 
40    return h49    return h
4150
4251
n43def DIV(fg):n52def DIV(ab):
44    def h(x):53    def h(x):
n45        if callable(f):n54        if callable(a):
46            f_1 = f(x)55            c = a(x)
47        else:56        else:
n48            f_1 = fn57            c = a
58 
49        if callable(g):59        if callable(b):
50            g_1 = g(x)60            d = b(x)
51        else:61        else:
t52            g_1 = gt62            d = b
63 
53        return f_1/g_164        return / d
65 
54    return h66    return h
5567
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op