Two functions in the same line
documentclass[12pt,a4paper]{report}
usepackage{mathtools, nccmath}
usepackage{amssymb, amsthm, mathrsfs}
begin{document}
begin{align*}
hcolon S(0,1)& rightarrow S^A(0,1)\
x&mapsto frac{x}{|x|_A},
end{align*}
and
begin{align*}
gcolon S^A(0,1)& rightarrow S(0,1)\
y&mapsto frac{y}{|y|},
end{align*}
end{document}

I want to make the two equations in the same line
math-mode
add a comment |
documentclass[12pt,a4paper]{report}
usepackage{mathtools, nccmath}
usepackage{amssymb, amsthm, mathrsfs}
begin{document}
begin{align*}
hcolon S(0,1)& rightarrow S^A(0,1)\
x&mapsto frac{x}{|x|_A},
end{align*}
and
begin{align*}
gcolon S^A(0,1)& rightarrow S(0,1)\
y&mapsto frac{y}{|y|},
end{align*}
end{document}

I want to make the two equations in the same line
math-mode
add a comment |
documentclass[12pt,a4paper]{report}
usepackage{mathtools, nccmath}
usepackage{amssymb, amsthm, mathrsfs}
begin{document}
begin{align*}
hcolon S(0,1)& rightarrow S^A(0,1)\
x&mapsto frac{x}{|x|_A},
end{align*}
and
begin{align*}
gcolon S^A(0,1)& rightarrow S(0,1)\
y&mapsto frac{y}{|y|},
end{align*}
end{document}

I want to make the two equations in the same line
math-mode
documentclass[12pt,a4paper]{report}
usepackage{mathtools, nccmath}
usepackage{amssymb, amsthm, mathrsfs}
begin{document}
begin{align*}
hcolon S(0,1)& rightarrow S^A(0,1)\
x&mapsto frac{x}{|x|_A},
end{align*}
and
begin{align*}
gcolon S^A(0,1)& rightarrow S(0,1)\
y&mapsto frac{y}{|y|},
end{align*}
end{document}

I want to make the two equations in the same line
math-mode
math-mode
edited 9 hours ago
JouleV
4,6691938
4,6691938
asked 10 hours ago
SchülerSchüler
32319
32319
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
Use aligned:
documentclass[12pt,a4paper]{report}
usepackage{mathtools}
begin{document}
begin{equation*}
begin{aligned}[t]
hcolon S(0,1) &rightarrow S^A(0,1)\
x &mapsto frac{x}{|x|_A},
end{aligned}
quadtext{and}quad
begin{aligned}[t]
gcolon S^A(0,1) &rightarrow S(0,1)\
y &mapsto frac{y}{|y|},
end{aligned}
end{equation*}
end{document}

I used to be fond of this function notation, but then I started to dislike it: it's heavy, uses up space and doesn't really do anything good. On the blackboard it can be useful, not in papers.
Thanks a lot. So what is the best way to define a function?
– Schüler
9 hours ago
@Schüler I tend to use the inline form, but that's personal preference.
– egreg
9 hours ago
add a comment |
Using aligned you can do the job in inline math mode. I suppose you would like the result centered, so, I placed the code in a center environment and finally, I added some hspace commands for better spacing:
documentclass[12pt,a4paper]{report}
usepackage{mathtools, nccmath}
usepackage{amssymb, amsthm, mathrsfs}
begin{document}
begin{center}
(begin{aligned}
hcolon S(0,1)& rightarrow S^A(0,1)\
x&mapsto frac{x}{|x|_A},
end{aligned}
hspace{20pt}text{ and }hspace{20pt}
begin{aligned}
gcolon S^A(0,1)& rightarrow S(0,1)\
y&mapsto frac{y}{|y|},
end{aligned})
end{center}
end{document}

