read `Pacific:othermaple:pargrm_image`;where you will likely have to substitute for Pacific the name of your machine. The quotes here are backquotes in the upper left of your keyboard rather than apostrophes.
Suppose that vectors and are defined as in
v1 := vector([1,0]);and a matrix is defined by
v2 := vector([0,1]);
A1 := matrix(2,2,[.28, .96, .96, -.28]);Then the Maple call
gr1 := pargrm_image_2d([v1,v2],A1);will display two parallelograms with vertices at the origin. One parallelogram will have edges and , and be colored blue. The other will be the image under of this parallelogram, and so will have edges , and . This image is colored red.
At places where the original and image parallelograms overlap, the color will be blue, but you will still be able to see the edges and .
The line scaling=constrained above tells Maple that you'd like the and axis scales to be the same. This is essential if you are trying to read off information like distance and angles from a picture !
There is also a routine pargrm_image_3d using dimensional vectors, and a matrix to draw the images under of a parallelepiped with edges , , and . A typical call would be
Samples using the parallelogram image package are located in the file :Maple V Release 4:Math 221:Parallelogram Image on each Macintosh in the Lab.