The thing, is that with sage: f(x) = max(sin(x), cos(x))
one would expect the function x -> max(sin(x), cos(x)) But because how 'max' is implemented in Python this is not possible. One solution is to 1. create a dedicated symbolic_max or max_symbolic function 2. override 'max(x,y)' to takes care of a potential implementation of 'x.__max__' or 'y.__max__' (and potentially open a related PEP). Similarly, the same "bug" happens for real interval fields. sage: max(RIF(0,1), RIF(-1,2)) should be RIF(0,2) but is RIF(0,1). Vincent On 09/05/15 15:25, Volker Braun wrote: > Its just behaving as specified, False means "cannot decide" > > sage: bool(cos(x) < sin(x)) > False > sage: bool(sin(x) < cos(x)) > False > > Arguably it should raise, though that is possibly only legal in Python 3 > > > On Saturday, May 9, 2015 at 3:19:56 PM UTC+2, Nathann Cohen wrote: >> >>> sage: max(sin(x),cos(x)) >>> sin(x) >> >> If somebody wonders: >> >> sage: max(cos(x),sin(x)) >> cos(x) >> >> Nathann >> > -- 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 http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.