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.Tue, 14 Aug 2012 05:18:45 -0500Visual Simplificationhttp://ask.sagemath.org/question/9234/visual-simplification/I want to take:
(adc*omP1*omP2)/omZ1)*(-I*2*Pi+
omZ1)/((-I*2*Pi + omP1)*(-I*2*Pi + omP2))
and have it shown as:
adc omP1 omP2 * (-I 2 Pi + omZ1)
------------- --------------
omZ1 (-I 2 Pi + omP1)(-I 2 Pi + omP2)
The * between, for example, -I and 2 or 2 and Pi can be present, but I would like to see the equation in a more simplified form like the second case. I would even like to enter it in this way or at least have a way to convert.
Tue, 14 Aug 2012 04:21:03 -0500http://ask.sagemath.org/question/9234/visual-simplification/Comment by kcrisman for <p>I want to take:</p>
<pre><code>(adc*omP1*omP2)/omZ1)*(-I*2*Pi+
omZ1)/((-I*2*Pi + omP1)*(-I*2*Pi + omP2))
</code></pre>
<p>and have it shown as:</p>
<pre><code>adc omP1 omP2 * (-I 2 Pi + omZ1)
------------- --------------
omZ1 (-I 2 Pi + omP1)(-I 2 Pi + omP2)
</code></pre>
<p>The * between, for example, -I and 2 or 2 and Pi can be present, but I would like to see the equation in a more simplified form like the second case. I would even like to enter it in this way or at least have a way to convert. </p>
http://ask.sagemath.org/question/9234/visual-simplification/?comment=19229#post-id-19229@gjm - what John did is either to highlight the code area and use the 101010 button to indent it, or just indented it by hand. That's the markup to make this happen, as you can see by clicking "edit".Tue, 14 Aug 2012 05:18:45 -0500http://ask.sagemath.org/question/9234/visual-simplification/?comment=19229#post-id-19229Comment by gjm for <p>I want to take:</p>
<pre><code>(adc*omP1*omP2)/omZ1)*(-I*2*Pi+
omZ1)/((-I*2*Pi + omP1)*(-I*2*Pi + omP2))
</code></pre>
<p>and have it shown as:</p>
<pre><code>adc omP1 omP2 * (-I 2 Pi + omZ1)
------------- --------------
omZ1 (-I 2 Pi + omP1)(-I 2 Pi + omP2)
</code></pre>
<p>The * between, for example, -I and 2 or 2 and Pi can be present, but I would like to see the equation in a more simplified form like the second case. I would even like to enter it in this way or at least have a way to convert. </p>
http://ask.sagemath.org/question/9234/visual-simplification/?comment=19230#post-id-19230well this did not show up right. The first dotted line should separate adc omP1 omP2 which is the numerator and omZ1 which is the denominator and the second dotted line should separate (-I 2 Pi + omZ1) which is the numerator and then (-I 2 Pi + omP1)(-I 2 Pi + omP2) which is the denominator. Tue, 14 Aug 2012 04:24:03 -0500http://ask.sagemath.org/question/9234/visual-simplification/?comment=19230#post-id-19230Answer by calc314 for <p>I want to take:</p>
<pre><code>(adc*omP1*omP2)/omZ1)*(-I*2*Pi+
omZ1)/((-I*2*Pi + omP1)*(-I*2*Pi + omP2))
</code></pre>
<p>and have it shown as:</p>
<pre><code>adc omP1 omP2 * (-I 2 Pi + omZ1)
------------- --------------
omZ1 (-I 2 Pi + omP1)(-I 2 Pi + omP2)
</code></pre>
<p>The * between, for example, -I and 2 or 2 and Pi can be present, but I would like to see the equation in a more simplified form like the second case. I would even like to enter it in this way or at least have a way to convert. </p>
http://ask.sagemath.org/question/9234/visual-simplification/?answer=13920#post-id-13920You can use LaTeX in a text cell for beautiful formatting. Often, you can get similar formatting in the notebook without LaTeX by using the `show` command. For example, try:
var('x y z')
show(x*y/(x+3*z))Tue, 14 Aug 2012 04:35:28 -0500http://ask.sagemath.org/question/9234/visual-simplification/?answer=13920#post-id-13920