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

Commit

Permalink
20312: fix for constant results
Browse files Browse the repository at this point in the history
  • Loading branch information
rwst committed Apr 23, 2016
1 parent eb5bf93 commit 5c377cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/symbolic/function.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ cdef class BuiltinFunction(Function):
if (isinstance(arg_parent, PolynomialRing_commutative)
or isinstance(arg_parent, MPolynomialRing_polydict_domain)):
try:
return res.polynomial(ring=arg_parent)
return SR(res).polynomial(ring=arg_parent)
except TypeError:
return res
else:
Expand Down

0 comments on commit 5c377cc

Please sign in to comment.