The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Making (a*\[Theta]11)/(1+a^2) into (a/(1+a^2))*\[Theta]11
Replies: 1   Last Post: Jun 26, 2013 12:59 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
David Park

Posts: 1,560
Registered: 5/19/07
Re: Making (a*\[Theta]11)/(1+a^2) into (a/(1+a^2))*\[Theta]11
Posted: Jun 26, 2013 12:59 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

You have to use something like HoldForm and this may or may not interfere
with further calculation.

You could use:

a \[Theta]11/(1 + a^2);
% /. (r = Coefficient[%, \[Theta]11]) :>
HoldForm @@ {r} // TraditionalForm

a/(1+a^2) \[Theta]11

The TraditionalForm is necessary to get the desired order of the two

With the Presentations Application you could use:


a \[Theta]11/(1 + a^2) //
MapLevelParts[HoldForm, {{1, 2}}] // TraditionalForm

a/(1+a^2) \[Theta]11

And I'm sure you'll get a number of other answers.

David Park

From: PiMan []

Hi, I have a formatting question.

In the output of an equation I am getting the term (a*\[Theta]11)/(1+a^2).
However, \[Theta]11 is the variable of interest here, and I would like the
term to be written as as a coefficient times \[Theta]11 and not include
\[Theta]11 in the ratio. That is, I would like the output to read
(a/(1+a^2))*\[Theta]11 instead. Does anyone have an idea of how I might be
able to do this? Thanks.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.