Angle between w and regr implemented (not working)