summaryrefslogtreecommitdiffstats
path: root/fiz/vaje/4/preseki.py
diff options
context:
space:
mode:
Diffstat (limited to 'fiz/vaje/4/preseki.py')
-rwxr-xr-xfiz/vaje/4/preseki.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fiz/vaje/4/preseki.py b/fiz/vaje/4/preseki.py
index 7a35c66..bafcec7 100755
--- a/fiz/vaje/4/preseki.py
+++ b/fiz/vaje/4/preseki.py
@@ -22,4 +22,4 @@ zero_crossings_v = numpy.where(numpy.diff(numpy.sign(v)))[0]
print("v\tx\tt\tabsx\tln")
for i in range(len(zero_crossings_x)-1):
print(f"{v[zero_crossings_x[i]]}\t{x[zero_crossings_v[i]]}\t{t[zero_crossings_v[i]]}\t{abs(x[zero_crossings_v[i]])}\t{log(abs(x[zero_crossings_v[i]])/0.0943867)}")
-print(f"za {len(zero_crossings_x/2)} nihajev je preteklo {t[zero_crossings_x[len(zero_crossings_x)-1]]-t[zero_crossings_x[0]]} sekund, zato je nihajni čas {(t[zero_crossings_x[len(zero_crossings_x)-1]]-t[zero_crossings_x[0]])/(len(zero_crossings_x)/2)}", file=stderr)
+print(f"za {len(zero_crossings_x/2)} nihajev je preteklo {t[zero_crossings_x[len(zero_crossings_x)-1]]-t[zero_crossings_x[0]]} sekund, zato je nihajni cas {(t[zero_crossings_x[len(zero_crossings_x)-1]]-t[zero_crossings_x[0]])/(len(zero_crossings_x)/2)}", file=stderr)