Math & Sciencedisplaying cases based formula

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
huu2014
Posts: 6
Joined: Fri Feb 21, 2014 1:45 pm

displaying cases based formula

Post by huu2014 »

Hello,
Good day,
I am writing a cases based formula. However, only the bracket symbol is display, not the whole formula. is there specific latex package for greek letters?

using:
ubuntu 14.04
Latex 2016
RStudio 1.01.

# Latex packages
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{latexsym}

Code: Select all

\[
\begin{cases}
   F(y) =
          \frac{x^{(\lambda)} - 1}{(\lambda)}      $\text{if \lambda \neq 0$;} \\
          \log(x)                                   $\text{if \lambda  \eq 0$}

\end{cases}
\]
Please, can any one give me hint?.

thank you in advance

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

displaying cases based formula

Post by Johannes_B »

I'm not sure, but i thik you want the following?

Code: Select all

\documentclass{article}
\usepackage{mathtools}
\begin{document}
\[
		F(y) =
	\begin{cases}
		\frac{x^{(\lambda)} - 1}{(\lambda)}       &\text{if } \lambda \neq 0; \\
		\log(x)                                   &\text{if } \lambda  =  0
	\end{cases}
\]
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
huu2014
Posts: 6
Joined: Fri Feb 21, 2014 1:45 pm

displaying cases based formula

Post by huu2014 »

Johannes_B,
Thanks a lot. it worked.
Post Reply