On Tue, 23 Mar 2010 05:07:05 -0700 (PDT)
tk <tobi...@web.de> wrote:

>  I tried to do some calculations and used a self-defined function.
>  After that, I wanted to change it to another function like sin or
> just
>  a constant.
>  I am using the binary version on Ubuntu Karmic.
> 
>  What I got was the following:
> ----------------------------------------------------------------------
> | Sage Version 4.3.3, Release Date: 2010-02-21                       |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------
> sage: var('t1,t2,t3')
> (t1, t2, t3)
> sage:
> f1=function('f1',x)
> sage:
> et1=t1==f1(x=t2)*t3
> sage:
> et1.substitute_function(f1,sin)
> t1 == t3*f1(t2)
> 
> Didn't I get how it works?

This works:

sage: var('t1,t2,t3')
(t1, t2, t3)
sage: function('f1')
f1
sage: et1=t1==f1(t2)*t3
sage: et1
t1 == t3*f1(t2)
sage: et1.substitute_function(f1,sin)
t1 == t3*sin(t2)


Cheers,
Burcin

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

To unsubscribe from this group, send email to 
sage-support+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to