summaryrefslogtreecommitdiffstats
path: root/mat/fmf
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-02-27 00:15:03 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-02-27 00:15:03 +0100
commit3fed51e23753255ffc6e660aaacf926e8ac735e7 (patch)
treedd815583d778fe36343d1843d30d4fb0d61d41e1 /mat/fmf
parentinf rn lyx (diff)
downloadsola-gimb-4-3fed51e23753255ffc6e660aaacf926e8ac735e7.tar
sola-gimb-4-3fed51e23753255ffc6e660aaacf926e8ac735e7.tar.gz
sola-gimb-4-3fed51e23753255ffc6e660aaacf926e8ac735e7.tar.bz2
sola-gimb-4-3fed51e23753255ffc6e660aaacf926e8ac735e7.tar.lz
sola-gimb-4-3fed51e23753255ffc6e660aaacf926e8ac735e7.tar.xz
sola-gimb-4-3fed51e23753255ffc6e660aaacf926e8ac735e7.tar.zst
sola-gimb-4-3fed51e23753255ffc6e660aaacf926e8ac735e7.zip
Diffstat (limited to 'mat/fmf')
-rwxr-xr-xmat/fmf/fmf.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/mat/fmf/fmf.py b/mat/fmf/fmf.py
new file mode 100755
index 0000000..87a50c3
--- /dev/null
+++ b/mat/fmf/fmf.py
@@ -0,0 +1,23 @@
+#!/usr/bin/python3
+import numpy
+a = "abcčdefghijklmnopqrsštuvwxyzžABCČDEFGHIJKLMNOPQRSŠTUVZŽ.,-"
+u = "Y-TČTNŽOF-MQUWMA-FINF-METRRJJLIWUŠVZQŠ.X-Č-GNSSIGPŽKOUUZNMFF-MNYQCXATSUGGLZJNHKIEFVULLDZTUBRŠB-ČRQHUNPVQQGPOJ.BBAYČ.VMRXGČF-MOCJQPDLGAOSKELŠ-AIŠPKATOŠŽOLZRKWUUZNMFF-M-TRZFAWBŽVŠV_"
+n = "Y-TČtNžof-mQUWMA-FINf-mEtRrJjLIWušvzQš.X-č-gnssIGPžkOuuzNmFf-mNYQcxatsuGGLzjNhkiEFvuLlDZtuBršb-ČrQHunpvqQgPOJ.bbaYč.vMrxgčf-mOcJQpDlGaoSKElš-aIšpkatOšžOLZrkwuuzNmFf-m-TrzFAwBžVŠV_"
+t = "Matematika-je-kul."
+if n.upper() != u:
+ raise Exception
+k = [
+ [1, 1, 1],
+ [0, 3, 1],
+ [2, 0, 1]]
+v = [[], [], []]
+s = -1
+for i in range(len(t)):
+ if s != i//3:
+ s = i//3
+ for j in range(3):
+ v[j].append(-1)
+ v[i%3][i//3] = a.find(t[i])
+print(numpy.dot(k, v))
+
+## ne znam matematike