Function: print/vector - prints vectors either vertically or horizontally
Calling Sequence:
`print/vector`(arg);
Parameters:
arg - a name (either NULL, 'vertical', or 'horizontal')
Description:
By default, vectors are displayed horizontally in Maple V. By calling `print/vector` with the argument 'vertical' or with no argument at all (i.e. NULL), vectors are displayed as column vectors, i.e. vertically.
Vectors can be displayed horizontally again by passing the name 'horizontal' to `print/vector`.
There are two `interfaces` to this function that are entered without any brackets and arguments:
vecvert - equals `print/vector`('vertical'), and
vechori - equals `print/vector`('horizontal').
In order to display vectors either horizontally or vertically the main Maple Library function `print/array/vector` has been modified. See Administering Maple V Release 4 written by Joe Riel for further details.
Besides displaying which `vector display mode` has been set, the function also assigns either the name 'horizontal' or 'vertical' to the global variable _MathVector which is queried by `print/array/vector` to decide how to display the vector.
This function is part of the math package, it is initialized via the math initialization file, and so can be used only after performing the command with(math, []) or with(math).
Examples:
> with(math, []):
> `print/vector`();
> vector([1, 2, 3]);
> vechori;
> v := vector([a, b, c]);
> vecvert;
> eval(v);
> `print/vector`(horizontal);
> eval(v);
Special Thanks:
Joe Riel , San Diego, CA, for allowing me to use his modified code of `print/array/vector`.
Waterloo Maple Inc. , Waterloo, Ontario, for permitting me to put the modified version of the above mentioned main Maple Library function into this package.
See Also:
math/V .
Version History:
Version 1.0 current as of November 9, 1997