Skip to content

Section documentation for STACK-Maxima /linearalgebra/display

Functions for displaying linear systems as aligned TeX equations.


disp_eqns(eqns,vars)

Given a list of equations and a list of variables, produce TeX output that displays them as a system of equations. Everything will be appropriately vertically aligned with leading ones and zeros removed appropriately.

Argument name type description
eqns list A list of linear equations. Constants should be on the right hand side.
vars list A list of variables in the order that they should appear.
Return type description
string TeX output for this system of equations

format_as_coeff(expr)

Format expressions so that they can be printed as coefficients by wrapping sums and expressions with unary minus into brackets.

Argument name type description
expr expression the coefficient to display. Strings are returned unchanged.
Return type description
string the TeX coefficient, parenthesised when needed.

mat_disp_eqns(A,b,vars)

Given a matrix, right-hand side vector, and a list of variables, produce TeX output that displays them as a system of equations. Everything will be appropriately vertically aligned with leading ones and zeros removed appropriately.

Argument name type description
A matrix The coefficient matrix.
b matrix The right hand side vector.
vars list A list of variables in the order that they should appear.
Return type description
string TeX output for this system of equations