Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Substitution in function of functions' topicStudent Support Forum > General > Archives > "Substitution in function of functions"

Next Comment >Help | Reply To Topic
Author Comment/Response
Marco Lepidi
02/16/10 10:37am

Given the function:

In: func[μ_, x_[t]] = x[t]μ + x[t] + μ;

I would like to substitute the variable x[t] with g*x[t]. Clearly it is possible to use:

In: ReplaceAll[func[μ, x[t]], x[t] -> g*x[t]]

But I'm looking for a more elegant way to achieve the same result; the simplest one

In: func[μ, g*x[t]]

doesn't work (why?). Any suggestion?

Thank you for the attention
ML

URL: ,

Subject (listing for 'Substitution in function of functions')
Author Date Posted
Substitution in function of functions Marco Lepidi 02/16/10 10:37am
Re: Substitution in function of functions yehuda ben-s... 02/17/10 01:45am
Re: Re: Substitution in function of functions Marco Lepidi 02/20/10 06:06am
Re: Re: Substitution in function of functions Peter Pein 02/24/10 08:20am
Next Comment >Help | Reply To Topic