Math & ScienceMatrix Equation Number

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
mppxtylr
Posts: 5
Joined: Mon Mar 14, 2011 9:13 am

Matrix Equation Number

Post by mppxtylr »

Hi there,

I have the following matrix:

Code: Select all

\begin{displaymath}
	\begin{bmatrix}
		V_a \\
		V_b \\
		V_c 
	\end{bmatrix}=\begin{bmatrix}
		1 & 1 & 1 \\
		1 & a^2 & a  \\
		1 & a & a^2
	\end{bmatrix}
	\begin{bmatrix}
		V_{a0} \\
		V_{b0} \\
		V_{c0}
	\end{bmatrix}\,
\label{eq:symmetrical}
\end{displaymath}
Is there a way to give it an equation number that shows to the right in brackets, eg. (1)

Thanks in advance!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
vicen
Posts: 4
Joined: Thu Nov 18, 2010 8:52 pm

Matrix Equation Number

Post by vicen »

With

Code: Select all

\numberwithin{equation}{section}
or correspondingly

Code: Select all

\numberwithin{equation}{section} %sets equation numbers <chapter>.<section>.<index>
\numberwithin{equation}{subsection} %sets equation numbers <chapter>.<section>.<subsection>.<index>
\numberwithin{equation}{subsubsection} %sets equation numbers <chapter>.<section>.<subsection>.<subsubsection>.<index>
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Matrix Equation Number

Post by localghost »

mppxtylr wrote:[…] I have the following matrix […] Is there a way to give it an equation number that shows to the right in brackets, eg. (1) […]
Replace displaymath with equation to get numbered math formulas. Numbering will depend on the used document class.


Best regards and welcome to the board
Thorsten
mppxtylr
Posts: 5
Joined: Mon Mar 14, 2011 9:13 am

Re: Matrix Equation Number

Post by mppxtylr »

Thank you! Worked perfectly.
Post Reply