diff options
Diffstat (limited to 'fiz/vaje/10/tab.py')
-rwxr-xr-x | fiz/vaje/10/tab.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fiz/vaje/10/tab.py b/fiz/vaje/10/tab.py new file mode 100755 index 0000000..cb70e75 --- /dev/null +++ b/fiz/vaje/10/tab.py @@ -0,0 +1,12 @@ +#!/usr/bin/python3 +import pandas +import sys +from math import pi +l = 23.5 +b=pandas.read_csv("/dev/stdin", sep="\t") +b.index.name = "idx" +b["x"] = (b["y"]/13*l) +b["omega"] = ((9.81/b["l"])**(1/2)) +b["f"] = (b["omega"]*0.5/pi) +b = b.astype(float).round(6); +b.to_csv("/dev/stdout", sep=sys.argv[1][0]); |