Re: Is mathematica able to transform formula

*To*: mathgroup at smc.vnet.net*Subject*: [mg71877] Re: Is mathematica able to transform formula*From*: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>*Date*: Sat, 2 Dec 2006 05:10:43 -0500 (EST)*Organization*: The Open University, Milton Keynes, UK*References*: <ekp4gh$28t$1@smc.vnet.net>

ajikoe at gmail.com wrote: > Hello, > > I have a question: > if I have a symbolic expression: > f = a * b + 5 > c = a * b > > Can Mathematica builds f = c + 5 for me ? > > > Sincerely Yours, > pujo > Use transformation rules [1]. For example, f = a * b + 5 c = a * b --> 5 + a*b --> a*b c = . f /. a * b -> c --> 5 + c Regards, Jean-Marc 1. _The Mathematica Book_, /Section 2.5: Transformation Rules and Definitions/, http://documents.wolfram.com/mathematica/book/section-2.5