Maxima Graphic object
vector ([x,y], [dx,dy])
vector([x,y,z],[dx,dy,dz])
Draws vectors in 2D and 3D.
This object is affected by the following graphic options: head_both
,
head_length
, head_angle
, head_type
, line_width
,
line_type
, key
and color
.
2D
vector([x,y], [dx,dy])
plots vector
[dx,dy]
with origin in [x,y]
.
Example:
(%i1) load(draw)$ (%i2) draw2d(xrange = [0,12], yrange = [0,10], head_length = 1, vector([0,1],[5,5]), /* default type */ head_type = 'empty, vector([3,1],[5,5]), head_both = true, head_type = 'nofilled, line_type = dots, vector([6,1],[5,5]))$
3D
vector([x,y,z], [dx,dy,dz])
plots vector [dx,dy,dz]
with
origin in [x,y,z]
.
Example: