use complex(x) instead of complex(x,0) in isapprox