Linked Questions

1
vote
1answer
6k views

How to easily write the transpose of a matrix? [duplicate]

I have a matrix A, described using an environment bmatrix as in the MWE below. \documentclass{article} \begin{document} Consider the matrix $A=\begin{bmatrix} 1 & 0 & -1 \\ 2 & 3 &...
47
votes
5answers
6k views

Perform matrix operations (addition, product, transpose, etc.) in LaTeX?

I know the calc package can perform infix-notation arithmetic in LaTeX... but I want more! I'd like to perform (not necessarily infix-notation) linear-algebra operations such as scalar ...
36
votes
5answers
4k views

How to do mathematical programming in LaTeX?

I typically write my programs in Matlab and then port the picture into LaTeX. At times it appears that one has better efficiency or flexibility to have the program within LaTeX itself, either you ...
36
votes
5answers
17k views

tabular input by columns (i.e. transpose a table)

I would like to be able to transpose a tabular(x) table like in the following example. It is not necessary to be completely automated, but I don't want to change the data order, which is a painful and ...
23
votes
2answers
3k views

Problem with defining shortcuts for TikZ matrices

For answering a question yesterday I wanted to define a shortcut for creating a matrix inside a tikzpicture. As a minimal example, consider \newcommand\mymatrix[1]{ \begin{tikzpicture} \...
6
votes
4answers
1k views

Setting up a quadratic-equation factoring worksheet: How to get rid of unwanted zeroes & ones?

I am in the midst of my second attempt to create basic high school factoring worksheets. Next up is figuring out how to reject unwanted zeroes and ones. The following code generates simple trinomial ...
12
votes
1answer
12k views

How to print a LaTeX matrix using xtable in R

I'm trying to get R to print a matrix as a LaTeX matrix using xtable, using the LaTeX environment bmatrix. a <- matrix(rnorm(25), 5 ,5) x <- xtable(x) > print(x, floating=FALSE, tabular....
7
votes
1answer
2k views

Generating a worksheet

My objective is to be able to generate worksheets in categories like: Laws of Indices Simultaneous Linear equations and Quadratic equations When I say generate is to generate for example 20 ...
4
votes
0answers
961 views

Is it possible to exchange rows and columns of a table without retyping

I wrote a table that turned out to be too wide. So I have to turn it sideways for it to fit a typical journal paper. Is there a way I can avoid typing it all over again?!
19
votes
0answers
271 views

Symbolic 3d coordinates in TikZ

Warning: answering this question may require some efforts. The purpose of question is to "teach TikZ 3d coordinates". What does that mean? If we define a coordinate in TikZ, \path (<x>,<y&...
1
vote
1answer
62 views

Split the content of a table into 2 columns without doing so in the .tex source

I have some 2-column tabular data which looks like this: Foo 12 Bar 34 Baz 56 Quux 78 Quuz 910 Corge 1112 Grault 1314 And I want to lay it out in a 2x2 = 4-column table, i.e. to have ...
2
votes
0answers
76 views

Importing mathematical calculations processed by an external file

I usually work with software called Wolfram Mathematica. With this software I perform mathematical calculations and get their results. I usually do the following: Button Right Click -> Copy As -&...
3
votes
1answer
35 views

macro to create Square matrix of order 4

I have created a macro to write a matrix of order 3 (square matrix) using the following code \newcommand{\matrixthree}[9]{$\left(\begin{matrix} #1 & #2 & #3 \\ #4 & #5 & #6 \\ #7 &...