# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 2 (SageMath)
#     language: python
#     name: python2
# ---

# # Classwork 2
# ## <NAME> and <NAME>

import coor as coor
import pathlength as path
import kinematics as kin

# ### Problem 1
# Implement 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.

coor.coor(3,1,5)

# ### Problem 3
# Implement 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 

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)



StarcoderdataJupyterScriptsDedupFiltered