Next: Some Matrices and Parallelograms Up: Math 221 Fall 98 Previous: Math 221 Fall 98

## The Parallelogram Image Package

The routine pargrm_image_2d allows you to readily view the geometry of a linear transformation of . After starting Maple, you need to load the package with a line like:
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]);
v2 := vector([0,1]);
and a matrix is defined by
A1 := matrix(2,2,[.28, .96, .96, -.28]);
Then the Maple call
gr1 := pargrm_image_2d([v1,v2],A1);
display(gr1, scaling=constrained):
will display two parallelograms with vertices at the origin. One parallelogram P1 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 x and y 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 3 dimensional vectors, and a 3 x 3 matrix to draw the images under of a parallelepiped with edges , , and . A typical call would be

pargrm_image_3d([v1,v2,v3],A);

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.

Next: Some Matrices and Parallelograms Up: Math 221 Fall 98 Previous: Math 221 Fall 98
root
2002-08-21