What is the LaTeX code for this mathematical expression?











up vote
5
down vote

favorite












enter image description here



What is the LaTeX code for this image? Please help!










share|improve this question




















  • 10




    Possible duplicate of Image equation to TeX
    – Henri Menke
    Dec 3 at 9:00















up vote
5
down vote

favorite












enter image description here



What is the LaTeX code for this image? Please help!










share|improve this question




















  • 10




    Possible duplicate of Image equation to TeX
    – Henri Menke
    Dec 3 at 9:00













up vote
5
down vote

favorite









up vote
5
down vote

favorite











enter image description here



What is the LaTeX code for this image? Please help!










share|improve this question















enter image description here



What is the LaTeX code for this image? Please help!







math-mode






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 3 at 9:04









JouleV

1,809425




1,809425










asked Dec 3 at 7:14









Harish Chandran

343




343








  • 10




    Possible duplicate of Image equation to TeX
    – Henri Menke
    Dec 3 at 9:00














  • 10




    Possible duplicate of Image equation to TeX
    – Henri Menke
    Dec 3 at 9:00








10




10




Possible duplicate of Image equation to TeX
– Henri Menke
Dec 3 at 9:00




Possible duplicate of Image equation to TeX
– Henri Menke
Dec 3 at 9:00










3 Answers
3






active

oldest

votes

















up vote
17
down vote



accepted










Welcome to TeX.SX! This is a simple answer, however, you should check the commands and packages specifically for the addition / multiplication / etc. on TeX.SX.



documentclass{article}
begin{document}
[
begin{array}{rr}
A & B \
+ 3 & 7 \
hline
9 & A
end{array}
]
end{document}


enter image description here






share|improve this answer



















  • 1




    thank you for the code
    – Harish Chandran
    Dec 3 at 8:01






  • 1




    (+1) for using the delimeters ;)
    – Raaja
    Dec 3 at 9:45






  • 1




    In the original question, the $A B$ in the first line were right of the other two lines. I suspect (supported by the acceptance) that was not required. +1.
    – Ross Millikan
    Dec 4 at 4:30










  • @Raaja: presumably the delimiters you mention are the square brackets. I haven't seen them. What do they do?
    – Ross Millikan
    Dec 4 at 4:31










  • @RossMillikan Well, here what I mean by delimeter is that using a \ instead of a not-so-nice tab space using &.
    – Raaja
    Dec 4 at 6:49




















up vote
5
down vote













I would do:



documentclass{article}
begin{document}
begin{center}renewcommand{tabcolsep}{.3ex}renewcommand{arraystretch}{.9}
begin{tabular}{ccc}&$A$&$B$\ +&$3$&$7$\ hline&$9$&$A$
end{tabular}end{center}
end{document}





share|improve this answer





















  • thank you for the response
    – Harish Chandran
    Dec 3 at 8:02


















up vote
4
down vote













Another approach with xlop:



mwe



documentclass[12pt]{article}
usepackage{xlop}
begin{document}
oplput(1,2){A}oplput(2,2){B}
oplput(0,1.5){$+$}
oplput(1,1){3}oplput(2,1){7}
ophline(0,0.8){4}
oplput(1,0){9}oplput(2,0){A}
end{document}


To show also the solution you only need add some like vspace{1em}opadd{59}{37}






share|improve this answer























  • I think 58+37=95 is the solution of the addition, not 59+37 :)
    – JouleV
    Dec 3 at 13:23










  • @DũngVũ With or without taking the last carry? Because then A=5+1 and 59+37 is correct ... Ok, it was just messing, really it was only a typo... ;)
    – Fran
    Dec 3 at 14:27













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462931%2fwhat-is-the-latex-code-for-this-mathematical-expression%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
17
down vote



accepted










Welcome to TeX.SX! This is a simple answer, however, you should check the commands and packages specifically for the addition / multiplication / etc. on TeX.SX.



documentclass{article}
begin{document}
[
begin{array}{rr}
A & B \
+ 3 & 7 \
hline
9 & A
end{array}
]
end{document}


enter image description here






share|improve this answer



















  • 1




    thank you for the code
    – Harish Chandran
    Dec 3 at 8:01






  • 1




    (+1) for using the delimeters ;)
    – Raaja
    Dec 3 at 9:45






  • 1




    In the original question, the $A B$ in the first line were right of the other two lines. I suspect (supported by the acceptance) that was not required. +1.
    – Ross Millikan
    Dec 4 at 4:30










  • @Raaja: presumably the delimiters you mention are the square brackets. I haven't seen them. What do they do?
    – Ross Millikan
    Dec 4 at 4:31










  • @RossMillikan Well, here what I mean by delimeter is that using a \ instead of a not-so-nice tab space using &.
    – Raaja
    Dec 4 at 6:49

















up vote
17
down vote



accepted










Welcome to TeX.SX! This is a simple answer, however, you should check the commands and packages specifically for the addition / multiplication / etc. on TeX.SX.



documentclass{article}
begin{document}
[
begin{array}{rr}
A & B \
+ 3 & 7 \
hline
9 & A
end{array}
]
end{document}


