ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 28 Nov 2012 23:23:46 -0600Why simplify does not simplify this expression ?http://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}$$Wed, 28 Nov 2012 22:42:50 -0600http://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>
http://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()Wed, 28 Nov 2012 23:23:46 -0600http://ask.sagemath.org/question/9548/why-simplify-does-not-simplify-this-expression/?answer=14324#post-id-14324