<jupyter_start><jupyter_text>Classwork 6 <NAME>, <NAME>, <NAME>, <NAME>, <NAME> 3/10/16Euler's method is an algorithm that can be used to approximate an ODE that otherwise can't be solved.Euler's method approximates function f based on f'. We can do this by approximating the f(x+dx) point with:given: $$ f'(x) \leftrightharpoons a \in x $$$$ f(a + dx) = f(a) + dx \cdot f'(a) $$  Exercise C.1 Solving a nonhomogenous linear ODE solves u' = 2u - 1 using both Euler's method and symbolically, using sympy's dsolve.<jupyter_code>p1.run()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12743362831858407, 'fraction_numerical': 0.017699115044247787, 'mean_word_length': 5.086021505376344, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '565088', 'license': 'MIT', 'n_tokens_mistral': 210, 'n_tokens_neox': 192, 'n_words': 73, 'path': 'CW6.ipynb', 'repo_name': 'chapman-phys227-2016s/cw-6-classwork-team', 'size': '601'}