** but will sometimes be ^. Math.pow is or x*x*x are both okay if the language does not have the symbolic operator.
| Notation or Language | Cube Function |
|---|---|
| Lambda Calculus | $(\lambda x.\,\textrm{power}\;x\;3)$ $\lambda x.\,\textrm{power}\;x\;3$ $\lambda x.\,x^3$ |
| Lisp | (LAMBDA (x) (expt x 3)) |
| Python | lambda x: x ** 3 |
| JavaScript | x => x ** 3 |
| Java | x -> x * x * x |
| Ruby | ->(x) {x ** 3} |
| Clojure | #(* % % %) |
| Swift | { $0 * $0 * $0 } |
| Rust | |x:f64| {x.powi(3)} |
| Kotlin | {x: Double -> x * x * x} |
| Go | func(x float64)float64 {return x * x * x} |
| Haskell | \x -> x ^ 3 |
| $A$ | $B$ | $\;\;\neg A\;\;$ | $\;\;\neg B\;\;$ | $A \land B$ | $A \lor B$ | $A \supset B$ | $A \equiv B$ |
|---|---|---|---|---|---|---|---|
| true | true | false | false | true | true | true | true |
| true | false | false | true | false | true | false | false |
| true | other | false | other | other | true | other | other |
| false | true | true | false | false | true | true | false |
| false | false | true | true | false | false | true | true |
| false | other | true | other | false | other | true | other |
| other | true | other | false | other | true | true | other |
| other | false | other | true | false | other | other | other |
| other | other | other | other | other | other | other/ true | true/ other |
python3 -c 'print(pow(790912853,3892359,90277))')