<jupyter_start><jupyter_text>Exercise 2Add the specified code for each code cell, running the cells _in order_.Note this module involves verifying some [trigonometric identities](https://en.wikipedia.org/wiki/List_of_trigonometric_identities). Import the [math](https://docs.python.org/3/library/math.html) module so you can use mathematical functions<jupyter_code>import math<jupyter_output><empty_output><jupyter_text>Choose any number between 0 and 360 and assign it to a variable `angle_degrees`.<jupyter_code>angle_degrees = 26<jupyter_output><empty_output><jupyter_text>Use an appropriate function from the `math` module to convert the degrees value into radians. Store the result in a variable `theta`<jupyter_code>theta = math.radians(angle_degrees)<jupyter_output><empty_output><jupyter_text>Calculate and output the [tangent](https://en.wikipedia.org/wiki/Trigonometric_functionstan) of `theta`<jupyter_code>print(math.tan(theta))<jupyter_output>0.4877325885658614<jupyter_text>Calculate $\tan(\theta + \pi)$. Output the value to verify that it is the same as $\tan \theta$ above.<jupyter_code>print(math.tan(theta + math.pi))<jupyter_output>0.4877325885658615<jupyter_text>Calculate $\sin 2 \theta$ and $2\sin \theta \cos \theta$. Print the values to verify that they are equivalent.<jupyter_code>print(math.sin(2*theta))
print(2*math.sin(theta)*math.cos(theta))<jupyter_output>0.7880107536067219
0.788010753606722
{'fraction_non_alphanumeric': 0.10877192982456141, 'fraction_numerical': 0.05543859649122807, 'mean_word_length': 7.695121951219512, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 22, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '249263', 'license': 'MIT', 'n_tokens_mistral': 528, 'n_tokens_neox': 474, 'n_words': 110, 'path': 'exercise-2/exercise.ipynb', 'repo_name': 'Amanda-Phillips/ch5-functions', 'size': '1425'}