In wh-sandbox, revision 506, the following line crashes the interpreter. In fact, it seems that other versions don't like it either. The expected behaviour is not to call factor at all, since if R has UniqueFactorizationDomain then coerce(r:R):% == zero? r => 0 unit? r => mkFF(r, empty()) if R has Field => error "zero divisor in a field" unitNormalize(squareFree(r) pretend %) make name more precise --kratt6, Sat, 28 Apr 2007 16:17:36 -0500 reply Name: #351 interpreter crash => #351 interpreter crash factoring 1+2%i in COMPLEX PF 5
The suggested workaround has been implemented in FriCAS. However, Complex PF 5 is still a field there, since conditional exports are implemented only very superficially.
Martin Status: open => fix proposed |