f | def ADD(f, g): | f | def ADD(f, g): |
n | def A1(x): | n | def v(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 A1 | | return v |
| | | |
| | | |
| | | def SUB(f, g): |
| | | def n(x): |
| | | return (f(x) if callable(f) else f)-(g(x) if callable(g) else g) |
| | | return n |
| | | |
| | | |
| def MUL(f, g): | | def MUL(f, g): |
n | def A2(x): | n | def l(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 A2 | | return l |
| | | |
| | | |
| def DIV(f, g): | | def DIV(f, g): |
n | def A3(x): | n | def o(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 A3 | | return o |
| | | |
t | | t | |
| def SUB(f, g): | | |
| def A4(x): | | |
| return(f(x) if callable(f) else f)-(g(x) if callable(g) else g) | | |
| return A4 | | |
| | | |