added NaN test for elt_divide