summaryrefslogtreecommitdiffstats
path: root/fiz/vaje/5/meritev.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xfiz/vaje/5/meritev.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/fiz/vaje/5/meritev.py b/fiz/vaje/5/meritev.py
new file mode 100755
index 0000000..1c6859e
--- /dev/null
+++ b/fiz/vaje/5/meritev.py
@@ -0,0 +1,14 @@
+#!/usr/bin/python3
+import pandas
+import math
+import sys
+m=pandas.read_csv("meritev.tsv", sep='\t')
+m.index.name = "idx"
+m["t"] = (m["t10"]/10)
+m["centripetalni"] = (4*math.pi**2*m["r"]/m["t"]**2)
+m["tt"] = (m["t"]**2)
+print("sredina:", file=sys.stderr)
+print(m.mean(), file=sys.stderr)
+print("standardna deviacija", file=sys.stderr)
+print(m.std(), file=sys.stderr)
+m.to_csv("/dev/stdout", sep="\t")