updated seq.c, correct the mistake related to integral.