sqrt(Mod(,),all=True)
should raise more informative NotImplmentedError
#38802
Labels
sqrt(Mod(,),all=True)
should raise more informative NotImplmentedError
#38802
Steps To Reproduce
Check this out:
Expected Behavior
Sage should simply return
[]
, ie. an empty list of roots (as there are none exist). In fact, a reason (which I believe is tested byis_squre()
) is very simple: the modulus101010
is divisible by3
, while2
is not a square modulo3
.Actual Behavior
Raises
NotImplemented
, whileis_square()
easily establishes that there are no solutions.Additional Information
Btw,
sqrt(Mod(2, 101010))
(ie. withoutall=True
) returns a weird/incorrect result, which I submit as another issue #38803.Environment
Checklist
The text was updated successfully, but these errors were encountered: