This is https://trac.sagemath.org/ticket/13773 Sage cannot translate Maxima's "if" construct. However, since beta7 there is the cases function in Sage which can now represent such condition/expression pairs, so just an interface is needed.
The explanation for the difference between x+2 and x-2 is probably that if you (Maxima) know x is positive then you know x+2 is so as well and you don't need cases. Regards, -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.