       Re: Substitutions

• To: mathgroup at smc.vnet.net
• Subject: [mg77940] Re: Substitutions
• From: Albert <awnl at arcor.net>
• Date: Wed, 20 Jun 2007 05:31:17 -0400 (EDT)
• References: <f58d00\$886\$1@smc.vnet.net>

```Hi,

your problem description is quite vague, it is usually better to show
mathematica code in input form, what you have tried and what is wrong
with the result you achieved...

anyway, in situations like yours, I usually try to solve for one of the
variables and replace only that. Then usually everything cancels
automatically, and if not I massage the result with Simplify and other
commands until I'm happy, I am using a very simple example here, but it
shows the idea:
In:= expr = a*(b/c)*Derivative[y][x] + (b/c)*y[x] == 0

Out= (b*y[x])/c + (a*b*Derivative[y][x])/c == 0

In:= expr /. {a*(b/c) -> d}

Out= (b*y[x])/c + d*Derivative[y][x] == 0

In:= Solve[a*(b/c) == d, b]

Out= {{b -> (c*d)/a}}

In:= expr /. {b -> (c*d)/a}

hth,

albert

```

• Prev by Date: v5.2 preferred for stability over v6.0
• Next by Date: Re: MatrixPlot: frame ticks starting with 0?
• Previous by thread: Re: Substitutions