Taddeus Kroes 14 лет назад
Родитель
Сommit
808a6241ee
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/rules/integrals.py

+ 3 - 1
src/rules/integrals.py

@@ -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)