MathGroup Archive 1998

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

Search the Archive

Re: Problem with ->



Hans Steffani wrote:
> 
> 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/

Hans,

FullForm[R'[s]]

Derivative[1][R][s]

So we need to regard R as a function

R[s] / R'[s] /. R ->( k#& )

s

Allan
-- 
Allan Hayes
Mathematica Training and Consulting
Leicester, UK
hay@haystack.demon.co.uk
http://www.haystack.demon.co.uk
voice: +44 (0)116 271 4198
fax: +44 (0)116 271 8642




  • Prev by Date: Re: Extract a contour from a 3-D plot.
  • Next by Date: file size?
  • Prev by thread: Re: Problem with ->
  • Next by thread: Re: Problem with ->