Add a todo

This commit is contained in:
Lafrite 2015-04-07 07:45:37 +02:00
parent 27b3ba5115
commit 862c1b663a
1 changed files with 1 additions and 0 deletions

View File

@ -133,6 +133,7 @@ class Polynom_deg2(Polynom):
>>> P.roots() >>> P.roots()
[-1.0, 1.0] [-1.0, 1.0]
""" """
# TODO: Use sympy to compute those |mar. avril 7 07:31:42 CEST 2015
if self.delta > 0: if self.delta > 0:
self._roots = [round((-self.b - sqrt(self.delta))/(2*self.a),after_coma), round((-self.b + sqrt(self.delta))/(2*self.a),after_coma)] self._roots = [round((-self.b - sqrt(self.delta))/(2*self.a),after_coma), round((-self.b + sqrt(self.delta))/(2*self.a),after_coma)]
elif self.delta == 0: elif self.delta == 0: