ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 29 Nov 2012 06:23:46 +0100Why simplify does not simplify this expression ?https://ask.sagemath.org/question/9548/why-simplify-does-not-simplify-this-expression/ Q, Gamma, omega0 = var( 'Q', 'Gamma', 'omega0')
u = (Q * omega0 + Gamma) / Q
simplify(u)
The output is:
$$\omega = \frac{Q \omega_0 + \Gamma}{Q}$$
Instead of:
$$\omega = \omega_0 + \frac{\Gamma}{Q}$$Thu, 29 Nov 2012 05:42:50 +0100https://ask.sagemath.org/question/9548/why-simplify-does-not-simplify-this-expression/Answer by Mark for <pre><code>Q, Gamma, omega0 = var( 'Q', 'Gamma', 'omega0')
u = (Q * omega0 + Gamma) / Q
simplify(u)
</code></pre>
<p>The output is:
$$\omega = \frac{Q \omega_0 + \Gamma}{Q}$$</p>
<p>Instead of:
$$\omega = \omega_0 + \frac{\Gamma}{Q}$$</p>
https://ask.sagemath.org/question/9548/why-simplify-does-not-simplify-this-expression/?answer=14324#post-id-14324 1. 'simple' is a matter of definition
(or taste)
2. even in cases where it is
rather obvious what the 'simple'
answer would be, sage will frequently not live up to that ...
[see this
one](http://ask.sagemath.org/question/851/full-simplify-sage-vs-mathematica)
anyway, I guess what you want is
u.expand()Thu, 29 Nov 2012 06:23:46 +0100https://ask.sagemath.org/question/9548/why-simplify-does-not-simplify-this-expression/?answer=14324#post-id-14324