MathGroup Archive 2006

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

Search the Archive

Re: Is mathematica able to transform formula


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


  • Prev by Date: Re: Ask Mathematica to sub for a long expression
  • Next by Date: RE: Is mathematica able to transform formula
  • Previous by thread: RE: Is mathematica able to transform formula
  • Next by thread: RE: Is mathematica able to transform formula