Radius
Returns the radius of a circle.
radius(circle)
Example:
If GA is the point at (0, 0), GB is the point at (1, 0), and GC is dened as circle(GA, GB-GA), then radius(GC)
returns 1.
Perimeter
Returns the perimeter of a polygon or the circumference of a circle.
perimeter(polygon) or perimeter(circle)
Examples:
If GA is the point at (0, 0), GB is the point at (1, 0), and GC is dened as circle(GA, GB-GA), then
perimeter(GC) returns 2p.
If GA is the point at (0, 0), GB is the point at (1, 0), and GC is dened as square(GA, GB-GA), then
perimeter(GC) returns 4.
Slope
Returns the slope of a straight object (segment, ray, or line).
slope(Object)
Example:
slope(line(point(1, 1), point(2, 2))) returns 1.
Area
Returns the area of a circle or polygon.
area(circle) or area(polygon)
This command can also return the area under a curve between two points.
area(expr, value1, value2)
Examples:
If GA is dened to be the unit circle, then area(GA) returns p.
area(4-x^2/4, -4,4) returns 14.666…
Angle
Returns the measure of a directed angle. The rst point is taken as the vertex of the angle as the next two
points in order give the measure and sign.
angle(vertex, point2, point3)
Example:
angle(GA, GB, GC) returns the measure of ∡BAC.
202 Chapter 9 Geometry
Komentarze do niniejszej Instrukcji