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: