# Line slope calculator x-y=-1

**Straight line given by points A[0; 1] and B[1; 2]**

## Calculation:

**Slope-intercept form of line:**y = x+1

**Canonical form of the line equation:**x-y+1 = 0

**Parametric form of the line equation:**

x = t

y = t+1 ; t ∈ R

**Slope:**m = 1

**Slope angle of line: φ =**45° = 0.7854 rad

**X intercept:**x

_{0}= -1

**Y intercept:**y

_{0}= q = 1

**Distance line from the origin:**d

_{0}= 0.7071

**The length of the segment AB: |AB| =**1.4142

**Vector: AB =**(1; 1)

**Normal vector: n =**(1; -1)

**Midpoint of the segment AB: M =**[0.5; 1.5]

**Perpendicular Bisector equation:**x+y-2 = 0

**Vector OA = (0; 1) ; |OA| = 1**

**Vector OB = (1; 2) ; |OB| = 2.2361**

**Scalar product OA .OB = 2**

**Angle ∠ AOB = 26°33'54″ = 0.4636 rad**