Blame testing/028_formula.c

Packit 1c1d7e
// objective: test the \f$, \f[, \f], \f{, and \f} commands
Packit 1c1d7e
// check: indexpage.xml
Packit 1c1d7e
Packit 1c1d7e
/** @mainpage
Packit 1c1d7e
Here are some formulas:
Packit 1c1d7e
-# The distance between \f$(x_1,y_1)\f$ and \f$(x_2,y_2)\f$ is 
Packit 1c1d7e
  \f$\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}\f$.
Packit 1c1d7e
-# Unnumbered formula:
Packit 1c1d7e
   \f[ |I_2|=\left| \int_{0}^T \psi(t) \left\{ u(a,t)- \int_{\gamma(t)}^a 
Packit 1c1d7e
       \frac{d\theta}{k(\theta,t)} \int_{a}^\theta c(\xi)u_t(\xi,t)\,d\xi \right\} dt \right| \f]
Packit 1c1d7e
-# Formula in different environment
Packit 1c1d7e
  \f{eqnarray*}{ g &=& \frac{Gm_2}{r^2} \\ 
Packit 1c1d7e
                   &=& \frac{(6.673 \times 10^{-11}\,\mbox{m}^3\,\mbox{kg}^{-1}\,
Packit 1c1d7e
                       \mbox{s}^{-2})(5.9736 \times 10^{24}\,\mbox{kg})}{(6371.01\,\mbox{km})^2} \\ 
Packit 1c1d7e
                       &=& 9.82066032\,\mbox{m/s}^2
Packit 1c1d7e
 \f}
Packit 1c1d7e
*/