Added non homogeneoous linear ruler eq