01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
package algs11;
import stdlib.*;

public class XDrawFunctions {
  public static void main (String[] args) {
    int N = 100;
    StdDraw.setXscale (0, N);
    StdDraw.setYscale (0, N * N);
    StdDraw.setPenRadius (.01);
    for (int i = 1; i <= N; i++) {
      StdDraw.point (i, i);
      StdDraw.point (i, i * i);
      StdDraw.point (i, i * Math.log (i));
    }
  }
}