public class UnitCircleClient { public static void main(String[] args) { StdDraw.setXscale( -1.6, 1.6 ); StdDraw.setYscale( -1.6, 1.6 ); double r, x, y; for (double theta=0; theta<2*Math.PI; theta+=Math.PI/100){ r = 1; // convert to xy coords & drop a circle x = r*Math.cos(theta); y = r*Math.sin(theta); StdDraw.circle( x,y, .01); } } }