Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Fixed bug in interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
johanrosenkilde committed Jul 30, 2016
1 parent 3166c6d commit 7806d86
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sage/rings/polynomial/skew_polynomial_ring.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,9 +754,7 @@ def multi_point_evaluation(self, p, eval_pts):
coefficients = p.list()
sigma = self.twist_map()
if len(eval_pts) == 1:
if len(coefficients) == 1:
coefficients.append(0)
return [coefficients[1]*sigma(eval_pts[0]) + coefficients[0]*eval_pts[0]]
return [ p(eval_pts[0]) ]
else:
A = eval_pts[:len(eval_pts)/2]
B = eval_pts[(len(eval_pts)/2):]
Expand Down

0 comments on commit 7806d86

Please sign in to comment.