001package algs11; 002import stdlib.*; 003 004public class XDrawFunctions { 005 public static void main (String[] args) { 006 int N = 100; 007 StdDraw.setXscale (0, N); 008 StdDraw.setYscale (0, N * N); 009 StdDraw.setPenRadius (.01); 010 for (int i = 1; i <= N; i++) { 011 StdDraw.point (i, i); 012 StdDraw.point (i, i * i); 013 StdDraw.point (i, i * Math.log (i)); 014 } 015 } 016}