User:Hkm/Fokker block code: Difference between revisions
Created page with "This code can be used to find Fokker blocks. <syntaxhighlight=python> import numpy as np from fractions import Fraction from itertools import combinations, product from math import gcd from functools import reduce from temper.lib_temper.temper import cokernel, defactored_hnf from temper.lib_temper.optimize import lstsq from temper.lib_temper.subgroup import p_limit from temper.lib_temper.interval import factors def prime_factors(n): factors = [] for d in range(..." |
No edit summary |
||
Line 1: | Line 1: | ||
This code can be used to find Fokker blocks. | This code can be used to find Fokker blocks. | ||
<syntaxhighlight=python> | <syntaxhighlight lang=python> | ||
import numpy as np | import numpy as np | ||
from fractions import Fraction | from fractions import Fraction |