On Tue, 05 Mar 2013 at 03:51AM -0800, tom d wrote:
> Yes, I would support such a warning; I've even led tutorials with new sage 
> users where defining things called 'max' or 'min' has seemed an obvious 
> thing to do and then minutes later been a problem as the default function 
> was unavailable.

I have a patch at http://trac.sagemath.org/sage_trac/ticket/14231 .

At Nils' suggestion, I actually changed the preparser so that it
*always* prints when defining a symbolic function this way. This makes
it easier to catch typos like

   sin(t) = 0

when you want

   sin(t) == 0.

However, this is a nontrivial change in behavior and fixing all the
relevant doctests will be a bit of a patchbomb. Comments welcome.

Dan

--
---  Dan Drake
-----  http://math.pugetsound.edu/~ddrake
-------

Attachment: signature.asc
Description: Digital signature

Reply via email to