Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.5K Views
|
3 Replies
|
1 Total Like
View groups...
Share
Share this post:

Formula replace

Posted 10 years ago

Hi! Here I have a question.

Given a = b / c, S = ( ( b/c ) + 1 ) / ( b*( 1 - 1/c ) ).

Does anyone know how to convert ( ( b/c ) + 1 ) / ( b*( 1 - 1/c ) ) to ( a+1 ) / ( b-a ) with Mathematica?

Thanks!

POSTED BY: san-chi yan
3 Replies

A good way of eliminating c, is by using the command Eliminate, or by using it simply like this:

Solve[a==b/c,c]
((b/c)+1)/(b*(1-1/c)) /. %
Simplify[%]
POSTED BY: Sander Huisman

I do not know now an easier way other that direct replacement and to expand the denominator. See FullForm of S0 to see the need rules.

Clear[a, b, c, S0]
S0 = ((b/c) + 1)/(b*(1 - 1/c))
rule = (b/c) -> a;
(Numerator[S0] /. rule)/(Expand@Denominator[S0] /. rule)

enter image description here

POSTED BY: Nasser M. Abbasi
Posted 10 years ago

Complicated but good! Thank you!

POSTED BY: san-chi yan
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard