Commit 12eebb16 authored by Taddeus Kroes's avatar Taddeus Kroes

Updated some comments.

parent 49391e6c
......@@ -7,6 +7,10 @@ from ..translate import _
def is_eliminateable_sqrt(n):
"""
Check if the square root of n can be evaluated so that the square root
disappears (is eliminated).
"""
if isinstance(n, int):
return n > 3 and int(math.sqrt(n)) ** 2 == n
......@@ -99,7 +103,7 @@ MESSAGES[split_dividers] = _('Write {0[0]} as {1} * {2} to so that {1} can ' \
def extract_sqrt_multiplicant(root, args):
"""
sqrt(ab) -> sqrt(a)sqrt(b)
sqrt(ab) -> sqrt(a)sqrt(b)
"""
scope, a = args
scope.remove(a)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment