program that calculate green function using integral mathod.