<jupyter_start><jupyter_text>Classwork 2 <NAME> and <NAME><jupyter_code>import coor as coor
import pathlength as path
import kinematics as kin<jupyter_output><empty_output><jupyter_text>Problem 1Implement a function which will return a set of coordinates equally spacing an interval. $n$, the first positional parameter for .coor() is the number of coordinates to use between the endpionts. The result will be $n+1$ intervals.<jupyter_code>coor.coor(3,1,5)<jupyter_output><empty_output><jupyter_text>Problem 3Implement a function which will use finite difference approixmations to calculate the velocity and acceleration given a set of position points with arbitrary spacing in time. The first<jupyter_code>kin.kinematics([0, 0.5, 1.5, 2.2], [0, 0.5, 1.5, 2.2])
points = [(0,0), (0,3), (3,3), (3,0)]
x = [p[0] for p in points]
y = [p[1] for p in points]
path.pathlength(x,y)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11061946902654868, 'fraction_numerical': 0.034292035398230086, 'mean_word_length': 6.357723577235772, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '371189', 'license': 'MIT', 'n_tokens_mistral': 327, 'n_tokens_neox': 308, 'n_words': 106, 'path': 'cw-02.ipynb', 'repo_name': 'chapman-phys220-2016f/cw-02-aareston', 'size': '918'}