I rewrote the program from R to Python, but for some reason the values of y(x) on Python jump too much depending on N, at n=100 the order of ordinates is tens, at 1000 the o