'Given that' in a matrixDrawing a large binary matrix as colored grid in TikZMatrix in LatexMultiple line...
How can a function with a hole (removable discontinuity) equal a function with no hole?
What does "I’d sit this one out, Cap," imply or mean in the context?
Hostile work environment after whistle-blowing on coworker and our boss. What do I do?
Only print output after finding pattern
System.debug(JSON.Serialize(o)) Not longer shows full string
How do I rename a Linux host without needing to reboot for the rename to take effect?
Term for the "extreme-extension" version of a straw man fallacy?
Can "Reverse Gravity" affect Meteor Swarm?
Do sorcerers' Subtle Spells require a skill check to be unseen?
How does buying out courses with grant money work?
Failed to fetch jessie backports repository
Unreliable Magic - Is it worth it?
How does it work when somebody invests in my business?
Was Spock the First Vulcan in Starfleet?
Class Action - which options I have?
Why are there no referendums in the US?
Is there a good way to store credentials outside of a password manager?
Efficient way to transport a Stargate
I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?
Inappropriate reference requests from Journal reviewers
How can I quit an app using Terminal?
Number of words that can be made using all the letters of the word W, if Os as well as Is are separated is?
Roman Numeral Treatment of Suspensions
How can I open an app using Terminal?
'Given that' in a matrix
Drawing a large binary matrix as colored grid in TikZMatrix in LatexMultiple line matrix equationsTrouble in alignment of matrix in subquestionsCreating a multiline equationDivider lines of matrixMatrix with lines and labels with arrowsSplit long expression inside bmatrix environmentForcing matrix equation to fit inside the marginsCreating a block matrix
I am trying to create the following equation where I have n given that y where y must be split among two lines. This is the code I have so far (which will give me the big braces).
left{
begin{matrix}
...
end{matrix}
right}
Any idea how I can fill the matrix to obtain the following please? Thanks
symbols matrices
New contributor
add a comment |
I am trying to create the following equation where I have n given that y where y must be split among two lines. This is the code I have so far (which will give me the big braces).
left{
begin{matrix}
...
end{matrix}
right}
Any idea how I can fill the matrix to obtain the following please? Thanks
symbols matrices
New contributor
add a comment |
I am trying to create the following equation where I have n given that y where y must be split among two lines. This is the code I have so far (which will give me the big braces).
left{
begin{matrix}
...
end{matrix}
right}
Any idea how I can fill the matrix to obtain the following please? Thanks
symbols matrices
New contributor
I am trying to create the following equation where I have n given that y where y must be split among two lines. This is the code I have so far (which will give me the big braces).
left{
begin{matrix}
...
end{matrix}
right}
Any idea how I can fill the matrix to obtain the following please? Thanks
symbols matrices
symbols matrices
New contributor
New contributor
New contributor
asked 48 mins ago
CXBCXB
584
584
New contributor
New contributor
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Not sure what you have in mind for the dots. Here, I show it with either a matrix
or an aligned
block.
Thanks to egreg for the middle
reminder.
documentclass{article}
usepackage{amsmath}
begin{document}
[
left{ n,middle| begin{matrix}2x & y\3x & 2yend{matrix}right}
]
[
left{ n,middle| begin{aligned} z &= 2x + y\z &= 3x - 2yend{aligned}right}
]
end{document}
@egreg I sure did, though I can't say that I am enamored of the spacing.
– Steven B. Segletes
11 mins ago
add a comment |
Use mathtools
:
documentclass{article}
usepackage{mathtools}
DeclarePairedDelimiterX{Set}[1]{lbrace}{rbrace}{activatebar #1}
newcommand{activatebar}{%
begingrouplccode`~=`| lowercase{endgrouplet~}activebar
mathcode`|="8000
}
newcommand{activebar}{nonscript;delimsizevertnonscript;mathopen{}}
begin{document}
[
Set{n|n>0}
Set[big]{n|n>0}
Set*{n|begin{matrix} n>0 \ n<42 end{matrix}}
]
end{document}
Important note: don't use |
for other purposes in the argument of Set
; it shouldn't be used anyway, preferring lvert
and rvert
for the absolute value. Or, of course, with macros based on mathtools
, such as
DeclarePairedDelimiter{abs}{lvert}{rvert}
Very nice indeed!
– Steven B. Segletes
16 mins ago
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
});
}
});
CXB is a new contributor. Be nice, and check out our Code of Conduct.
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%2f481884%2fgiven-that-in-a-matrix%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Not sure what you have in mind for the dots. Here, I show it with either a matrix
or an aligned
block.
Thanks to egreg for the middle
reminder.
documentclass{article}
usepackage{amsmath}
begin{document}
[
left{ n,middle| begin{matrix}2x & y\3x & 2yend{matrix}right}
]
[
left{ n,middle| begin{aligned} z &= 2x + y\z &= 3x - 2yend{aligned}right}
]
end{document}
@egreg I sure did, though I can't say that I am enamored of the spacing.
– Steven B. Segletes
11 mins ago
add a comment |
Not sure what you have in mind for the dots. Here, I show it with either a matrix
or an aligned
block.
Thanks to egreg for the middle
reminder.
documentclass{article}
usepackage{amsmath}
begin{document}
[
left{ n,middle| begin{matrix}2x & y\3x & 2yend{matrix}right}
]
[
left{ n,middle| begin{aligned} z &= 2x + y\z &= 3x - 2yend{aligned}right}
]
end{document}
@egreg I sure did, though I can't say that I am enamored of the spacing.
– Steven B. Segletes
11 mins ago
add a comment |
Not sure what you have in mind for the dots. Here, I show it with either a matrix
or an aligned
block.
Thanks to egreg for the middle
reminder.
documentclass{article}
usepackage{amsmath}
begin{document}
[
left{ n,middle| begin{matrix}2x & y\3x & 2yend{matrix}right}
]
[
left{ n,middle| begin{aligned} z &= 2x + y\z &= 3x - 2yend{aligned}right}
]
end{document}
Not sure what you have in mind for the dots. Here, I show it with either a matrix
or an aligned
block.
Thanks to egreg for the middle
reminder.
documentclass{article}
usepackage{amsmath}
begin{document}
[
left{ n,middle| begin{matrix}2x & y\3x & 2yend{matrix}right}
]
[
left{ n,middle| begin{aligned} z &= 2x + y\z &= 3x - 2yend{aligned}right}
]
end{document}
edited 6 mins ago
answered 44 mins ago
Steven B. SegletesSteven B. Segletes
160k9204413
160k9204413
@egreg I sure did, though I can't say that I am enamored of the spacing.
– Steven B. Segletes
11 mins ago
add a comment |
@egreg I sure did, though I can't say that I am enamored of the spacing.
– Steven B. Segletes
11 mins ago
@egreg I sure did, though I can't say that I am enamored of the spacing.
– Steven B. Segletes
11 mins ago
@egreg I sure did, though I can't say that I am enamored of the spacing.
– Steven B. Segletes
11 mins ago
add a comment |
Use mathtools
:
documentclass{article}
usepackage{mathtools}
DeclarePairedDelimiterX{Set}[1]{lbrace}{rbrace}{activatebar #1}
newcommand{activatebar}{%
begingrouplccode`~=`| lowercase{endgrouplet~}activebar
mathcode`|="8000
}
newcommand{activebar}{nonscript;delimsizevertnonscript;mathopen{}}
begin{document}
[
Set{n|n>0}
Set[big]{n|n>0}
Set*{n|begin{matrix} n>0 \ n<42 end{matrix}}
]
end{document}
Important note: don't use |
for other purposes in the argument of Set
; it shouldn't be used anyway, preferring lvert
and rvert
for the absolute value. Or, of course, with macros based on mathtools
, such as
DeclarePairedDelimiter{abs}{lvert}{rvert}
Very nice indeed!
– Steven B. Segletes
16 mins ago
add a comment |
Use mathtools
:
documentclass{article}
usepackage{mathtools}
DeclarePairedDelimiterX{Set}[1]{lbrace}{rbrace}{activatebar #1}
newcommand{activatebar}{%
begingrouplccode`~=`| lowercase{endgrouplet~}activebar
mathcode`|="8000
}
newcommand{activebar}{nonscript;delimsizevertnonscript;mathopen{}}
begin{document}
[
Set{n|n>0}
Set[big]{n|n>0}
Set*{n|begin{matrix} n>0 \ n<42 end{matrix}}
]
end{document}
Important note: don't use |
for other purposes in the argument of Set
; it shouldn't be used anyway, preferring lvert
and rvert
for the absolute value. Or, of course, with macros based on mathtools
, such as
DeclarePairedDelimiter{abs}{lvert}{rvert}
Very nice indeed!
– Steven B. Segletes
16 mins ago
add a comment |
Use mathtools
:
documentclass{article}
usepackage{mathtools}
DeclarePairedDelimiterX{Set}[1]{lbrace}{rbrace}{activatebar #1}
newcommand{activatebar}{%
begingrouplccode`~=`| lowercase{endgrouplet~}activebar
mathcode`|="8000
}
newcommand{activebar}{nonscript;delimsizevertnonscript;mathopen{}}
begin{document}
[
Set{n|n>0}
Set[big]{n|n>0}
Set*{n|begin{matrix} n>0 \ n<42 end{matrix}}
]
end{document}
Important note: don't use |
for other purposes in the argument of Set
; it shouldn't be used anyway, preferring lvert
and rvert
for the absolute value. Or, of course, with macros based on mathtools
, such as
DeclarePairedDelimiter{abs}{lvert}{rvert}
Use mathtools
:
documentclass{article}
usepackage{mathtools}
DeclarePairedDelimiterX{Set}[1]{lbrace}{rbrace}{activatebar #1}
newcommand{activatebar}{%
begingrouplccode`~=`| lowercase{endgrouplet~}activebar
mathcode`|="8000
}
newcommand{activebar}{nonscript;delimsizevertnonscript;mathopen{}}
begin{document}
[
Set{n|n>0}
Set[big]{n|n>0}
Set*{n|begin{matrix} n>0 \ n<42 end{matrix}}
]
end{document}
Important note: don't use |
for other purposes in the argument of Set
; it shouldn't be used anyway, preferring lvert
and rvert
for the absolute value. Or, of course, with macros based on mathtools
, such as
DeclarePairedDelimiter{abs}{lvert}{rvert}
edited 10 mins ago
answered 24 mins ago
egregegreg
730k8819283241
730k8819283241
Very nice indeed!
– Steven B. Segletes
16 mins ago
add a comment |
Very nice indeed!
– Steven B. Segletes
16 mins ago
Very nice indeed!
– Steven B. Segletes
16 mins ago
Very nice indeed!
– Steven B. Segletes
16 mins ago
add a comment |
CXB is a new contributor. Be nice, and check out our Code of Conduct.
CXB is a new contributor. Be nice, and check out our Code of Conduct.
CXB is a new contributor. Be nice, and check out our Code of Conduct.
CXB is a new contributor. Be nice, and check out our Code of Conduct.
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%2f481884%2fgiven-that-in-a-matrix%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