Arc Length
Returns the length of the arc of a curve between two points on the curve. The curve is an expression, the
independent variable is declared, and the two points are dened by values of the independent variable.
This command can also accept a parametric denition of a curve. In this case, the expression is a list of 2
expressions (the rst for x and the second for y) in terms of a third independent variable.
arcLen(expr, real1, real2)
Examples:
arcLen(x^2, x, –2, 2) returns 9.29….
arcLen({sin(t), cos(t)}, t, 0, π/2) returns 1.57…
Tests
Collinear
Takes a set of points as argument and tests whether or not they are collinear. Returns 1 if the points are
collinear and 0 otherwise.
is_collinear(point1, point2, …, pointn)
Example:
is_collinear(point(0,0), point(5,0), point(6,1)) returns 0
On circle
Takes a set of points as argument and tests if they are all on the same circle. Returns 1 if the points are all on
the same circle and 0 otherwise.
is_concyclic(point1, point2, …, pointn)
Example:
is_concyclic(point(-4,-2), point(-4,2), point(4,-2), point(4,2)) returns 1
On object
Tests whether a point is on a geometric object. Returns a number (1 to n number of sides) representing the
segment that contains the point if it is and 0 otherwise.
is_element(point, object)
Example:
is_element(point(2/√2,2/√2), circle(0,1)) returns 1.
is_element(point(0,-5), square(point(3,3),point(-5,3)) returns 3.
Parallel
Tests whether or not two lines are parallel. Returns 1 if they are and 0 otherwise.
is_parallel(line1, line2)
Example:
is_parallel(line(2x+3y=7),line(2x+3y=9) returns 1.
Geometry functions and commands 203
Komentarze do niniejszej Instrukcji