This Demonstration plots the graphs of the functions on the flat torus on the left and on the non-flat torus with zero center radius on the right. The standard example is (when ), which gives a closed curve if is rational or a nonclosed curve that is dense on the torus when is irrational. The more general case, when , shows some interesting behavior of the curves obtained on both tori. The parameter is a scaling factor.