Line equation for sign compute