On Fri, Sep 3, 2010 at 8:53 PM, Ross Kyprianou <ros...@gmail.com> wrote:
> X = NormalRV(mu,sigma)
> Y = log(X)
> ...
> Is there any way I can get Sage to execute
> Y = X(log)
> to invoke the __call__ method and get the right answer, every time the
> user enters the more natural
> Y = log(X)
> ?

Just define X.log() to return what you want when you call log(X).
Similarly for X.sin(), X.exp(), etc.

--Mike

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to