Skip to content

Commit c1daa62

Browse files
committed
fix docstring style
1 parent 49317cd commit c1daa62

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

polynomial/core.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,12 +292,11 @@ def calculate(self, x):
292292
return sum(ak * (x ** k) for ak, k in self.terms)
293293

294294
def calculate_horner(self, x):
295-
"""Calculate the value of the polynomial at a given point
296-
using Horner`s method.
295+
"""Calculate the value of the polynomial at a given point.
297296
298-
This method is faster than calling calculate for almost all
299-
polynomials except monomials but might produce slightly different
300-
results when using floats.
297+
This method is using Horner`s method and faster than calling
298+
calculate for almost all polynomials except monomials but might
299+
produce slightly different results when using floats.
301300
"""
302301
result = 0
303302
for coeff in self:

0 commit comments

Comments
 (0)