Contents Previous Next Subchapters

Default Printing Of An Expression
Syntax expression
expression;
See Also print , setprint

Description
If the ; is not present, displays the value of the expression.

Tutorial

Scalars
You can print a scalar by entering
     2.3e-3
results in
     0.0023

Vectors
You can display the row vector
     ( i , 1 , 2 + 3 i)
by entering
     [1i0, 1, 2 + 3i0]
to which O-Matrix will respond
     [ (0,1) , (1,0) , (2,3) ]
If you print a row vector containing characters, O-Matrix will not display the brackets or commas. For example,
     ["a", "b", "c"]
results in
     abc

Matrices
You can display the matrix
     / 1  2  3 \
     \ 4  5  6 /
by entering
     {[1, 2, 3], [4, 5, 6]}
O-Matrix will respond
     {
     [ 1 , 2 , 3 ]
     [ 4 , 5 , 6 ]
     }
Note that O-Matrix displays each row on a separate line. If the expression is followed by a semicolon or has no value, it is not printed. If you enter
     novalue
or
     {[1, 2, 3], [4, 5, 6]};
O-Matrix will not display output in the Command window.