Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2008

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

Search the Archive

Re: Transformations in expressions

  • To: mathgroup at
  • Subject: [mg91915] Re: [mg91874] Transformations in expressions
  • From: Bob Hanlon <hanlonr at>
  • Date: Fri, 12 Sep 2008 05:30:18 -0400 (EDT)
  • Reply-to: hanlonr at

Use ReplaceAll ( /. )

Log[x^2 + y^3]/Sin[x^2 + y^3] /. x^2 + y^3 -> z



Simplify[Log[x^2 + y^3]/Sin[x^2 + y^3], z == x^2 + y^3]

csc(z) log(z)

In both cases, 1/Sin[z] is automatically converted to Csc[z] as a simpler form.

I do not understand your second question.

Bob Hanlon

---- Miguel <misvrne at> wrote: 

Hi all,
How can I to transform a specific expression to other by substitution
of a part of it.

For example, I want to transform the expression Log[x^2+y^3]/
Sin[x^2+y^3] in Log[z]/Sin[z] by substitution x^2+y^3 --> z.

And other question: Is the new expression dependent of z. I see it is,
but how can I to programar it.



Bob Hanlon

  • Prev by Date: Plotting ListDensityPlot with Custom Color Scheme
  • Next by Date: Re: Transformations in expressions
  • Previous by thread: Re: Transformations in expressions
  • Next by thread: Re: Transformations in expressions