Jump to content

Help:Using LaTeX: Difference between revisions

From mintOC
m New page: Using [http://en.wikipedia.org/wiki/LaTeX LaTeX] to render mathematical formulas is straightforward. Include your LaTeX code within the ''math'' environment, such as <source lang="text"> <...
 
m Using LaTeX moved to Help:Using LaTeX: Consistent use of namespaces
 
(One intermediate revision by the same user not shown)
Line 25: Line 25:
\end{array}  
\end{array}  
</math>
</math>
[[Category:Help]]

Latest revision as of 21:07, 31 October 2008

Using LaTeX to render mathematical formulas is straightforward. Include your LaTeX code within the math environment, such as

<math>
\begin{array}{llcl}
 \displaystyle \min_{x, w} & x_2(t_f)   \\[1.5ex]
 \mbox{s.t.} & \dot{x}_0(t) & = & x_0(t) - x_0(t) x_1(t) - \; c_0 x_0(t) \; w(t), \\
 & \dot{x}_1(t) & = & - x_1(t) + x_0(t) x_1(t) - \; c_1 x_1(t) \; w(t),  \\
 & \dot{x}_2(t) & = & (x_0(t) - 1)^2 + (x_1(t) - 1)^2,  \\[1.5ex]
 & x(0) &=& x_0, \\
 & w(t) &\in&  \{0, 1\}.
\end{array} 
</math>

to obtain

minx,wx2(tf)s.t.x˙0(t)=x0(t)x0(t)x1(t)c0x0(t)w(t),x˙1(t)=x1(t)+x0(t)x1(t)c1x1(t)w(t),x˙2(t)=(x0(t)1)2+(x1(t)1)2,x(0)=x0,w(t){0,1}.