User:Lilylee

From Adobe Open Source Wiki
Jump to: navigation, search
This works:
<math>
\begin{matrix}
 f(x) & = (a+b)^2 \\
      & = a^2+2ab+b^2 \\
\end{matrix}
</math>

<math> \begin{matrix}

f(x) & = (a+b)^2 \\
     & = a^2+2ab+b^2 \\

\end{matrix} </math>

This doesn't work:
<math>
\begin{align}
 f(x) & = (a+b)^2 \\
      & = a^2+2ab+b^2 \\
\end{align}
</math>

<math> \begin{align}

f(x) & = (a+b)^2 \\
     & = a^2+2ab+b^2 \\

\end{align} </math>


This works:
<math>
\begin{matrix}
  z        & = & a \\
  f(x,y,z) & = & x + y + z  
\end{matrix}
</math>
<math>

\begin{matrix}

 z        & = & a \\
 f(x,y,z) & = & x + y + z  

\end{matrix} </math>

This doesn't work:
<math>
\begin{array}{lcl}
  z        & = & a \\
  f(x,y,z) & = & x + y + z  
\end{array}
</math>
<math>

\begin{array}{lcl}

 z        & = & a \\
 f(x,y,z) & = & x + y + z  

\end{array} </math>


This works:
<math>
\begin{matrix}
\log_2(n!) &= &\log_2(n) + &\log_2(n-1) + &\log_2(n-2) + &... + &\log_2(1) \\
&< &\log_2(n) + &\log_2(n) + &\log_2(n) + &... + &\log_2(n) \\
&= &n \log_2(n)
\end{matrix}
</math>
<math>

\begin{matrix} \log_2(n!) &= &\log_2(n) + &\log_2(n-1) + &\log_2(n-2) + &... + &\log_2(1) \\ &< &\log_2(n) + &\log_2(n) + &\log_2(n) + &... + &\log_2(n) \\ &= &n \log_2(n) \end{matrix} </math>

This doesn't work:
<math><code><pre>
\begin{align}
\log_2(n!) &= \log_2(n) + \log_2(n-1) + \log_2(n-2) + ... + \log_2(1) \\
&< \log_2(n) + \log_2(n) + \log_2(n) + ... + \log_2(n) \\
&= n log_2(n)
\end{align}
</math>
<math>

\log_2(n!) &= \log_2(n) + \log_2(n-1) + \log_2(n-2) + ... + \log_2(1) \\ &< \log_2(n) + \log_2(n) + \log_2(n) + ... + \log_2(n) \\ &= n log_2(n) \end{align} </math>

Monkey.JPG