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))`