Here you are:
[FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]a=yb-ya[/SIZE][/FONT]
[SIZE=2][FONT=Courier New]b=xa-xb[/FONT][/SIZE]
[SIZE=2][FONT=Courier New]c=-a*xa-b*ya[/FONT][/SIZE]
[SIZE=2][FONT=Courier New]d=[/FONT][/SIZE][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2](a*x+b*y+c)/[/SIZE][/FONT][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]Sqrt[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2](a*a+b*b)[/SIZE][/FONT][/SIZE][/FONT]
xa,ya coordinates of point a on the line
xb,yb coordinates of point b on the line
x,y coordinates of the point
a,b,c intermediate variables
d distance from point to line.
The sign of the distance determines on which side of the line the point lays. Looking from point 'a' to point 'b' all points with a positive distance lay on the left side of the line and all points with a negative distance lay on the right side.
Attached a small test program.
Best regards.