Function: math[V] - simplified vector definition
Calling Sequence:
V(exprseq);
V(str);
V(p);
Parameters:
exprseq
- sequence of vector components (any type)
str
- a string
p - a geometry/point or geom3d/point object
Description:
This procedure facilitates defining vectors.
In the first form, the vector components are passed as a sequence of coefficients, not as a list like in function linalg/vector .
In the second form, a string containing the vector components separated by blanks is passed to math/V.
In the third form, the vector is defined by the point p defined by geometry/point or geom3d/point (or math/Point ). This works in Release 5 only.
In all cases, the result is a Maple vector .
Vectors can be displayed vertically on screen by executing the name vecvert in the worksheet. vechori displays vectors horizontally (default). See math/init#vectors for more details.
A note to users of Release 5: math/V accepts strings `put into` double and backquotes.
This function is part of the math package, and so can be used only after performing the command with(math) or with(math, V).
Examples:
> with(math, V):
> vec1 := V(1, 1, 1);
> vec2 := V(`1 x x^2`);
> vecvert;
> eval(vec1);
> eval(vec2);
> vechori;
> eval(vec1);
> geometry[point](A, 1, 2);
> V(A);
> geom3d[point](B, 0, 0, 0);
> V(B);
See Also: array , linalg/matrix , math/mat .
Version history:
Version 1.0 current as of November 11, 1996
Version 2.0 current as of November 9, 1997
Version 2.01 current as of May 23, 1998
Version 2.1 current as of October 06, 1998
Version 2.1.1 current as of January 01, 1999