Convert from polar coordinates to rectangular coordinates.
Input: (1, π/4)
The equation for converting from polar to rectangular coordinates is as follows:
x = r cos(θ)
y = r sin(θ)
The polar coordinate (1, π/4) is equivalent to the rectangular coordinate (3, 2).