settings.outformat = "pdf"; settings.render = 0; unitsize(50mm); real s(real x) { return min(x - floor(x),ceil(x) - x); } real Tpartial(real x,int n) { real result = 0; for (int i=0; i