POTE tuning: Difference between revisions

m Remove bold of vectors in body text cuz I don't find it easy to read
Xenwolf (talk | contribs)
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].  


<pre>
<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)
</pre>


Take 7-limit magic as an example, to find TE and POTE you input:
# taking 7-limit magic as an example ...
<pre>
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)
</pre>
</syntaxhighlight>


Output:  
Output: