Unit 1: Programming Basics

Lesson 2: Writing Useful Functions - Pre-activity

Scientific Context: Coordinate Systems

The coordinate system is a method of specifying points of interest by defining distances from a fixed reference point. Typically, the most familiar representation is Cartesian coordinates, a rectangular system of measurement that enables you to locate points using horizontal and vertical coordinates. The horizontal values, called X-coordinates, are measured along the X-axis. The vertical values, called Y-coordinates, are measured along the Y-axis. The intersection of the X- and Y-axes is called the origin point, which represents the 0,0 location of the coordinate system. Some physical systems, however, are more intuitively represented by specifying the distance and the direction from a given point. This mode of measurement is quite helpful in working with angles. Identifying an appropriate coordinate system is one of the first, most important steps in solving many physical problems.

Fundamental Principles: Polar Coordinates

The location of a point in a Cartesian plane (2D) can be expressed in either the rectangular coordinates (x, y) or the polar coordinates (r, θ) as shown in the figure below.

The relationships between these two sets of coordinates are given by the following equations:

$$x = r \cos(\theta)\qquad\qquad\qquad(1)$$$$y = r \sin(\theta)\qquad\qquad\qquad(2)$$$$r = \sqrt{x^2 + y^2}\qquad\qquad\quad(3)$$$$\theta = \tan^{-1}\frac{y}{x}\qquad\qquad\qquad(4)$$

Pre-Activity Questions

1. What are the polar coordinates of a point at $x=$4 cm, $y=$3 cm?


In [1]:
## your code here
## or 
## type what you put in calculator (safer to convert cell to markdown)

your explanation here (delete this)

2. What are the rectangular coordinates of a point at $r =$ 8 cm, $\theta = 29^\circ$?


In [2]:
## your code here
## or 
## type what you put in calculator (safer to convert cell to markdown)

your explanation here (delete this)