Overview of the geometry Package
|
Calling Sequence
|
|
geometry[command](arguments)
command(arguments)
|
|
Description
|
|
•
|
The commands in this package enable you to work in two-dimensional Euclidean geometry. Note that the package does not support the extended plane, that is, it does not handle points at infinity and the line at infinity.
|
•
|
Each command in the geometry package can be accessed by using either the long form or the short form of the command name in the command calling sequence.
|
•
|
The geometric objects supported in this package are: point, segment, directed segment, line, triangle, square, circle, ellipse, parabola, hyperbola, and conic (including the degenerate cases). To create these geometric objects, use the following commands.
|
•
|
Triangle geometry ranks among the most enduring topics in all of mathematics. The following commands relating to a triangle are supported.
|
•
|
For other geometric objects, the following commands are supported.
|
•
|
Segment/Directed Segment:
|
•
|
Graphics: the draw command provides the graphical visualization of all objects supported in the package.
|
•
|
Other routines: various other commands are also implemented.
|
•
|
When an object is defined through its algebraic representation (an equation or a polynomial), you can use any name for the horizontal axis and vertical axis. In general, the names of the axes must be included when you define an object. A simple way to set the names without being prompted is to set the environment variables _EnvHorizontalName and _EnvVerticalName to the axes names that you prefer; otherwise, Maple will prompt you to input of the name of the axes. In this case, simply types a name and a semicolon (or colon) for each query.
|
•
|
For commands in the package that create a geometric object, or a list of geometric objects, the calling sequence is of the form command_call(obj,...);, where obj is either a name of the geometric object to be created, or a list of geometric objects to be created.
|
•
|
Note that you must make explicit assumptions for the symbolic names in an object (for example, real, positive, ...) when you want to apply a test (for example, IsOnLine) to an object. In this case, the power of this package is dependent on the power of the Maple assume command.
|
•
|
For commands where output is a Boolean value (true, false, FAIL), the calling sequence is of the form command_call(..., cond);, where cond is a an optional name. If the output is FAIL, and this optional argument is given, then the condition that makes the output be true is assigned to cond. cond might be a Maple expression (use assume(cond);), or of the form or (use assume(op(i, cond)); for the former case where i is from 1 to n; and assume(op(cond)); for the latter case.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
Define the same circle but without the names of the axes in the input; you will be prompted for them.
>
|
|
| (3) |
>
|
|
| (4) |
Define the same circle where the names of the axes are assigned by the two environment variables.
>
|
|
>
|
|
| (5) |
>
|
|
| (6) |
In the above examples, c is assigned to a geometric object (circle), c can also be assigned to a list of objects.
>
|
|
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
The following is an example with unknown parameters, which returns the message FAIL.
>
|
|
>
|
|
IsOnLine: "hint: the following conditions must be satisfied: {-2/5+b = 0, -1/2+a = 0}"
| |
| (10) |
>
|
|
| (11) |
>
|
|
>
|
|
| (12) |
More examples can be found in examples,geometry.
|
|