Online Algebra Calculator
Many of users do not use powerful Maxima computer algebra system for systematic work, but for ad hoc algebraic calculations – equations, functions, matrixes, etc. only. To do this job, it is not useful to download the whole application from a web site.
Function: box (<expr>)
Function: box (<expr>, <a>) Returns <expr> enclosed in a box. The return value is an expression with box as the operator and <expr> as the argument. A box is drawn on the display when display2d is true.
box (<expr>, <a>) encloses <expr> in a box labelled by the symbol <a>. The label is truncated if it is longer than the width of the box.
box evaluates its argument. However, a boxed expression does not evaluate to its content, so boxed expressions are effectively excluded from computations.
boxchar is the character used to draw the box in box and in the dpart and lpart functions.
Examples:
(%i1) box (a^2 + b^2);
"""""""""
" 2 2"
(%o1) "b + a "
"""""""""
(%i2) a : 1234;
(%o2) 1234
(%i3) b : c - d;
(%o3) c - d
(%i4) box (a^2 + b^2);
""""""""""""""""""""
" 2 "
(%o4) "(c - d) + 1522756"
""""""""""""""""""""
(%i5) box (a^2 + b^2, term_1);
term_1""""""""""""""
" 2 "
(%o5) "(c - d) + 1522756"
""""""""""""""""""""
(%i6) 1729 - box (1729);
""""""
(%o6) 1729 - "1729"
""""""
(%i7) boxchar: "-";
(%o7) -
(%i8) box (sin(x) + cos(y));
-----------------
(%o8) -cos(y) + sin(x)-
----------------- There are also some inexact matches for box. Try ?? box to see them.
(%o1) true (%i2)