This repository has been archived on 2025-01-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
MO_pracadomowa/rozniczkowanie/rozniczkowanie.py
2024-12-03 13:46:30 +01:00

33 lines
553 B
Python

#
x = [0.1, 0.3, 0.5, 0.7, 0.9, 1.1, 1.3]
y = [20, 22.222222, 8, 4.081633, 2.469136, 1.652893, 0.83665]
# x = [0.6, 0.7, 0.8, 0.9, 1.0]
# y = [-0.51083, -0.35667, -0.22314, -0.10536, 0.0]
def oblicz(x):
result = []
for i in range(len(x) - 1):
arr = [round(y[i] - y[i - 1], 5) for i in range(len(y) - 1, 0, -1)]
h = x[1] - x[0]
d2f = []
for i in range(len(df) -1, -0, -1):
d2f.append(round(df[i] - df[i-1], 5))
d3f = []
for i in range(len(d2f) -1, -0, -1):
d3f.append(round(d2f[i] - d2f[i-1], 5))
print(d3f)
f = 1/h