add a comment |
Something like one of these?
documentclass[12pt,a4paper]{report}
usepackage{mathtools, nccmath}
usepackage{amssymb, amsthm, mathrsfs}
begin{document}
[ begin{aligned}
hcolon S(0,1)& longrightarrow S^A(0,1)\
x&longmapsto frac{x}{|x|_A},
end{aligned}
qquadtext{ and }qquad
begin{aligned}
gcolon S^A(0,1)& longrightarrow S(0,1)\
y&longmapsto frac{y}{|y|},
end{aligned} ]bigskip
[ begin{rcases} begin{aligned}
hcolon S(0,1)& longrightarrow S^A(0,1)\
x&longmapsto frac{x}{|x|_A},
end{aligned}end{rcases}
quadtext{ and }quad
begin{dcases} begin{aligned}
gcolon S^A(0,1)& longrightarrow S(0,1)\
y&longmapsto frac{y}{|y|},
end{aligned}end{dcases} ]
end{document}

add a comment |
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',
autoActivateHeartbeat: false,
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
});
}
});
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%2f477547%2ftwo-functions-in-the-same-line%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
Use aligned:
documentclass[12pt,a4paper]{report}
usepackage{mathtools}
begin{document}
begin{equation*}
begin{aligned}[t]
hcolon S(0,1) &rightarrow S^A(0,1)\
x &mapsto frac{x}{|x|_A},
end{aligned}
quadtext{and}quad
begin{aligned}[t]
gcolon S^A(0,1) &rightarrow S(0,1)\
y &mapsto frac{y}{|y|},
end{aligned}
end{equation*}
end{document}

I used to be fond of this function notation, but then I started to dislike it: it's heavy, uses up space and doesn't really do anything good. On the blackboard it can be useful, not in papers.
Thanks a lot. So what is the best way to define a function?
– Schüler
9 hours ago
@Schüler I tend to use the inline form, but that's personal preference.
– egreg
9 hours ago
add a comment |
Use aligned:
documentclass[12pt,a4paper]{report}
usepackage{mathtools}
begin{document}
begin{equation*}
begin{aligned}[t]
hcolon S(0,1) &rightarrow S^A(0,1)\
x &mapsto frac{x}{|x|_A},
end{aligned}
quadtext{and}quad
begin{aligned}[t]
gcolon S^A(0,1) &rightarrow S(0,1)\
y &mapsto frac{y}{|y|},
end{aligned}
end{equation*}
end{document}

I used to be fond of this function notation, but then I started to dislike it: it's heavy, uses up space and doesn't really do anything good. On the blackboard it can be useful, not in papers.
Thanks a lot. So what is the best way to define a function?
– Schüler
9 hours ago
@Schüler I tend to use the inline form, but that's personal preference.
– egreg
9 hours ago
add a comment |
Use aligned:
documentclass[12pt,a4paper]{report}
usepackage{mathtools}
begin{document}
begin{equation*}
begin{aligned}[t]
hcolon S(0,1) &rightarrow S^A(0,1)\
x &mapsto frac{x}{|x|_A},
end{aligned}
quadtext{and}quad
begin{aligned}[t]
gcolon S^A(0,1) &rightarrow S(0,1)\
y &mapsto frac{y}{|y|},
end{aligned}
end{equation*}
end{document}

I used to be fond of this function notation, but then I started to dislike it: it's heavy, uses up space and doesn't really do anything good. On the blackboard it can be useful, not in papers.
Use aligned:
documentclass[12pt,a4paper]{report}
usepackage{mathtools}
begin{document}
begin{equation*}
begin{aligned}[t]
hcolon S(0,1) &rightarrow S^A(0,1)\
x &mapsto frac{x}{|x|_A},
end{aligned}
quadtext{and}quad
begin{aligned}[t]
gcolon S^A(0,1) &rightarrow S(0,1)\
y &mapsto frac{y}{|y|},
end{aligned}
end{equation*}
end{document}

