Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Creating a simplex table

Suppose I have the following matrix (8x4) matrix

$\begin{bmatrix} 1 & 2 & 3 & 4 & 1 & 0 & 0 & 20 \ 1 & 4 & 5 & 4 & 0 & 1 & 0 & 10 \ 2 & 2 & 3 & 4 & 1 & 0 & 1 & 30 \ 1 & -1 & 2 & -1 & 0 & 0 & 0 & 0 \end{bmatrix}$

I want to create a table in adding the following vector above

$ \begin{bmatrix} &x_1 & x_2 & x_3 & x_4 & \epsilon_1 & \epsilon_2 & \epsilon_3 & b \ \end{bmatrix} $

which will be invariant

and the following column vector on its right

\begin{bmatrix} \epsilon_1 \ \epsilon_2 \ \epsilon_3 \ b \ \end{bmatrix} $

In the following question Concatenation of symbolic vectors. I have two answers that help me to construct the line vector wihc is a concatenation of two vectors. But I cannot use the answer in the table() mechanism simply because it doesn't work as expected that is

table(name of the matrix, header_row = name of the line vector)

Is there a way to obtain what I expect. And I have observed that html.table() doesn't work.

PS I do not understand why the formating doesn't work for the matrix.

Creating a simplex table

Suppose I have the following matrix (8x4) matrix

$\begin{bmatrix} 1 & 2 & 3 & 4 & 1 & 0 & 0 & 20 \ \\ 1 & 4 & 5 & 4 & 0 & 1 & 0 & 10 \ \\ 2 & 2 & 3 & 4 & 1 & 0 & 1 & 30 \ \\ 1 & -1 & 2 & -1 & 0 & 0 & 0 & 0 \end{bmatrix}$

I want to create a table in adding the following vector above

$ \begin{bmatrix} &x_1 & x_2 & x_3 & x_4 & \epsilon_1 & \epsilon_2 & \epsilon_3 & b \ b \end{bmatrix} $

which will be invariant

and the following column vector on its right

$ \begin{bmatrix} \epsilon_1 \ \\ \epsilon_2 \ \\ \epsilon_3 \ b \ \\ b \end{bmatrix} $

In the following question Concatenation of symbolic vectors. I have two answers that help me to construct the line vector wihc is a concatenation of two vectors. But I cannot use the answer in the table() mechanism simply because it doesn't work as expected that is

table(name of the matrix, header_row = name of the line vector)

vector)

Is there a way to obtain what I expect. expect? And I have observed that html.table() doesn't work.

PS I do not understand why the formating doesn't work for the matrix.

Creating a simplex table

Suppose I have the following matrix (8x4) matrix

$\begin{bmatrix} 1 & 2 & 3 & 4 & 1 & 0 & 0 & 20 \\ 1 & 4 & 5 & 4 & 0 & 1 & 0 & 10 \\ 2 & 2 & 3 & 4 & 1 & 0 & 1 & 30 \\ 1 & -1 & 2 & -1 & 0 & 0 & 0 & 0 \end{bmatrix}$

I want to create a table in adding the following vector above

$ \begin{bmatrix} &x_1 & x_2 & x_3 & x_4 & \epsilon_1 & \epsilon_2 & \epsilon_3 & b \end{bmatrix} $

which will be invariant

and the following column vector on its right

$ \begin{bmatrix} \epsilon_1 \\ \epsilon_2 \\ \epsilon_3 \\ b \end{bmatrix} $

In the following question Two answers to my previous question "Concatenation of symbolic vectors. I have two answers that vectors" help me to construct the line vector wihc which is a concatenation of two vectors. vectors. But I cannot use the answer in the table() mechanism mechanism simply because it doesn't work as expected that is

table(name of the matrix, header_row = name of the line vector)
table(name_of_the_matrix, header_row=name_of_the_line_vector)

Is there a way to obtain what I expect? And I have I observed that html.table() doesn't work.

Creating a simplex table

Suppose I have the following matrix (8x4) matrix

$\begin{bmatrix} 1 & 2 & 3 & 4 & 1 & 0 & 0 & 20 \\ 1 & 4 & 5 & 4 & 0 & 1 & 0 & 10 \\ 2 & 2 & 3 & 4 & 1 & 0 & 1 & 30 \\ 1 & -1 & 2 & -1 & 0 & 0 & 0 & 0 \end{bmatrix}$

I want to create a table in adding the following vector above

$ \begin{bmatrix} &x_1 & x_2 & x_3 & x_4 & \epsilon_1 & \epsilon_2 & \epsilon_3 & b \end{bmatrix} $

which will be invariant

and the following column vector on its right

$ \begin{bmatrix} \epsilon_1 \\ \epsilon_2 \\ \epsilon_3 \\ b \end{bmatrix} $

Two answers to my previous question "Concatenation of symbolic vectors" help me construct the line vector which is a concatenation of two vectors. But I cannot use the answer in the table() mechanism simply because it doesn't work as expected that is

table(name_of_the_matrix, header_row=name_of_the_line_vector)

Is there a way to obtain what I expect? I observed that html.table() doesn't work.