# Venus¶

OK. Venus is at its maximum angular separation from the Sun when Earth-Venus-Sun form a right triangle—which is when the Earth-Venus line-of-sight is tangent to the orbit of Venus...

In [32]:
%matplotlib inline

import matplotlib.pyplot as plt
plt.style.use('seaborn-whitegrid')

import numpy as np
import pandas as pd

In [33]:
theta = []
thetaprime = []

b = 0.723
pi = 3.141592653

for i in range(-500,500):
thetai = pi*i/1000
y = np.sin(thetai)
x = np.cos(thetai)
yprime = y - b
xprime = x
thetaprimei = np.arctan(yprime/xprime)
theta = theta + [thetai]
thetaprime = thetaprime + [thetaprimei]

/anaconda3/lib/python3.6/site-packages/ipykernel_launcher.py:21: FutureWarning: from_items is deprecated. Please use DataFrame.from_dict(dict(items), ...) instead. DataFrame.from_dict(OrderedDict(items)) may be used to preserve the key order.

<matplotlib.axes._subplots.AxesSubplot at 0x11a122940>