I used to be fond of this function notation, but then I started to dislike it: it's heavy, uses up space and doesn't really do anything good. On the blackboard it can be useful, not in papers.
answered 9 hours ago
egregegreg
724k8819173221
724k8819173221
Thanks a lot. So what is the best way to define a function?
– Schüler
9 hours ago
@Schüler I tend to use the inline form, but that's personal preference.
– egreg
9 hours ago
add a comment |
Thanks a lot. So what is the best way to define a function?
– Schüler
9 hours ago
@Schüler I tend to use the inline form, but that's personal preference.
– egreg
9 hours ago
Thanks a lot. So what is the best way to define a function?
– Schüler
9 hours ago
Thanks a lot. So what is the best way to define a function?
– Schüler
9 hours ago
@Schüler I tend to use the inline form, but that's personal preference.
– egreg
9 hours ago
@Schüler I tend to use the inline form, but that's personal preference.
– egreg
9 hours ago
add a comment |
Using aligned you can do the job in inline math mode. I suppose you would like the result centered, so, I placed the code in a center environment and finally, I added some hspace commands for better spacing:
documentclass[12pt,a4paper]{report}
usepackage{mathtools, nccmath}
usepackage{amssymb, amsthm, mathrsfs}
begin{document}
begin{center}
(begin{aligned}
hcolon S(0,1)& rightarrow S^A(0,1)\
x&mapsto frac{x}{|x|_A},
end{aligned}
hspace{20pt}text{ and }hspace{20pt}
begin{aligned}
gcolon S^A(0,1)& rightarrow S(0,1)\
y&mapsto frac{y}{|y|},
end{aligned})
end{center}
end{document}

add a comment |
Using aligned you can do the job in inline math mode. I suppose you would like the result centered, so, I placed the code in a center environment and finally, I added some hspace commands for better spacing:
documentclass[12pt,a4paper]{report}
usepackage{mathtools, nccmath}
usepackage{amssymb, amsthm, mathrsfs}
begin{document}
begin{center}
(begin{aligned}
hcolon S(0,1)& rightarrow S^A(0,1)\
x&mapsto frac{x}{|x|_A},
end{aligned}
hspace{20pt}text{ and }hspace{20pt}
begin{aligned}
gcolon S^A(0,1)& rightarrow S(0,1)\
y&mapsto frac{y}{|y|},
end{aligned})
end{center}
end{document}

add a comment |
Using aligned you can do the job in inline math mode. I suppose you would like the result centered, so, I placed the code in a center environment and finally, I added some hspace commands for better spacing:
documentclass[12pt,a4paper]{report}
usepackage{mathtools, nccmath}
usepackage{amssymb, amsthm, mathrsfs}
begin{document}
begin{center}
(begin{aligned}
hcolon S(0,1)& rightarrow S^A(0,1)\
x&mapsto frac{x}{|x|_A},
end{aligned}
hspace{20pt}text{ and }hspace{20pt}
begin{aligned}
gcolon S^A(0,1)& rightarrow S(0,1)\
y&mapsto frac{y}{|y|},
end{aligned})
end{center}
end{document}

Using aligned you can do the job in inline math mode. I suppose you would like the result centered, so, I placed the code in a center environment and finally, I added some hspace commands for better spacing:
documentclass[12pt,a4paper]{report}
usepackage{mathtools, nccmath}
usepackage{amssymb, amsthm, mathrsfs}
begin{document}
begin{center}
(begin{aligned}
hcolon S(0,1)& rightarrow S^A(0,1)\
x&mapsto frac{x}{|x|_A},
end{aligned}
hspace{20pt}text{ and }hspace{20pt}
begin{aligned}
gcolon S^A(0,1)& rightarrow S(0,1)\
y&mapsto frac{y}{|y|},
end{aligned})
end{center}
end{document}

