## LaTeX forum ⇒ Math & Science ⇒ wrong output Topic is solved

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
mahbube
Posts: 5
Joined: Tue Sep 07, 2021 12:29 am

### wrong output

My code isn't working and I don't know why?

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\dfrac{c[(1-p)^{\frac{-1}{c}}-1]}{p\left[c{(1-p^{\frac{-1}{c}-1}+1\right]}$
\end{document}

Attachments
Captureeere.PNG (3.06 KiB) Viewed 3309 times
Last edited by Stefan Kottwitz on Wed Sep 08, 2021 3:12 pm, edited 4 times in total.
Reason: document frame and amsmath added

LaTeXguide.org • LaTeX-Cookbook.net

Bartman
Posts: 306
Joined: Fri Jan 03, 2020 2:39 pm

### wrong output  Topic is solved

A right brace after the \frac command in the denominator is missing to avoid an error message and to approximate the output in the figure.

Stefan Kottwitz
Posts: 9882
Joined: Mon Mar 10, 2008 9:44 pm

### wrong output

It's may be what Bartman said - but you seem to have a brace in the formula picture: to get a curly brace in the output, quote it by a backslash, \{. See and try some code, click the "Run LaTeX here" button:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\dfrac{c[(1-p)^{\frac{-1}{c}}-1]}{p\left[c\{(1-p^{\frac{-1}{c}-1}+1\right]}$
\end{document}

If have an opening brace in a formula, you should have a closing brace. That's for input and for output.

Stefan

mahbube
Posts: 5
Joined: Tue Sep 07, 2021 12:29 am

### wrong output

Stefan Kottwitz wrote:It's may be what Bartman said - but you seem to have a brace in the formula picture: to get a curly brace in the output, quote it by a backslash, \{. See and try some code, click the "Run LaTeX here" button:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\dfrac{c[(1-p)^{\frac{-1}{c}}-1]}{p\left[c\{(1-p^{\frac{-1}{c}-1}+1\right]}$
\end{document}

If have an opening brace in a formula, you should have a closing brace. That's for input and for output.

Stefan

thank you.

### Who is online

Users browsing this forum: No registered users and 4 guests