#!/usr/bin/env ruby

h1 = 100.0
h2 = (ARGV.shift || 53.0).to_f

def my_sin(angle)
  Math::sin(angle.to_f * Math::PI / 180.0)
end

def my_cos(angle)
  Math::cos(angle.to_f * Math::PI / 180.0)
end

0.upto(9) do |i|
  if i % 2 == 0 then r = h1 else r = h2 end
  theta = 90 + i * 36
  printf "%-7.3f %-7.3f\n", r * my_cos(theta), -r * my_sin(theta)
end
