Module:Powharmonic series: Difference between revisions
ArrowHead294 (talk | contribs) No edit summary |
ArrowHead294 (talk | contribs) No edit summary |
||
| Line 15: | Line 15: | ||
"! Change (cents)\n" .. | "! Change (cents)\n" .. | ||
"! Octave-reduced\n" | "! Octave-reduced\n" | ||
local fmt_mul = string.format(" %%+.%df", tonumber(frame.args["prec"])) | local fmt_mul = string.format("%%+.%df", tonumber(frame.args["prec"])) | ||
local fmt_cent = " %+.2f" | local fmt_cent = "%+.2f" | ||
local p_prev = 0 | local p_prev = 0 | ||
local p_current = 0 | local p_current = 0 | ||
| Line 25: | Line 25: | ||
"|-\n" .. | "|-\n" .. | ||
"| " .. i .. "\n" .. | "| " .. i .. "\n" .. | ||
"| " .. i .. "<sup>" .. | "| " .. i .. "<sup>" .. expo .. "</sup>\n" .. | ||
"| " .. string.format(fmt_mul, i^expo) .. "\n" .. | "| " .. string.format(fmt_mul, i^expo) .. "\n" .. | ||
"| " .. string.format(fmt_cent, p_current) .. "\n" .. | "| " .. string.format(fmt_cent, p_current) .. "\n" .. | ||