infinite integration approximator working