HP Prime for All

English  Русский 

Syntax

is_collinear(Point1, Point2, ..., Pointn)

Description

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.

Example

is_collinear(point(0,0), point(5,0), point(6,1)) returns 0.

is_collinear — Discussion