From f73c7bf3c48d0b08e907bc89bfc9c0a9f8ebccc1 Mon Sep 17 00:00:00 2001 From: Ben Guidarelli Date: Mon, 25 Oct 2021 11:15:48 -0400 Subject: [PATCH] Adding exponentiation to arithmatic ops docs --- docs/arithmetic_expression.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/arithmetic_expression.rst b/docs/arithmetic_expression.rst index 60fa3cb0a..daa4619c6 100644 --- a/docs/arithmetic_expression.rst +++ b/docs/arithmetic_expression.rst @@ -19,6 +19,7 @@ Operator Overloaded Semantics :any:`Mul(a, b) ` :code:`a * b` `a * b`, error if overflow :code:`Int(2) * Int(3)` :any:`Div(a, b)
` :code:`a / b` `a / b`, error if divided by zero :code:`Int(3) / Int(2)` :any:`Mod(a, b) ` :code:`a % b` `a % b`, modulo operation :code:`Int(7) % Int(3)` +:any:`Exp(a, b) ` :code:`a ** b` `a ** b`, exponent operation :code:`Int(7) ** Int(3)` :any:`Eq(a, b) ` :code:`a == b` `1` if `a` equals `b`, `0` otherwise :code:`Int(7) == Int(7)` :any:`Neq(a, b) ` :code:`a != b` `0` if `a` equals `b`, `1` otherwise :code:`Int(7) != Int(7)` :any:`And(a, b) ` `1` if `a > 0 && b > 0`, `0` otherwise :code:`And(Int(1), Int(1))`