MathGroup Archive 1998

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

Search the Archive

Re: Problem with ->




> 
> I want to substitute R[s] by k s.
> I tried:
> R[s] / R'[s] /. R[s] -> k s
> and got
> k s / R'[s]
> instead of the expected
> s
> 
> What am I doing wrong?
> 
> Hans Friedrich Steffani
> --
> Hans Friedrich Steffani
> Institut fuer Elektrische Maschinen und Antriebe, TU Chemnitz
> mailto:hans.steffani@e-technik.tu-chemnitz.de
> http://www.tu-chemnitz.de/~hfst/
> 

The full form of R'[s] is Derivative[1][R][s]  The correct way to do the
replacement is 

R[s]/R'[s] /. Thread[{#,D[#,s]} & /@ (R[s] ->k s) ]

Hope that helps
  Jens



  • Prev by Date: Mathematica Bibliography
  • Next by Date: Mathlink Buffer size
  • Prev by thread: Re: Problem with ->
  • Next by thread: RE: Problem with ->