VertArea v1.4.1 By Mark Shroyer http://gael.port5.com/ 6.3.2000 This program is used to calculate the area of a convex polygon with specified points on the euclidean coordinate plane. Syntax for program execution is as follows: vertarea(points) Points is a matrix of all the vertices of the polygon. For example, to calculate the area of a polygon with vertices at (1,0), (5,0), and (3,10), the points matrix would have the following value: [ 1 0 ] [ 5 0 ] [ 3 10 ] It doesn't matter in what order you send the vertices to the program, as long as each abscissa is paired up with its corresponding ordinate in the order of the lists. When you run the program, either the area will be calculated or you will recieve a non-convex polygon error (I know that if the polygon is convex you will not recieve this error; however, it is possible that this program may not be able to detect all non-convex polygons). After the area has been calculated, you will have the option of seeing the polygon sketched out for you on the graph output screen. The program will automatically adjust the viewing window for you if the whole thing cannot be seen using the current window settings. ================ Version History: ================ June 3, 2000 - Version 1.4.1 ---------------------------- Fixed a minor bug - I had forgotten to declare xlist and ylist as local variables, so they were created in the MAIN directory when the program was run and remained after execution. This update merely declares those two variables local so that this does not happen. May 23, 2000 - Version 1.4 -------------------------- First release version. Mark Shroyer November 12, 2000