MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Delayed Derivative Operator


On Oct 3, 4:35 pm, ToddSmith <ellipt... at gmail.com> wrote:
> Hi,
>  I would like to be able to have an equation
>
> eq := D[f[x],x]==5;
>
> And a substitution rule
>
> rule = f[x]->x^3;
>
> And perform the substitution
>
> eq/.rule
>
> And get back the equation 3x^2==5. But Mathematica sees f'[x] and
> doesn't do any substitutions. I tried a delayed assignment for eq but
> it didn't work. What can I do?
>
> -Thanks

Create a substitution rule for the function f, rather than for the
whole expression f[x]:

rule = f -> (#^3 &);



  • Prev by Date: Re: Strange Laplace Transform in 6.0
  • Next by Date: Re: help with polynomial solutions
  • Previous by thread: Re: Delayed Derivative Operator
  • Next by thread: Re: Delayed Derivative Operator