<jupyter_start><jupyter_text>Exercise 5.18 Plots L vs T from a source file and fits polynomials of varying degrees to it<jupyter_code>p1.part_a()<jupyter_output><empty_output><jupyter_text>Below are the polynomials being fit to the data<jupyter_code>p1.part_b()<jupyter_output><empty_output><jupyter_text>Exercise 5.22 Computes the midpoint rule in different forms<jupyter_code>p2.midpointint(p2.function, 1, 3, 50)[0]
p2.sum_vectorized(p2.function, 1, 3, 50)
p2.sum_numpy(p2.function, 1, 3, 50)<jupyter_output><empty_output><jupyter_text>Exercise 5.23, 5.24, 5.25 (3 part) Lagrange Interpolation<jupyter_code>p4.graph(p4.sin, 20, 0, 10, [0,10,-2,2])
p5.problem_5_25()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12750716332378223, 'fraction_numerical': 0.07593123209169055, 'mean_word_length': 8.445945945945946, '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': '6324', 'license': 'MIT', 'n_tokens_mistral': 325, 'n_tokens_neox': 291, 'n_words': 57, 'path': 'hw-2-C0deMonkee.ipynb', 'repo_name': 'chapman-phys227-2016s/hw-2-C0deMonkee', 'size': '698'}