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

Added some comments.

parent aa65ad69
No related branches found
No related tags found
No related merge requests found
......@@ -8,13 +8,15 @@ from ..translate import _
def choose_constant(integral):
"""
Choose a constant to be added to the antiderivative.
Start at 'c', then alphabetically from 'a' until an variable is encountered
that is not occupied in the integral already.
"""
# TODO: comments
occupied = find_variables(integral)
c = 'c'
i = 96
while c in occupied:
# Skip 'c'
i += 2 if i == 98 else 1
c = chr(i)
......
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