HP Prime for All

English  Русский 

Syntax

line(Point1, Point2) or line(a*x+b*y+c) or line(point1, slope=realm)

Description

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.

Example

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

line — Discussion