<jupyter_start><jupyter_text>Session 6 Import numpy and matplotlib<jupyter_code>%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
from astropy.table import Table<jupyter_output><empty_output><jupyter_text>Define sine and cosine<jupyter_code>y = np.sin(x)
z = np.cos(x)<jupyter_output><empty_output><jupyter_text>Plot sin(x) and cosine(x) with x between 0 and 2pi with 1000 entries<jupyter_code>x = np.linspace(0, 2*np.pi, 1000)
table = Table([x, y, z], names=['x','sin(x)','cos(x)'])
print(table)<jupyter_output><empty_output><jupyter_text>Print the first 10 values of x, sin(x), and cos(x)<jupyter_code>x = np.linspace(0, 2*np.pi, 10)
for i in range(len(x)):
    print(f"{x[i]}\t{y[i]}\t{z[i]}")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15951742627345844, 'fraction_numerical': 0.02546916890080429, 'mean_word_length': 8.109756097560975, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '199033', 'license': 'MIT', 'n_tokens_mistral': 333, 'n_tokens_neox': 311, 'n_words': 63, 'path': 'session 6.ipynb', 'repo_name': 'wendychen0/astr-19', 'size': '746'}