Module talk:ET: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Ganaram inukshuk (talk | contribs)
Created page with "== Ratios for ed-phi, ed-e, and ed-pi == <pre> local common_suffix = { ['3/2'] = 'f', ['1618033988749895/1000000000000000'] = 'ϕ', ['2'] = 'o', ['2/1'] = 'o', ['3'] = 't..."
 
Ganaram inukshuk (talk | contribs)
m Clarification on what had happened
Line 21: Line 21:
}
}
</pre>
</pre>
I had to undo a recent change (see above) since it was resulting in several templates breaking; specifically, the rat module was taking a very long time to calculate these large ratios and resulting in error 24. If these changes are necessary, might I suggest hardcoding them instead? [[User:Ganaram inukshuk|Ganaram inukshuk]] ([[User talk:Ganaram inukshuk|talk]]) 01:15, 22 January 2024 (UTC)
I had to undo a recent change (see above) since it was resulting in several templates breaking; specifically, the rat module was taking a very long time to calculate these large ratios and resulting in the interpreter terminating with signal 24. If these changes are necessary, might I suggest hardcoding them instead? [[User:Ganaram inukshuk|Ganaram inukshuk]] ([[User talk:Ganaram inukshuk|talk]]) 01:15, 22 January 2024 (UTC)

Revision as of 01:17, 22 January 2024

Ratios for ed-phi, ed-e, and ed-pi

local common_suffix = {
	['3/2'] = 'f',
	['1618033988749895/1000000000000000'] = 'ϕ',
	['2'] = 'o',
	['2/1'] = 'o',
	['3'] = 't',
	['3/1'] = 't',
	['2718281828459045/1000000000000000'] = 'n',
	['3141592653589793/1000000000000000'] = 'π'
	
}
local common_ratio = {
	['f'] = rat.new(3, 2),
	['ϕ'] = rat.new(1618033988749895, 1000000000000000),
	['o'] = 2,
	['t'] = 3,
	['n'] = rat.new(2718281828459045, 1000000000000000),
	['π'] = rat.new(3141592653589793, 1000000000000000)
}

I had to undo a recent change (see above) since it was resulting in several templates breaking; specifically, the rat module was taking a very long time to calculate these large ratios and resulting in the interpreter terminating with signal 24. If these changes are necessary, might I suggest hardcoding them instead? Ganaram inukshuk (talk) 01:15, 22 January 2024 (UTC)