On 06/17/2012 09:10 PM, someone wrote:
See https://github.com/sympy/sympy/pull/1355.  I didn't check if
aligned equations work or not.
Thanks.

For example this source:

.. math ::
    f(g(w)) &= -\frac{\pi^2 g(w)^4}{16} \\
            &= -\frac{\pi^2 g(\frac{2}{\sqrt{\pi}} \exp\left(\frac{i 
\pi}{4}\right) w^{\frac{1}{4}})^4}{16} \\
            &= -\frac{\pi^2 \frac{2^4}{\sqrt{\pi}^4} \exp\left(\frac{i 
\pi}{4}\right)^4 w^{\frac{1}{4}}^4}{16} \\
            &= -\exp\left(i \pi\right) w \\
            &= w

gives (in the browser):

\begin{split}f(g(w)) &= -\frac{\pi^2 g(w)^4}{16} \\
         &= -\frac{\pi^2 g(\frac{2}{\sqrt{\pi}} \exp\left(\frac{i 
\pi}{4}\right) w^{\frac{1}{4}})^4}{16} \\
         &= -\frac{\pi^2 \frac{2^4}{\sqrt{\pi}^4} \exp\left(\frac{i 
\pi}{4}\right)^4 w^{\frac{1}{4}}^4}{16} \\
         &= -\exp\left(i \pi\right) w \\
         &= w
\end{split}

which does not render as TeX.


This works for me -

.. math::
  :nowrap:

  \begin{align*}
     c &= a+b \\
     c^{2} &= (a+b)^{2} \\
     c^{2} &= a^{2}+ab+ba+b^{2} \\
     a\cdot b &= (c^{2}-a^{2}-b^{2})/2 \in \Re
  \end{align*}

--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to