from matplotlib import pyplot import numpy a = numpy.arange(0,100,0.01) b = numpy.sqrt(a)-numpy.floor(numpy.sqrt(a)) pyplot.title('graph of fx(x)=sqrt(x)-floor(sqrt(x))') pyplot.xlabel('x') pyplot.ylabel('f(x)') pyplot.plot(a,b,'. ') pyplot.show()