enter image description here






share|improve this answer



















  • 1




    thank you for the code
    – Harish Chandran
    Dec 3 at 8:01






  • 1




    (+1) for using the delimeters ;)
    – Raaja
    Dec 3 at 9:45






  • 1




    In the original question, the $A B$ in the first line were right of the other two lines. I suspect (supported by the acceptance) that was not required. +1.
    – Ross Millikan
    Dec 4 at 4:30










  • @Raaja: presumably the delimiters you mention are the square brackets. I haven't seen them. What do they do?
    – Ross Millikan
    Dec 4 at 4:31










  • @RossMillikan Well, here what I mean by delimeter is that using a \ instead of a not-so-nice tab space using &.
    – Raaja
    Dec 4 at 6:49















up vote
17
down vote



accepted







up vote
17
down vote



accepted






Welcome to TeX.SX! This is a simple answer, however, you should check the commands and packages specifically for the addition / multiplication / etc. on TeX.SX.



documentclass{article}
begin{document}
[
begin{array}{rr}
A & B \
+ 3 & 7 \
hline
9 & A
end{array}
]
end{document}


enter image description here






share|improve this answer














Welcome to TeX.SX! This is a simple answer, however, you should check the commands and packages specifically for the addition / multiplication / etc. on TeX.SX.



documentclass{article}
begin{document}
[
begin{array}{rr}
A & B \
+ 3 & 7 \
hline
9 & A
end{array}
]
end{document}


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 3 at 9:59

























answered Dec 3 at 7:24









JouleV

1,809425




1,809425








  • 1




    thank you for the code
    – Harish Chandran
    Dec 3 at 8:01






  • 1




    (+1) for using the delimeters ;)
    – Raaja
    Dec 3 at 9:45






  • 1




    In the original question, the $A B$ in the first line were right of the other two lines. I suspect (supported by the acceptance) that was not required. +1.
    – Ross Millikan
    Dec 4 at 4:30










  • @Raaja: presumably the delimiters you mention are the square brackets. I haven't seen them. What do they do?
    – Ross Millikan
    Dec 4 at 4:31










  • @RossMillikan Well, here what I mean by delimeter is that using a \ instead of a not-so-nice tab space using &.
    – Raaja
    Dec 4 at 6:49
















  • 1




    thank you for the code
    – Harish Chandran
    Dec 3 at 8:01






  • 1




    (+1) for using the delimeters ;)
    – Raaja
    Dec 3 at 9:45






  • 1




    In the original question, the $A B$ in the first line were right of the other two lines. I suspect (supported by the acceptance) that was not required. +1.
    – Ross Millikan
    Dec 4 at 4:30










  • @Raaja: presumably the delimiters you mention are the square brackets. I haven't seen them. What do they do?
    – Ross Millikan
    Dec 4 at 4:31










  • @RossMillikan Well, here what I mean by delimeter is that using a \ instead of a not-so-nice tab space using &.
    – Raaja
    Dec 4 at 6:49










1




1




thank you for the code
– Harish Chandran
Dec 3 at 8:01




thank you for the code
– Harish Chandran
Dec 3 at 8:01




1




1




(+1) for using the delimeters ;)
– Raaja
Dec 3 at 9:45




(+1) for using the delimeters ;)
– Raaja
Dec 3 at 9:45




1




1




In the original question, the $A B$ in the first line were right of the other two lines. I suspect (supported by the acceptance) that was not required. +1.
– Ross Millikan
Dec 4 at 4:30




In the original question, the $A B$ in the first line were right of the other two lines. I suspect (supported by the acceptance) that was not required. +1.
– Ross Millikan
Dec 4 at 4:30












@Raaja: presumably the delimiters you mention are the square brackets. I haven't seen them. What do they do?
– Ross Millikan
Dec 4 at 4:31




@Raaja: presumably the delimiters you mention are the square brackets. I haven't seen them. What do they do?
– Ross Millikan
Dec 4 at 4:31












@RossMillikan Well, here what I mean by delimeter is that using a \ instead of a not-so-nice tab space using &.
– Raaja
Dec 4 at 6:49






@RossMillikan Well, here what I mean by delimeter is that using a \ instead of a not-so-nice tab space using &.
– Raaja
Dec 4 at 6:49












up vote
5
down vote













I would do:



documentclass{article}
begin{document}
begin{center}renewcommand{tabcolsep}{.3ex}renewcommand{arraystretch}{.9}
begin{tabular}{ccc}&$A$&$B$\ +&$3$&$7$\ hline&$9$&$A$
end{tabular}end{center}
end{document}





share|improve this answer





















  • thank you for the response
    – Harish Chandran
    Dec 3 at 8:02















up vote
5
down vote













I would do:



documentclass{article}
begin{document}
begin{center}renewcommand{tabcolsep}{.3ex}renewcommand{arraystretch}{.9}
begin{tabular}{ccc}&$A$&$B$\ +&$3$&$7$\ hline&$9$&$A$
end{tabular}end{center}
end{document}





share|improve this answer





















  • thank you for the response
    – Harish Chandran
    Dec 3 at 8:02













