MathGroup Archive 2010

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

Search the Archive

Easy simplification with Mathematica?


Hi all,

I'm new to symbolic computation.

I have this coming from previous computation:

a + b -2*c

How can I convert that expression, with Mathematica, into:

(a - c) + (b - c) ?


Another example: Given

a*b + a*c - 2*a*d + b*c - 2*b*d - 2*c*d + 3*d^2

How can I convert that expression, with Mathematica, into:

(a-d)*(b-d) + (a-d)*(c-d) + (b-d)*(c-d) ?



Thanks

Fajar


  • Prev by Date: FDTD Code or Example? (2D wave eqn, rect grid, coords x,y,t)
  • Next by Date: Re: Kolmogorov-Smirnov 2-sample test
  • Previous by thread: Re: FDTD Code or Example? (2D wave eqn, rect grid, coords x,y,t)
  • Next by thread: Re: Easy simplification with Mathematica?