Hi,

I have the following piece of code :

function('f',x)
function('g',x)
equation1 = (f(x) + g(x) == x^3)
equation2 = (f(x) ==  x^3)
substitutions = {f: log, g:exp}



Then I would like to substitute variables in the equations :

equation1.substitute(substitutions)   ->  log(x) + exp(x) = x^3
equation2.substitute(substitutions)   -> f(x) = x^3
equation2.substitute(f=log)              -> log(x) = x^3

Why is there no substitution in the second line ? How can I be assured
that the substitution has effectively taken place when I substitute
for many functions ?

Thanks,

Pablo



--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to