Page 4 of 4 FirstFirst 1234
Results 46 to 56 of 56

Math Help - Testing LaTeX 2

  1. #46
    Super Member flyingsquirrel's Avatar
    Joined
    Apr 2008
    Posts
    802

    Aligning symbols

    Code:
    \begin{array}{r@{.}l}
    12341 & 43 \\
          & 99 \\
    23    & 12 \\
    10    & \\
    938   & 01
    \end{array}
    <br />
\begin{array}{r@{.}l}1<br />
2341 & 43\\<br />
 & 99\\<br />
23&12\\<br />
10 & \\<br />
938 & 01<br />
\end{array}<br />

    Code:
    \left\{
    \begin{array}{r@{+}r@{+}r@{=}l}
    u   & (-v) & w       & -1 \\
    3u  &      & (-9)w   & 47 \\
    -2u & 5v   & 3w      & 31
    \end{array}
    \right.
    \left\{<br />
\begin{array}{r@{+}r@{+}r@{=}l}<br />
u    & (-v) & w       & -1\\<br />
3u  &       & (-9)w & 47\\<br />
-2u & 5v   & 3w     & 31<br />
\end{array}<br />
\right.

    Code:
    \left\{
    \begin{array}{r@{\ +\ }r@{\ +\ }r@{\ =\ }l}
    u   & (-v) & w       & -100 \\
    3u  &      & (-9)w   & 47 \\
    -2u & 5v   & 3w      & 31
    \end{array}
    \right.
    \left\{<br />
\begin{array}{r@{\ +\ }r@{\ +\ }r@{\ =\ }l}<br />
u    & (-v) & w       & -100\\<br />
3u  &       & (-9)w & 47\\<br />
-2u & 5v   & 3w     & 31<br />
\end{array}<br />
\right.
    Follow Math Help Forum on Facebook and Google+

  2. #47
    Member
    Joined
    May 2006
    Posts
    244
    I prefer:


    [tex]\left\{\begin{array}{rcrcrcc}
    u &- &v&+ & w & =&-100\\
    3u & & & -&9w &=& 47\\
    -2u &+& 5v &+& 3w &=& 31
    \end{array}
    \right.[/tex]


    \left\{\begin{array}{rcrcrcc}<br />
u &- &v&+ & w & =&-100\\<br />
3u & & &- &9w &=& 47\\<br />
-2u &+& 5v &+& 3w &=& 31<br />
\end{array}<br />
\right.

    (less control of the spacing, but you can have whatever signs you want)

    (Note use of [noparse][/noparse] tags to show LaTeX source, and to show the tags for that matter)

    .
    Follow Math Help Forum on Facebook and Google+

  3. #48
    MHF Contributor
    Opalg's Avatar
    Joined
    Aug 2007
    From
    Leeds, UK
    Posts
    4,041
    Thanks
    7
    Another method is to use the aligned environment, using \phantom to get spaces where required.

    [tex]\begin{aligned}
    u-\phantom{5}v+\phantom{9}w &= -100 \\
    3u \phantom{{}+5v} -9w &= \phantom{-1}47 \\
    -2u+5v+3w &= \phantom{-1}31
    \end{aligned}[/tex]

    \begin{aligned}<br />
u-\phantom{5}v+\phantom{9}w &= -100 \\<br />
3u \phantom{{}+5v} -9w &= \phantom{-1}47 \\<br />
-2u+5v+3w &= \phantom{-1}31<br />
\end{aligned}
    Follow Math Help Forum on Facebook and Google+

  4. #49
    Super Member

    Joined
    May 2006
    From
    Lexington, MA (USA)
    Posts
    11,861
    Thanks
    742

    It's a bit of extra work, but I use \text{-} to shorten the minus signs.



    First I type:

    \begin{pmatrix}1 & -2 \\ -3 &1 \end{pmatrix}

    . . . \begin{pmatrix}1 & -2 \\ -3 &1 \end{pmatrix}



    I preview the result, then I insert the "\text{ }"

    \begin{pmatrix}1 & \text{-}2 \\ \text{-}3 &1 \end{pmatrix}[/tex]

    . . . \begin{pmatrix}1 & \text{-}2 \\ \text{-}3 &1 \end{pmatrix}




    I use it whenever I have negative quantity, rather than a subtraction:

    . . . f(\text{-}1) \;=\;(\text{-}1)^2 - 3(\text{-}1) + 4 \:=\:8

    Follow Math Help Forum on Facebook and Google+

  5. #50
    MHF Contributor Mathstud28's Avatar
    Joined
    Mar 2008
    From
    Pennsylvania
    Posts
    3,641
    \mathbb{H}^n=\left\{\left(\begin{array}{c} x_1\\ x_2\\ \vdots\\ x_n\end{array}\right)\in\mathbb{R}^n:x_n\geqslant 0\right\}

    \partial\mathbb{H}^n\subset\mathbb{H}^n

    \partial\mathbb{H}^n=\left\{\left(\begin{array}{c} x_1\\ x_2\\ \vdots\\ x_n\end{array}\right)\in\mathbb{R}^n:x_n=0\right\}
    Follow Math Help Forum on Facebook and Google+

  6. #51
    MHF Contributor Mathstud28's Avatar
    Joined
    Mar 2008
    From
    Pennsylvania
    Posts
    3,641
    \Downarrow \downarrow \Uparrow \uparrow \leadsto \swarrow \leftrightsquigarrow
    Last edited by Mathstud28; January 7th 2009 at 11:36 PM.
    Follow Math Help Forum on Facebook and Google+

  7. #52
    Member TheMasterMind's Avatar
    Joined
    Dec 2008
    Posts
    155
    it appears based on gravitational attractions there is going to be two tides per day

    now consider this

    height \rightarrow \frac{atidal}{g}<br />

    atidal=\Delta g_{moon}=GM_m \frac{1}{(D_{em}+R_e)^2} - \frac{1}{D^2_{em}}=-\frac{2GM_mR_e}{D^3_{em}}=10^{-7}g

    when D_{em}=3.84 * 10^8 m

    this produces tides about 1m high taking into consideration

    R_e=6.378 * 10^6
    Follow Math Help Forum on Facebook and Google+

  8. #53
    Member Jones's Avatar
    Joined
    Apr 2006
    From
    Norway
    Posts
    170
    How do you mix text and mathematical expressions withing a single [tex] "block" ?
    Follow Math Help Forum on Facebook and Google+

  9. #54
    A riddle wrapped in an enigma
    masters's Avatar
    Joined
    Jan 2008
    From
    Big Stone Gap, Virginia
    Posts
    2,551
    Thanks
    12
    Awards
    1
    Quote Originally Posted by Jones View Post
    How do you mix text and mathematical expressions withing a single [tex] "block" ?
    Text can be embedded in displayed equations (in LaTeX) by using \mbox{embedded text}. For example, one obtains

     M^\bot = \{ f \in V' : f(m) = 0 \mbox{ for all } m \in M \}
    by typing
    M^\bot = \{ f \in V' : f(m) = 0 \mbox{ for all } m \in M \}

    Another example:

    \int_0^{2\pi}\cos(mx)\,dx = 0 \hspace{1cm}\mbox{if and only if} \hspace{1cm} m\ne 0

    by typing:

    \int_0^{2\pi}\cos(mx)\,dx = 0 \hspace{1cm}
    \mbox{if and only if} \hspace{1cm} m\ne 0
    Follow Math Help Forum on Facebook and Google+

  10. #55
    Junior Member
    Joined
    Dec 2008
    Posts
    51
    f(x)=\left\{\begin{array}{cc}\frac{e^x -e^a}{x-a},&\mbox{ if }<br />
x\ne a\\K, & \mbox{ if } x=a\end{array}\right.
    Follow Math Help Forum on Facebook and Google+

  11. #56
    Junior Member
    Joined
    Dec 2008
    Posts
    51
    \limsup
    Follow Math Help Forum on Facebook and Google+

Page 4 of 4 FirstFirst 1234

Similar Math Help Forum Discussions

  1. [SOLVED] testing latex...
    Posted in the Algebra Forum
    Replies: 0
    Last Post: September 12th 2011, 02:01 PM
  2. n00b Testing Latex
    Posted in the LaTeX Help Forum
    Replies: 1
    Last Post: June 28th 2009, 01:19 PM
  3. LaTeX Testing
    Posted in the LaTeX Help Forum
    Replies: 9
    Last Post: July 30th 2008, 11:49 AM
  4. Testing LaTeX
    Posted in the LaTeX Help Forum
    Replies: 100
    Last Post: July 2nd 2008, 11:08 AM
  5. Testing two variances is the same as testing two means?
    Posted in the Advanced Statistics Forum
    Replies: 1
    Last Post: November 13th 2007, 11:38 PM

Search Tags


/mathhelpforum @mathhelpforum