Graphics, Figures & Tables ⇒ Function by parts help
Function by parts help
I'm trying to write a function by parts but when I write everything and compile a (1) appears at the right side and I don't know why. Could someone help me?
- Attachments
-
- dfg.jpg (64.09 KiB) Viewed 4892 times
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Function by parts help
Welcome,
you are using an equation environment, which differs from a usual displayed environment in just one point: It adds the number of the current equation on the right side.
Use
By the way, using the
Hint: Paste the code as text in your post, i can't copy from an image and typing costs quite some time.
you are using an equation environment, which differs from a usual displayed environment in just one point: It adds the number of the current equation on the right side.
Use
\[ your math here \]
instead.By the way, using the
cases
environment seems to be a good idea.Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage{mathtools}\usepackage{blindtext}\begin{document}\blindtext\[ f(x) =\begin{cases}x^{3} + 3x^{2} + 2x + 1 & x < 0 \\\frac{1}{x+1} & 0 \le x\end{cases}\]\blindtext\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.
Re: Function by parts help
It worked. Thanks!!
Re: Function by parts help
Eq(1)=> Daily average load =No. of units (kWh) generated in a day/24 hours
Eq(2)=> E=mC^2
where E=Energy
m=mass
C= velocity of light
How can I write this above two equations in this template.
Eq(2)=> E=mC^2
where E=Energy
m=mass
C= velocity of light
How can I write this above two equations in this template.
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Function by parts help
Hi hafizur,
how is your question related to this topic, function by parts, cases environment with a brace?
Where is the problem? A symbol, alignment, ... ?
Better open a new topic for each of your own question. This topic here is clearly marked as solved, so I guess not many users read again here to see your new question below.
Stefan
how is your question related to this topic, function by parts, cases environment with a brace?
Where is the problem? A symbol, alignment, ... ?
Better open a new topic for each of your own question. This topic here is clearly marked as solved, so I guess not many users read again here to see your new question below.
Stefan
LaTeX.org admin
Re: Function by parts help
I know that but this is very important for me that's why I asked here. Thanks for your suggestion.