Module:Infobox ET: Difference between revisions
m Disabling consistency limits for equaves close to 1 to avoid timeouts |
m Better restrictions for consistency limits computation |
||
Line 103: | Line 103: | ||
}) | }) | ||
end | end | ||
if rat.geq(equave, rat.new(3, 2)) then | -- 1. When an equave is too close to 1, large powers of this equave explode computations | ||
-- 2. When an equave has too many factors, the number of those factors explode computations | |||
-- 3. When an equave has too large factors, computations explode | |||
if rat.geq(equave, rat.new(3, 2)) and rat.is_prime_ratio(equave) and rat.max_prime(equave) <= 47 then | |||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
'Consistency limit', | 'Consistency limit', |