Page 1 of 4 1234 LastLast
Results 1 to 15 of 56

Math Help - Testing LaTeX 2

  1. #1
    MHF Contributor Mathstud28's Avatar
    Joined
    Mar 2008
    From
    Pennsylvania
    Posts
    3,641

    Testing LaTeX 2

    f(x)={{3x\quad\text{if}~~x>0}\brace{5x\quad\text{i  f}~~x\leq{0}}}

    Does anyone think that is an easier way to do piecwise functions?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Eater of Worlds
    galactus's Avatar
    Joined
    Jul 2006
    From
    Chaneysville, PA
    Posts
    3,001
    Thanks
    1
    That's a nice way. But for piecewise, the norm is usually one left bracket. I mostly do it like so. But I like your way.

    f(z) = \left\{ \begin{array}{rcl}<br />
3x & \mbox{if} & x<3 \\ 5x & \mbox{if} & x\geq {3}<br />
\end{array}\right.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    MHF Contributor Mathstud28's Avatar
    Joined
    Mar 2008
    From
    Pennsylvania
    Posts
    3,641
    Quote Originally Posted by galactus View Post
    That's a nice way. But for piecewise, the norm is usually one left bracket. I mostly do it like so. But I like your way.

    f(z) = \left\{ \begin{array}{rcl}<br />
3x & \mbox{if} & x<3 \\ 5x & \mbox{if} & x\geq {3}<br />
\end{array}\right.
    Thanks Galactus. Does anyone know how to add three elements with this \brace command?

    {x}\brace{{y}\brace{z}}

    Like that but obviously I want the z and y to be the same size as the x, and no brace.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Newbie
    Joined
    Feb 2008
    Posts
    13
     |x| = <br />
\begin{cases}<br />
x, & \mbox{if}~x \ge 0 \\<br />
-x, & \mbox{otherwise}<br />
\end{cases}<br />

    Code:
    |x| = 
    \begin{cases}
    x, & \mbox{if}~x \ge 0 \\
    -x, & \mbox{otherwise}
    \end{cases}
    Neat .
    Follow Math Help Forum on Facebook and Google+

  5. #5
    MHF Contributor Mathstud28's Avatar
    Joined
    Mar 2008
    From
    Pennsylvania
    Posts
    3,641
    Quote Originally Posted by cyph1e View Post
     |x| = <br />
\begin{cases}<br />
x, & \mbox{if}~x \ge 0 \\<br />
-x, & \mbox{otherwise}<br />
\end{cases}<br />

    Code:
    |x| = 
    \begin{cases}
    x, & \mbox{if}~x \ge 0 \\
    -x, & \mbox{otherwise}
    \end{cases}
    Neat .
    I do not suppose that was supposed to be an answer to my question?

    Neat indeed, but I hate having to write all that \mbox stuff
    Follow Math Help Forum on Facebook and Google+

  6. #6
    Newbie Catherine Morland's Avatar
    Joined
    Jul 2008
    Posts
    17
    Quote Originally Posted by Mathstud28 View Post
    {x}\brace{{y}\brace{z}}

    Like that but obviously I want the z and y to be the same size as the x, and no brace.
    Like this?

    \left\{\begin{array}{c}x\\y\\z\end{array}\right\}
    Follow Math Help Forum on Facebook and Google+

  7. #7
    MHF Contributor Mathstud28's Avatar
    Joined
    Mar 2008
    From
    Pennsylvania
    Posts
    3,641
    Quote Originally Posted by Catherine Morland View Post
    Like this?

    \left\{\begin{array}{c}x\\y\\z\end{array}\right\}
    Yes, thank you very much. I know that way, I was just hoping there was an easier way involving the \brace command, thanks again.
    Follow Math Help Forum on Facebook and Google+

  8. #8
    Newbie
    Joined
    Feb 2008
    Posts
    13
    Quote Originally Posted by Mathstud28 View Post
    I do not suppose that was supposed to be an answer to my question?

    Neat indeed, but I hate having to write all that \mbox stuff
    No, it wasn't an answer to your question.

    I was just demonstrating that when using cases you don't need \left{.
    Follow Math Help Forum on Facebook and Google+

  9. #9
    Moo
    Moo is offline
    A Cute Angle Moo's Avatar
    Joined
    Mar 2008
    From
    P(I'm here)=1/3, P(I'm there)=t+1/3
    Posts
    5,618
    Thanks
    6
    \left. \begin{array}{c|c|c|c|c|c} 1 & \tfrac 12 &+& \tfrac 13 &+& \tfrac 16 \\ \hline <br />
3 & \int_0^2 x^2 \, dx &+& \int_0^1 x^3 \; dx &+& \tfrac 13 \int_0^1 x^3 ~dx  \end{array} \right\} \Leftrightarrow \rm{teable.}

    Ou..nice one
    Follow Math Help Forum on Facebook and Google+

  10. #10
    Super Member flyingsquirrel's Avatar
    Joined
    Apr 2008
    Posts
    802
    Few commands that I've just discovered (see [1]) and which can be useful :

    To write text under/over an arrow one can use \xrightarrow[subscript]{superscript} and \xleftarrow[subscript]{superscript}. If the subscript/superscript is too wide the arrow is automatically extended.

    f(x)\xrightarrow[x\to 0]{}42 \text{ and } f(x)\xrightarrow[\text{sometimes}]{} 1<br />

    The command \cfrac{}{} gives continued fractions (to get the same result using \frac{}{} one has to use \displaystyle) :

    \cfrac{1}{1+\cfrac{1}{1+\cfrac{1}{1+\cdots}}}

    To get multiline subscripts and superscripts : \substack{ first line\\ second line\\ third line \\ ... }

    <br />
\theta(n) = \sum_{\substack{ <br />
1\leq i\leq n\\ <br />
1\leq j\leq  i}} i\times j<br />
\text{  and  } f(x,y) \xrightarrow[\substack{x\to 0\\y\to 0}]{} 42

    For those of you who integrate functions of more than four variables :

     \idotsint\limits_{ \mathbb{R}^n}\varphi(x_1,x_2,\ldots,x_n)\,\mathrm{  d}x_1\mathrm{d}x_2\ldots \mathrm{d}x_n

    Edit : To get a small matrix one can use... \begin{smallmatrix}...\end{smallmatrix}. It gives something like this : \begin{smallmatrix} 1 & 2 \\ 3 & 4 \end{smallmatrix}.



    [1] http://pages.usherbrooke.ca/cimel/im...math_guide.pdf (not all the commands given in this file are available on the forum...)
    Last edited by flyingsquirrel; August 27th 2008 at 08:16 AM.
    Follow Math Help Forum on Facebook and Google+

  11. #11
    Newbie
    Joined
    Sep 2008
    Posts
    1
    Just testing for he first time myself, sorry.

    10-(-9.9)}{2}, " alt="\frac{10-(-9.9)}{2}, " />

    \frac{2\pi}{b} =12.5
    Follow Math Help Forum on Facebook and Google+

  12. #12
    Member Jones's Avatar
    Joined
    Apr 2006
    From
    Norway
    Posts
    170
    \Sigma^{n=2}_{k=3}{b}=12.5
    Follow Math Help Forum on Facebook and Google+

  13. #13
    Member Greengoblin's Avatar
    Joined
    Feb 2008
    From
    UK
    Posts
    182
     <br />
\mbox MnO_2<br />
    Follow Math Help Forum on Facebook and Google+

  14. #14
    Member i_zz_y_ill's Avatar
    Joined
    Mar 2008
    Posts
    140

    ?

    [tex]z=(4+\sqrt15)^1/3 +(4-\sqrt15)^1/3[tex]
    Follow Math Help Forum on Facebook and Google+

  15. #15
    Member i_zz_y_ill's Avatar
    Joined
    Mar 2008
    Posts
    140

    testeing

    z=(4+\sqrt15)^1/3
    Follow Math Help Forum on Facebook and Google+

Page 1 of 4 1234 LastLast

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