f | def ADD(f, g): | f | def ADD(f, g): |
n | def A(x): | n | def clos(x): |
| return (f(x) if callable(f) else f)+(g(x) if callable(g) else g) | | return (f(x) if callable(f) else f) + (g(x) if callable(g) else g) |
| return A | | return clos |
| | | |
| | | |
| def SUB(f, g): | | def SUB(f, g): |
n | def S(x): | n | def clos(x): |
| return (f(x) if callable(f) else f)-(g(x) if callable(g) else g) | | return (f(x) if callable(f) else f) - (g(x) if callable(g) else g) |
| return S | | return clos |
| | | |
| | | |
| def MUL(f, g): | | def MUL(f, g): |
n | def M(x): | n | def clos(x): |
| return (f(x) if callable(f) else f)*(g(x) if callable(g) else g) | | return (f(x) if callable(f) else f) * (g(x) if callable(g) else g) |
| return M | | return clos |
| | | |
| | | |
| def DIV(f, g): | | def DIV(f, g): |
t | def D(x): | t | def clos(x): |
| return (f(x) if callable(f) else f)/(g(x) if callable(g) else g) | | return (f(x) if callable(f) else f) / (g(x) if callable(g) else g) |
| return D | | return clos |
| | | |