up vote
5
down vote










up vote
5
down vote









I would do:



documentclass{article}
begin{document}
begin{center}renewcommand{tabcolsep}{.3ex}renewcommand{arraystretch}{.9}
begin{tabular}{ccc}&$A$&$B$\ +&$3$&$7$\ hline&$9$&$A$
end{tabular}end{center}
end{document}





share|improve this answer












I would do:



documentclass{article}
begin{document}
begin{center}renewcommand{tabcolsep}{.3ex}renewcommand{arraystretch}{.9}
begin{tabular}{ccc}&$A$&$B$\ +&$3$&$7$\ hline&$9$&$A$
end{tabular}end{center}
end{document}






share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 3 at 7:30









José Carlos Santos

6791217




6791217












  • thank you for the response
    – Harish Chandran
    Dec 3 at 8:02


















  • thank you for the response
    – Harish Chandran
    Dec 3 at 8:02
















thank you for the response
– Harish Chandran
Dec 3 at 8:02




thank you for the response
– Harish Chandran
Dec 3 at 8:02










up vote
4
down vote













Another approach with xlop:



mwe



documentclass[12pt]{article}
usepackage{xlop}
begin{document}
oplput(1,2){A}oplput(2,2){B}
oplput(0,1.5){$+$}
oplput(1,1){3}oplput(2,1){7}
ophline(0,0.8){4}
oplput(1,0){9}oplput(2,0){A}
end{document}


To show also the solution you only need add some like vspace{1em}opadd{59}{37}






share|improve this answer























  • I think 58+37=95 is the solution of the addition, not 59+37 :)
    – JouleV
    Dec 3 at 13:23










  • @DũngVũ With or without taking the last carry? Because then A=5+1 and 59+37 is correct ... Ok, it was just messing, really it was only a typo... ;)
    – Fran
    Dec 3 at 14:27

















up vote
4
down vote













Another approach with xlop:



mwe



documentclass[12pt]{article}
usepackage{xlop}
begin{document}
oplput(1,2){A}oplput(2,2){B}
oplput(0,1.5){$+$}
oplput(1,1){3}oplput(2,1){7}
ophline(0,0.8){4}
oplput(1,0){9}oplput(2,0){A}
end{document}


To show also the solution you only need add some like vspace{1em}opadd{59}{37}






share|improve this answer























  • I think 58+37=95 is the solution of the addition, not 59+37 :)
    – JouleV
    Dec 3 at 13:23










  • @DũngVũ With or without taking the last carry? Because then A=5+1 and 59+37 is correct ... Ok, it was just messing, really it was only a typo... ;)
    – Fran
    Dec 3 at 14:27















up vote
4
down vote










up vote
4
down vote









Another approach with xlop:



mwe



documentclass[12pt]{article}
usepackage{xlop}
begin{document}
oplput(1,2){A}oplput(2,2){B}
oplput(0,1.5){$+$}
oplput(1,1){3}oplput(2,1){7}
ophline(0,0.8){4}
oplput(1,0){9}oplput(2,0){A}
end{document}


To show also the solution you only need add some like vspace{1em}opadd{59}{37}






share|improve this answer














Another approach with xlop:



mwe



documentclass[12pt]{article}
usepackage{xlop}
begin{document}
oplput(1,2){A}oplput(2,2){B}
oplput(0,1.5){$+$}
oplput(1,1){3}oplput(2,1){7}
ophline(0,0.8){4}
oplput(1,0){9}oplput(2,0){A}
end{document}


To show also the solution you only need add some like vspace{1em}opadd{59}{37}







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 3 at 10:16

























answered Dec 3 at 9:34









Fran

50.8k6112175




50.8k6112175












  • I think 58+37=95 is the solution of the addition, not 59+37 :)
    – JouleV
    Dec 3 at 13:23










  • @DũngVũ With or without taking the last carry? Because then A=5+1 and 59+37 is correct ... Ok, it was just messing, really it was only a typo... ;)
    – Fran
    Dec 3 at 14:27




















  • I think 58+37=95 is the solution of the addition, not 59+37 :)
    – JouleV
    Dec 3 at 13:23










  • @DũngVũ With or without taking the last carry? Because then A=5+1 and 59+37 is correct ... Ok, it was just messing, really it was only a typo... ;)
    – Fran
    Dec 3 at 14:27


















I think 58+37=95 is the solution of the addition, not 59+37 :)
– JouleV
Dec 3 at 13:23




I think 58+37=95 is the solution of the addition, not 59+37 :)
– JouleV
Dec 3 at 13:23












@DũngVũ With or without taking the last carry? Because then A=5+1 and 59+37 is correct ... Ok, it was just messing, really it was only a typo... ;)
– Fran
Dec 3 at 14:27






@DũngVũ With or without taking the last carry? Because then A=5+1 and 59+37 is correct ... Ok, it was just messing, really it was only a typo... ;)
– Fran
Dec 3 at 14:27




















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462931%2fwhat-is-the-latex-code-for-this-mathematical-expression%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

"Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

Alcedinidae

Origin of the phrase “under your belt”?