On 10/05/15 11:20, Nathann Cohen wrote: > Yo ! > >> Secondly, I think that we should not override any Python builtin. > > There is no denying that all the symbolic stuff is infinitely slower. > It is because of you that I started paying attention to it, when you > gained a crazy speedup by using math.sqrt instead of Sage's sqrt. > > But that is precisely the problem: we are halfway through replacing > Python's functions with symbolic functions. Cos, sin, log, sqrt, abs. > All these are already overwritten by Sage symbolic equivalents. Though > not 'min' and 'max'. We should do it for all or for none, shouldn't > we? By not respecting any standard convention we are making it > unreliable.
cos is different from max. cos is in a Python library (math for instance) while max is a builtin. this works $ python -c "print max(1,3)" this does not $ python -c "print cos(1)" Vincent -- 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.