How to typeset an array
up vote
1
down vote
favorite
I would like to produce the following:
what is the error?
documentclass{article}
usepackage{tikz}
usepackage{float}
usepackage{amsmath}
usepackage{copyrightbox}
begin{document}
[
begin{array}
0.5 & -1 & -0.5
end{array}
]
end{document}
math-mode errors amsmath arrays
add a comment |
up vote
1
down vote
favorite
I would like to produce the following:
what is the error?
documentclass{article}
usepackage{tikz}
usepackage{float}
usepackage{amsmath}
usepackage{copyrightbox}
begin{document}
[
begin{array}
0.5 & -1 & -0.5
end{array}
]
end{document}
math-mode errors amsmath arrays
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I would like to produce the following:
what is the error?
documentclass{article}
usepackage{tikz}
usepackage{float}
usepackage{amsmath}
usepackage{copyrightbox}
begin{document}
[
begin{array}
0.5 & -1 & -0.5
end{array}
]
end{document}
math-mode errors amsmath arrays
I would like to produce the following:
what is the error?
documentclass{article}
usepackage{tikz}
usepackage{float}
usepackage{amsmath}
usepackage{copyrightbox}
begin{document}
[
begin{array}
0.5 & -1 & -0.5
end{array}
]
end{document}
math-mode errors amsmath arrays
math-mode errors amsmath arrays
edited 30 mins ago
Alan Munn
157k27421695
157k27421695
asked 2 hours ago
hubman
1915
1915
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
since you use the amsmath
package, why you not use bmatrix
environment?
using array you need to specify columns (see second equation below)
documentclass{article}
usepackage{tikz}
usepackage{float}
usepackage{amsmath}
usepackage{copyrightbox}
begin{document}
[
mathbf{W} = begin{bmatrix}
0.5 & -1 & -0.5
end{bmatrix}
qquad b=0.5
]
or
[
mathbf{W} = [begin{array}{ccc} % <--- added columns' types
0.5 & -1 & -0.5
end{array}]
qquad b=0.5
]
end{document}
how written b=0.5 in the same line?
– hubman
2 hours ago
1
this was not very clear in your question, now added.
– Zarko
2 hours ago
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
since you use the amsmath
package, why you not use bmatrix
environment?
using array you need to specify columns (see second equation below)
documentclass{article}
usepackage{tikz}
usepackage{float}
usepackage{amsmath}
usepackage{copyrightbox}
begin{document}
[
mathbf{W} = begin{bmatrix}
0.5 & -1 & -0.5
end{bmatrix}
qquad b=0.5
]
or
[
mathbf{W} = [begin{array}{ccc} % <--- added columns' types
0.5 & -1 & -0.5
end{array}]
qquad b=0.5
]
end{document}
how written b=0.5 in the same line?
– hubman
2 hours ago
1
this was not very clear in your question, now added.
– Zarko
2 hours ago
add a comment |
up vote
1
down vote
accepted
since you use the amsmath
package, why you not use bmatrix
environment?
using array you need to specify columns (see second equation below)
documentclass{article}
usepackage{tikz}
usepackage{float}
usepackage{amsmath}
usepackage{copyrightbox}
begin{document}
[
mathbf{W} = begin{bmatrix}
0.5 & -1 & -0.5
end{bmatrix}
qquad b=0.5
]
or
[
mathbf{W} = [begin{array}{ccc} % <--- added columns' types
0.5 & -1 & -0.5
end{array}]
qquad b=0.5
]
end{document}
how written b=0.5 in the same line?
– hubman
2 hours ago
1
this was not very clear in your question, now added.
– Zarko
2 hours ago
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
since you use the amsmath
package, why you not use bmatrix
environment?
using array you need to specify columns (see second equation below)
documentclass{article}
usepackage{tikz}
usepackage{float}
usepackage{amsmath}
usepackage{copyrightbox}
begin{document}
[
mathbf{W} = begin{bmatrix}
0.5 & -1 & -0.5
end{bmatrix}
qquad b=0.5
]
or
[
mathbf{W} = [begin{array}{ccc} % <--- added columns' types
0.5 & -1 & -0.5
end{array}]
qquad b=0.5
]
end{document}
since you use the amsmath
package, why you not use bmatrix
environment?
using array you need to specify columns (see second equation below)
documentclass{article}
usepackage{tikz}
usepackage{float}
usepackage{amsmath}
usepackage{copyrightbox}
begin{document}
[
mathbf{W} = begin{bmatrix}
0.5 & -1 & -0.5
end{bmatrix}
qquad b=0.5
]
or
[
mathbf{W} = [begin{array}{ccc} % <--- added columns' types
0.5 & -1 & -0.5
end{array}]
qquad b=0.5
]
end{document}
edited 2 hours ago
answered 2 hours ago
Zarko
117k865155
117k865155
how written b=0.5 in the same line?
– hubman
2 hours ago
1
this was not very clear in your question, now added.
– Zarko
2 hours ago
add a comment |
how written b=0.5 in the same line?
– hubman
2 hours ago
1
this was not very clear in your question, now added.
– Zarko
2 hours ago
how written b=0.5 in the same line?
– hubman
2 hours ago
how written b=0.5 in the same line?
– hubman
2 hours ago
1
1
this was not very clear in your question, now added.
– Zarko
2 hours ago
this was not very clear in your question, now added.
– Zarko
2 hours ago
add a comment |
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%2f462293%2fhow-to-typeset-an-array%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