math module started

This commit is contained in:
Thomas Klaehn 2016-12-20 15:00:02 +01:00 committed by Thomas Klaehn
parent 8730ed0913
commit e311b47727
2 changed files with 15 additions and 0 deletions

0
src/math/__init__.py Normal file
View File

15
src/math/slope.py Normal file
View File

@ -0,0 +1,15 @@
'''
Created on Dec 20, 2016
@author: klaehn
'''
import numpy as np
def calc_slope(x, y, x_dist):
"""
Calculate the slope of a curve given by x and y arrays. The x_distance
gives the start and end point for the slope.
Returns x and y arrays of the slope
"""
return