Module:Infobox ET: Difference between revisions
m Better restrictions for consistency limits computation |
mNo edit summary |
||
Line 107: | Line 107: | ||
-- 3. When an equave has too large factors, computations explode | -- 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 | if rat.geq(equave, rat.new(3, 2)) and rat.is_prime_ratio(equave) and rat.max_prime(equave) <= 47 then | ||
local consistency = tonumber(frame.args['Consistency']) | |||
if consistency == nil then | |||
consistency = l.consistency_limit(size, equave, false, 18) | |||
end | |||
if consistency == nil then | |||
consistency = 'at least 18' | |||
end | |||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
'Consistency limit', | 'Consistency limit', | ||
consistency | |||
}) | }) | ||
table.insert(infobox_data, { | table.insert(infobox_data, { |