0
$\begingroup$

I have an expression that FullSimplify currently prefers to simplify with variables that have exponents appearing in the denominator if they have negative exponents, whereas I'd prefer that the expressions appear in the numerator, i.e. I'd prefer 1234 x^(-3) whereas FullSimplify prefers 1234 / (x^3).

Any way to tell FullSimplify to prefer the first form?

$\endgroup$
  • $\begingroup$ If you evaluate 1234 x^(-3), the result has Fullform Times[1234,Power[x,-3]] which displays as 1234/x^3. $\endgroup$ – bill s Dec 22 '15 at 21:38
  • $\begingroup$ I'm not sure I understand your comment, I don't want the form of 1234/x^3, I want 1234 x^(-3). $\endgroup$ – Guillochon Dec 22 '15 at 21:40
  • 1
    $\begingroup$ The point that @bills is making is that even if Mathematica represents the quantity as x^(-3) internally, it displays as 1/x^3, so using something like FullSimplify won't work. If all you care about is getting something to display in that way, then going with something like eldo's answer might be what you want. $\endgroup$ – march Dec 23 '15 at 0:14
  • $\begingroup$ @Guillochon, just to hold it 1234 x^Defer@(-3) $\endgroup$ – garej Dec 23 '15 at 8:20
3
$\begingroup$

You could do

res = Inactivate[Sin[y] x^(-2), Power]

enter image description here

add = res + 10

enter image description here

Activate@add

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.