Double poles

Taken care of double poles,
can be speed up.
factor of eps to be taken care of.