Definition has the following format:
(x1,y1)±(x2,y2)±(x3,y3)± . . .
where (x1,y1) specifies the first node, (x2,y2) specifies the second node etc. If nodes are linked with plus sign, the points are connected with a segment. In case of minus sign, the segment remains invisible.
Examples:
(0,1)+(1,0)+(0,-1)+(-1,0)+(0,1) ; square
(-1,-1)+(-1,1)-(1,-1)+(1,1) ; two parallel segments
Each coordinate of each node may be specified with an expression. If expression is used, it should not (after evaluation) contain variable
Example:
in Calc Window
y=x^2 ; define function
x1=0 y1=y ; coordinates of the first point
x2=1 y2=y ; coordinates of the second point
x3=2 y2=y ; coordinates of the third point
In Graph Window, define broken line as
(x1,y1)+(x2,y2)+(x3,y3)
You can assign the whole node to a variable.
Example:
in Calc Window
y=x^2 ; define function
x=0 p1=(x,y) ; first point
x=1 p2=(x,y) ; second point
x=2 p3=(x,y) ; third point
In Graph Window, define broken line as
p1+p2+p3
Finally, you can assign the whole definition to a variable
Example:
in Calc Window
y=x^2 ; define function
x=0 L=(x,y) ; first point
x=x+1 L=L+(x,y) ; repeat several times – next points
In Graph Window, define broken line as
L