add denominator to dpoly_r and split div method