summaryrefslogblamecommitdiffstats
path: root/fiz/vaje/5/meritev.py
blob: 1c6859e17f21fd5d867916a7c44c3b50c7974700 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
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")