MathGroup Archive 2008

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

Search the Archive

Re: How to programmatically rewrite (x + y/z) as (xz+ y)/z ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg89163] Re: How to programmatically rewrite (x + y/z) as (xz+ y)/z ?
  • From: dh <dh at metrohm.ch>
  • Date: Wed, 28 May 2008 04:42:54 -0400 (EDT)
  • References: <g1gqk6$1g1$1@smc.vnet.net>


Hi,

Together will do the trick:

Together [(x+y/z)]

hope this helps, Daniel



TuesdayShopping wrote:

> Given "(x + y/z)" as input, how do I get the same expression in the form of "(xz+ y)/z".

> 

> Note that the input form may not always have 2 terms. It may be arbitrarily long or may not be in any standard form. It may be like  "x+y", or "x + y + (2*w)/z - p/3 +10", or "c", or  "x/2"   . . . .All that can be assumed about the input is that they are all polynomials bound together with the 5 operators (+, -, *, / and ^), and that whatever the output is, the denominator can be assumed to be not equal to 0.

> 

> Thanks a lot.

> 





-- 



Daniel Huber

Metrohm Ltd.

Oberdorfstr. 68

CH-9100 Herisau

Tel. +41 71 353 8585, Fax +41 71 353 8907

E-Mail:<mailto:dh at metrohm.com>

Internet:<http://www.metrohm.com>




  • Prev by Date: Re: How to programmatically rewrite (x + y/z) as (xz+ y)/z ?
  • Next by Date: Re: Soundnote, musical instruments playing at arbitrary pitch
  • Previous by thread: Re: How to programmatically rewrite (x + y/z) as (xz+ y)/z ?
  • Next by thread: Re: How to programmatically rewrite (x + y/z) as (xz+ y)/z ?