simple function returning polar coordinates