Re: Problem with ->
- To: mathgroup@smc.vnet.net
- Subject: [mg11452] Re: [mg11379] Problem with ->
- From: Clemens Frey <Clemens.Frey@uni-bayreuth.de>
- Date: Thu, 12 Mar 1998 01:34:04 -0500
- References: <199803090112.UAA06406@smc.vnet.net.>
Hi, what you are doing wrong is the following: You define a value for R[s] (the same as writing R[s] = k s) instead of defining a function like R[s_] := k s. So if you do not like definig R[s_] := k s and then evaluating your expression, you definitely have to write: R[s]/ R'[s] /. R->Function[x, k x] getting s as the result. (you could even write s instead of x above, but I tried to avoid confusion...) Hope I could help Clemens ------------------------------------------------------------------ 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/
- References:
- Problem with ->
- From: hans.steffani@e-technik.tu-chemnitz.de (Hans Steffani)
- Problem with ->