MathGroup Archive 2000

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

Search the Archive

Re: I do not understand


Borut,

With

ySer=Series[y[t],{t,0,3}]

y'[t] /. y[t] -> ySer

does nothing because y[t] does not appear in y'[t]:

FullForm[y'[t]]

Derivative[1][y][t]

Mathematica regards Derivative[n][y] as the result of differentiating the
*function* y n times.

We can use

y'[t] /. y -> Function[t, Evaluate[ySer]]


Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

"Borut L" <justmyname at email.si> wrote in message
news:8r180o$hin at smc.vnet.net...
> Hello,
>
> ySer=Series[y[t],{t,0,3}]
>
> If I apply this rule like this
> (y[t]+y'[t])/.y[t]->ySer
> both y[t] and y'[t] changes appropriately
>
> If I apply
> y'[t]/.y[t]->ySer
> nothing happens
>
>
> Why is that?
>
>
>




  • Prev by Date: Re: List operations
  • Next by Date: Summary: List element manipulation
  • Previous by thread: Re: I do not understand
  • Next by thread: Re: minimizing f(x,y) ???!!!!