f | def ADD(f, g): | f | def ADD(f, g): |
n | def v(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 v | | return clos |
| | | |
| | | |
| def SUB(f, g): | | def SUB(f, g): |
n | def n(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 n | | return clos |
| | | |
| | | |
| def MUL(f, g): | | def MUL(f, g): |
n | def l(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 l | | return clos |
| | | |
| | | |
| def DIV(f, g): | | def DIV(f, g): |
t | def o(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 o | | return clos |
| | | |