「モジュール:数学」の版間の差分

編集の要約なし
編集の要約なし
編集の要約なし
51行目: 51行目:
end
end


function p.sigma(frame) -- the sum of [1st]k^2+[2nd]k+[3rd] as k goes from [4th] to [5th]
function p.sigma(frame) -- the sum of ([1] * k^2) + ([2] * k^1) + ([3] * k^0) as k goes from [4] to [5]
local k2, k1, k0 = tonumber(frame.args[1]), tonumber(frame.args[2]), tonumber(frame.args[3])
local k2, k1, k0 = tonumber(frame.args[1]), tonumber(frame.args[2]), tonumber(frame.args[3])
local firstk, lastk = tonumber(frame.args[4]), tonumber(frame.args[5])
local firstk, lastk = tonumber(frame.args[4]), tonumber(frame.args[5])
3,281

回編集