MAE equation in latex
up vote
0
down vote
favorite
1
begin{equation} label{equ:mae}
begin{tabulary} {18cm}{L R @{} >{${}}c<{{}$} @{} L}
& MAE &= &$displaystylefrac{1}{n}sum_{i=1}^{n}|p_i-r_i|$ \
end{tabulary}
end{equation}
I have error in the equation number that comes next to the equation
equations
add a comment |
up vote
0
down vote
favorite
1
begin{equation} label{equ:mae}
begin{tabulary} {18cm}{L R @{} >{${}}c<{{}$} @{} L}
& MAE &= &$displaystylefrac{1}{n}sum_{i=1}^{n}|p_i-r_i|$ \
end{tabulary}
end{equation}
I have error in the equation number that comes next to the equation
equations
1
Welcome to TeX.SX! Can you please expand the code snippet that you have posted to a full minimal working example. It is much easier to help you if we can start with some compilable code that illustrates your problem. A MWE should start with adocumentclasscommand, include any necessary packages and be as small as possible to demonstrate your problem. You can highlight code in your post using back-ticks. To highlight code-blocks, either indent them by four spaces or use the{}on the gui.
– Andrew
Nov 19 at 22:38
BTW, your code compiles fine for me. Do you haveusepackage{tabulary}in your preamble? Also, I would not usetabularyhere anyway and would instead usebegin{equation} label{equ:mae} textrm{MAE} = frac{1}{n}sum_{i=1}^{n}|p_i-r_i| end{equation}.
– Andrew
Nov 19 at 22:40
1
Just out of idle curiosity, why don't you writebegin{equation} label{equ:mae} mathrm{MAE} = frac{1}{n}sum_{i=1}^{n}|p_i-r_i| end{equation}? Put differently, what's the (typographic) purpose of encasing the equation in atabularyenvironment? And why is the width of thetabularyenvironment set to18cm?
– Mico
Nov 19 at 22:43
3
why are you using tabulary here? (or any table at all) You just have a single single line equation
– David Carlisle
Nov 19 at 22:45
add a comment |
up vote
0
down vote
favorite
1
up vote
0
down vote
favorite
1
1
begin{equation} label{equ:mae}
begin{tabulary} {18cm}{L R @{} >{${}}c<{{}$} @{} L}
& MAE &= &$displaystylefrac{1}{n}sum_{i=1}^{n}|p_i-r_i|$ \
end{tabulary}
end{equation}
I have error in the equation number that comes next to the equation
equations
begin{equation} label{equ:mae}
begin{tabulary} {18cm}{L R @{} >{${}}c<{{}$} @{} L}
& MAE &= &$displaystylefrac{1}{n}sum_{i=1}^{n}|p_i-r_i|$ \
end{tabulary}
end{equation}
I have error in the equation number that comes next to the equation
equations
equations
edited Nov 19 at 22:46
David Carlisle
477k3811061841
477k3811061841
asked Nov 19 at 22:34
G.alshammari
202
202
1
Welcome to TeX.SX! Can you please expand the code snippet that you have posted to a full minimal working example. It is much easier to help you if we can start with some compilable code that illustrates your problem. A MWE should start with adocumentclasscommand, include any necessary packages and be as small as possible to demonstrate your problem. You can highlight code in your post using back-ticks. To highlight code-blocks, either indent them by four spaces or use the{}on the gui.
– Andrew
Nov 19 at 22:38
BTW, your code compiles fine for me. Do you haveusepackage{tabulary}in your preamble? Also, I would not usetabularyhere anyway and would instead usebegin{equation} label{equ:mae} textrm{MAE} = frac{1}{n}sum_{i=1}^{n}|p_i-r_i| end{equation}.
– Andrew
Nov 19 at 22:40
1
Just out of idle curiosity, why don't you writebegin{equation} label{equ:mae} mathrm{MAE} = frac{1}{n}sum_{i=1}^{n}|p_i-r_i| end{equation}? Put differently, what's the (typographic) purpose of encasing the equation in atabularyenvironment? And why is the width of thetabularyenvironment set to18cm?
– Mico
Nov 19 at 22:43
3
why are you using tabulary here? (or any table at all) You just have a single single line equation
– David Carlisle
Nov 19 at 22:45
add a comment |
1
Welcome to TeX.SX! Can you please expand the code snippet that you have posted to a full minimal working example. It is much easier to help you if we can start with some compilable code that illustrates your problem. A MWE should start with adocumentclasscommand, include any necessary packages and be as small as possible to demonstrate your problem. You can highlight code in your post using back-ticks. To highlight code-blocks, either indent them by four spaces or use the{}on the gui.
– Andrew
Nov 19 at 22:38
BTW, your code compiles fine for me. Do you haveusepackage{tabulary}in your preamble? Also, I would not usetabularyhere anyway and would instead usebegin{equation} label{equ:mae} textrm{MAE} = frac{1}{n}sum_{i=1}^{n}|p_i-r_i| end{equation}.
– Andrew
Nov 19 at 22:40
1
Just out of idle curiosity, why don't you writebegin{equation} label{equ:mae} mathrm{MAE} = frac{1}{n}sum_{i=1}^{n}|p_i-r_i| end{equation}? Put differently, what's the (typographic) purpose of encasing the equation in atabularyenvironment? And why is the width of thetabularyenvironment set to18cm?
– Mico
Nov 19 at 22:43
3
why are you using tabulary here? (or any table at all) You just have a single single line equation
– David Carlisle
Nov 19 at 22:45
1
1
Welcome to TeX.SX! Can you please expand the code snippet that you have posted to a full minimal working example. It is much easier to help you if we can start with some compilable code that illustrates your problem. A MWE should start with a
documentclass command, include any necessary packages and be as small as possible to demonstrate your problem. You can highlight code in your post using back-ticks. To highlight code-blocks, either indent them by four spaces or use the {} on the gui.– Andrew
Nov 19 at 22:38
Welcome to TeX.SX! Can you please expand the code snippet that you have posted to a full minimal working example. It is much easier to help you if we can start with some compilable code that illustrates your problem. A MWE should start with a
documentclass command, include any necessary packages and be as small as possible to demonstrate your problem. You can highlight code in your post using back-ticks. To highlight code-blocks, either indent them by four spaces or use the {} on the gui.– Andrew
Nov 19 at 22:38
BTW, your code compiles fine for me. Do you have
usepackage{tabulary} in your preamble? Also, I would not use tabulary here anyway and would instead use begin{equation} label{equ:mae} textrm{MAE} = frac{1}{n}sum_{i=1}^{n}|p_i-r_i| end{equation}.– Andrew
Nov 19 at 22:40
BTW, your code compiles fine for me. Do you have
usepackage{tabulary} in your preamble? Also, I would not use tabulary here anyway and would instead use begin{equation} label{equ:mae} textrm{MAE} = frac{1}{n}sum_{i=1}^{n}|p_i-r_i| end{equation}.– Andrew
Nov 19 at 22:40
1
1
Just out of idle curiosity, why don't you write
begin{equation} label{equ:mae} mathrm{MAE} = frac{1}{n}sum_{i=1}^{n}|p_i-r_i| end{equation}? Put differently, what's the (typographic) purpose of encasing the equation in a tabulary environment? And why is the width of the tabulary environment set to 18cm?– Mico
Nov 19 at 22:43
Just out of idle curiosity, why don't you write
begin{equation} label{equ:mae} mathrm{MAE} = frac{1}{n}sum_{i=1}^{n}|p_i-r_i| end{equation}? Put differently, what's the (typographic) purpose of encasing the equation in a tabulary environment? And why is the width of the tabulary environment set to 18cm?– Mico
Nov 19 at 22:43
3
3
why are you using tabulary here? (or any table at all) You just have a single single line equation
– David Carlisle
Nov 19 at 22:45
why are you using tabulary here? (or any table at all) You just have a single single line equation
– David Carlisle
Nov 19 at 22:45
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
draft saved
draft discarded
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f460838%2fmae-equation-in-latex%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Welcome to TeX.SX! Can you please expand the code snippet that you have posted to a full minimal working example. It is much easier to help you if we can start with some compilable code that illustrates your problem. A MWE should start with a
documentclasscommand, include any necessary packages and be as small as possible to demonstrate your problem. You can highlight code in your post using back-ticks. To highlight code-blocks, either indent them by four spaces or use the{}on the gui.– Andrew
Nov 19 at 22:38
BTW, your code compiles fine for me. Do you have
usepackage{tabulary}in your preamble? Also, I would not usetabularyhere anyway and would instead usebegin{equation} label{equ:mae} textrm{MAE} = frac{1}{n}sum_{i=1}^{n}|p_i-r_i| end{equation}.– Andrew
Nov 19 at 22:40
1
Just out of idle curiosity, why don't you write
begin{equation} label{equ:mae} mathrm{MAE} = frac{1}{n}sum_{i=1}^{n}|p_i-r_i| end{equation}? Put differently, what's the (typographic) purpose of encasing the equation in atabularyenvironment? And why is the width of thetabularyenvironment set to18cm?– Mico
Nov 19 at 22:43
3
why are you using tabulary here? (or any table at all) You just have a single single line equation
– David Carlisle
Nov 19 at 22:45