I modify the formula since I was using a false transformation before (I forgot the basic calculus even).
Even though I make the code execute, but, honestly, I am not clear what happens for SAS calculation the integral behind the scene, nor the usage of eps, peak and so on. I would ask someone who really knows about that. On the other hand, probably you can ask for a check on MatLab since so many people have mentioned its superiority on integration.
JingJu