//  Data Structures with Java by John R. Hubbard
//  Copyright McGraw-Hill, 2001
//  Problem 1.20 on page 22


public class Pr0129
{ public static void main(String[] args)
  { Point p = Point.polar(10.0,Math.PI/6);
    System.out.println("p = " + p);
    System.out.println("p.magnitude() = " + p.magnitude());    
    System.out.println("p.amplitude() = " + p.amplitude());    
  }
}
