LaTeX forum ⇒ Math & Scienceadding tabular in equation/math enviroment

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
afa0011
Posts: 6
Joined: Mon Sep 24, 2018 6:18 pm

adding tabular in equation/math enviroment

Postby afa0011 » Sun Nov 04, 2018 5:58 pm

can you help me fith the following expression please ?

\begin{equation}
F=\left\lbrace
\begin{tabular}{ll}
$F_{app}\mu_{k}\sin (v) $ & $if \quad v>0$, \\
$ F_{app}$ & if$ \quad v=0 \quad and \quad F_{app}\leq F_{app} \mu_{s}$,
\end{tabular}
\right
%\label{RRRR}
\end{equation}

User avatar
Stefan Kottwitz
Site Admin
Posts: 9164
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Mon Nov 05, 2018 1:04 am

Hi!

There's a math equivalent to tabular, it's array. Here is how I would do it:

  1. \documentclass{article}
  2. \usepackage{amsmath}
  3. \DeclareMathOperator\app{app}
  4. \begin{document}
  5. \begin{equation}
  6. F = \left\lbrace
  7. \begin{array}{ll}
  8. F_{\app} \, \mu_{k} \sin(v) & \text{ if } v > 0, \\
  9. F_{\app} & \text{ if } v = 0
  10. \text{ and } F_{\app}\leq F_{\app} \, \mu_{s}
  11. \end{array}
  12. \right.
  13. %\label{RRRR}
  14. \end{equation}
  15. \end{document}


I defined an operator, since it that index looks like an operator (that's usually written in upright shape) and not like a product of a, p, and p. Furthermore, I treated text (if, and) as text. What do you think?

equation.png
equation.png (9.99 KiB) Viewed 146 times


Stefan
Site admin

mas
Posts: 214
Joined: Thu Dec 04, 2008 4:39 am

Postby mas » Mon Nov 05, 2018 4:00 am

Just a small change to Stefan's answer. I suggest the use of {cases} for typesetting the equation. Here is the code:
  1. \documentclass{article}
  2. \usepackage{amsmath}
  3. \DeclareMathOperator\app{app}
  4. \begin{document}
  5. \begin{equation}
  6. F =
  7. \begin{cases}
  8. F_{\app} \, \mu_{k} \sin(v) & \text{ if } v > 0, \\
  9. F_{\app} & \text{ if } v = 0
  10. \text{ and } F_{\app}\leq F_{\app} \, \mu_{s}
  11. \end{cases}
  12. %\label{RRRR}
  13. \end{equation}
  14. \end{document}

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 0 guests