
inter(8-x^2/6, x/2-1) returns [[6 2],[-9 -11/2]]
NOTE: This command creates a point. The command uses the location of this point to look for the desired
intersection. You can move the point to select a dierent nearby intersection.
Line
Segment
Draws a segment dened by its endpoints.
segment(point1, point2)
Examples:
segment(1+2i, 4) draws the segment dened by the points whose coordinates are (1, 2) and (4, 0).
segment(GA, GB) draws segment AB.
Ray
Given 2 points, draws a ray from the rst point through the second point.
half_line((point1, point2)
Line
Draws a line. The arguments can be two points, a linear expression of the form a*x+b*y+c, or a point and a
slope as shown in the examples.
line(point1, point2) or line(a*x+b*y+c) or line(point1, slope=realm)
Examples:
line(2+i, 3+2i) draws the line whose equation is y=x–1; that is, the line through the points (2,1) and
(3,2).
line(2x–3y–8) draws the line whose equation is 2x–3y=8
line(3–2i,slope=1/2) draws the line whose equation is x–2y=7; that is, the line through (3, –2) with
slope m=1/2.
Parallel
Draws a line through a given point that is parallel to a given line.
parallel(point,line)
Examples:
parallel(A, B) draws the line through point A that is parallel to line B.
parallel(3–2i, x+y–5) draws the line through the point (3, –2) that is parallel to the line whose
equation is x+y=5; that is, the line whose equation is y=–x+1.
Geometry functions and commands 191
Kommentare zu diesen Handbüchern