POTE tuning: Difference between revisions
m Remove bold of vectors in body text cuz I don't find it easy to read |
→Computer Program for TE and POTE: integrated call into program listing otherwise it would be hard to input |
||
Line 27: | Line 27: | ||
Note: this program depends on [https://scipy.org/ Scipy]. | Note: this program depends on [https://scipy.org/ Scipy]. | ||
< | <syntaxhighlight lang="python"> | ||
import numpy as np | import numpy as np | ||
from scipy import linalg | from scipy import linalg | ||
Line 46: | Line 46: | ||
pote_gen = te_gen/te_map[0] | pote_gen = te_gen/te_map[0] | ||
print (1200*pote_gen) | print (1200*pote_gen) | ||
# taking 7-limit magic as an example ... | |||
seven_limit = [2, 3, 5, 7] | seven_limit = [2, 3, 5, 7] | ||
map_magic = [[1, 0, 2, -1], [0, 5, 1, 12]] | map_magic = [[1, 0, 2, -1], [0, 5, 1, 12]] | ||
# to find TE and POTE you input | |||
find_te (map_magic, seven_limit) | find_te (map_magic, seven_limit) | ||
</ | </syntaxhighlight> | ||
Output: | Output: |