From e1e46e59c8bb4f2abdbef28329e5bc5af442f16d Mon Sep 17 00:00:00 2001 From: marina <138340846+bt3gl-cryptographer@users.noreply.github.com> Date: Mon, 7 Aug 2023 17:05:08 -0700 Subject: [PATCH] Update binary_exponentiation.py --- math/binary_exponentiation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/math/binary_exponentiation.py b/math/binary_exponentiation.py index aa0f165..74e293a 100644 --- a/math/binary_exponentiation.py +++ b/math/binary_exponentiation.py @@ -2,11 +2,11 @@ # -*- coding: utf-8 -*- # author: bt3gl -``` +''' Binary exponentiation, also known as exponentiation by squaring, is a technique for efficiently computing the power of a number. By repeatedly squaring x and halving n, we can quickly compute x^n using a logarithmic number of multiplications. -```` +''' def binary_exp(x: float, n: int) -> float: