Module:Infobox ET: Difference between revisions

Plumtree (talk | contribs)
Links to the previous and the next entries
Plumtree (talk | contribs)
Most restrictions removed for consistency limits
Line 119: Line 119:
local consistency = tonumber(frame.args['Consistency'])
local consistency = tonumber(frame.args['Consistency'])
-- 1. When an equave is too close to 1, large powers of this equave explode computations
if consistency == nil then
-- 2. When an equave has too many factors, the number of those factors explode computations
consistency = l.consistency_limit(size, equave, false, 17)
-- 3. When an equave has too large factors, computations explode
end
if rat.geq(equave, rat.new(3, 2)) and rat.is_prime_ratio(equave) and rat.max_prime(equave) <= 47 then
if consistency == nil then
if consistency == nil then
consistency = 'at least 17'
consistency = l.consistency_limit(size, equave, false, 17)
end
if consistency == nil then
consistency = 'at least 17'
end
end
end
if consistency ~= nil then
if consistency ~= nil then
Line 137: Line 132:
end
end
local distinct_consistency = tonumber(frame.args['Distinct consistency'])
local distinct_consistency = tonumber(frame.args['Distinct consistency'])
if rat.geq(equave, rat.new(3, 2)) and rat.is_prime_ratio(equave) and rat.max_prime(equave) <= 47 then
if distinct_consistency == nil then
if distinct_consistency == nil then
distinct_consistency = l.consistency_limit(size, equave, true, 29)
distinct_consistency = l.consistency_limit(size, equave, true, 29)
end
end
if distinct_consistency == nil then
if distinct_consistency == nil then
distinct_consistency = 'at least 29'
distinct_consistency = 'at least 29'
end
end
end
if distinct_consistency ~= nil then
if distinct_consistency ~= nil then