answered 9 hours ago
koleygrkoleygr
11.6k11038
11.6k11038
add a comment |
add a comment |
Something like one of these?
documentclass[12pt,a4paper]{report}
usepackage{mathtools, nccmath}
usepackage{amssymb, amsthm, mathrsfs}
begin{document}
[ begin{aligned}
hcolon S(0,1)& longrightarrow S^A(0,1)\
x&longmapsto frac{x}{|x|_A},
end{aligned}
qquadtext{ and }qquad
begin{aligned}
gcolon S^A(0,1)& longrightarrow S(0,1)\
y&longmapsto frac{y}{|y|},
end{aligned} ]bigskip
[ begin{rcases} begin{aligned}
hcolon S(0,1)& longrightarrow S^A(0,1)\
x&longmapsto frac{x}{|x|_A},
end{aligned}end{rcases}
quadtext{ and }quad
begin{dcases} begin{aligned}
gcolon S^A(0,1)& longrightarrow S(0,1)\
y&longmapsto frac{y}{|y|},
end{aligned}end{dcases} ]
end{document}

add a comment |
Something like one of these?
documentclass[12pt,a4paper]{report}
usepackage{mathtools, nccmath}
usepackage{amssymb, amsthm, mathrsfs}
begin{document}
[ begin{aligned}
hcolon S(0,1)& longrightarrow S^A(0,1)\
x&longmapsto frac{x}{|x|_A},
end{aligned}
qquadtext{ and }qquad
begin{aligned}
gcolon S^A(0,1)& longrightarrow S(0,1)\
y&longmapsto frac{y}{|y|},
end{aligned} ]bigskip
[ begin{rcases} begin{aligned}
hcolon S(0,1)& longrightarrow S^A(0,1)\
x&longmapsto frac{x}{|x|_A},
end{aligned}end{rcases}
quadtext{ and }quad
begin{dcases} begin{aligned}
gcolon S^A(0,1)& longrightarrow S(0,1)\
y&longmapsto frac{y}{|y|},
end{aligned}end{dcases} ]
end{document}

add a comment |
Something like one of these?
documentclass[12pt,a4paper]{report}
usepackage{mathtools, nccmath}
usepackage{amssymb, amsthm, mathrsfs}
begin{document}
[ begin{aligned}
hcolon S(0,1)& longrightarrow S^A(0,1)\
x&longmapsto frac{x}{|x|_A},
end{aligned}
qquadtext{ and }qquad
begin{aligned}
gcolon S^A(0,1)& longrightarrow S(0,1)\
y&longmapsto frac{y}{|y|},
end{aligned} ]bigskip
[ begin{rcases} begin{aligned}
hcolon S(0,1)& longrightarrow S^A(0,1)\
x&longmapsto frac{x}{|x|_A},
end{aligned}end{rcases}
quadtext{ and }quad
begin{dcases} begin{aligned}
gcolon S^A(0,1)& longrightarrow S(0,1)\
y&longmapsto frac{y}{|y|},
end{aligned}end{dcases} ]
end{document}

Something like one of these?
documentclass[12pt,a4paper]{report}
usepackage{mathtools, nccmath}
usepackage{amssymb, amsthm, mathrsfs}
begin{document}
[ begin{aligned}
hcolon S(0,1)& longrightarrow S^A(0,1)\
x&longmapsto frac{x}{|x|_A},
end{aligned}
qquadtext{ and }qquad
begin{aligned}
gcolon S^A(0,1)& longrightarrow S(0,1)\
y&longmapsto frac{y}{|y|},
end{aligned} ]bigskip
[ begin{rcases} begin{aligned}
hcolon S(0,1)& longrightarrow S^A(0,1)\
x&longmapsto frac{x}{|x|_A},
end{aligned}end{rcases}
quadtext{ and }quad
begin{dcases} begin{aligned}
gcolon S^A(0,1)& longrightarrow S(0,1)\
y&longmapsto frac{y}{|y|},
end{aligned}end{dcases} ]
end{document}

answered 9 hours ago
BernardBernard
172k775203
172k775203
add a comment |
add a comment |
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.
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%2f477547%2ftwo-functions-in-the-same-line%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