Skip to content
Snippets Groups Projects
Commit 12eebb16 authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Updated some comments.

parent 49391e6c
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment