Module:Ser:修订间差异
跳转到导航
跳转到搜索
(建立内容为“local module = {} local getArgs = require('Module:Arguments').getArgs function module.latina() local now = os.time() local start = os.time({year=2021,month=9,d…”的新页面) |
无编辑摘要 |
||
第6行: | 第6行: | ||
local start = os.time({year=2021,month=9,day=12,hour=12}) |
local start = os.time({year=2021,month=9,day=12,hour=12}) |
||
local x = start-now |
local x = start-now |
||
local ratio = math.pi + 0.0244 * (-1*math.sin(math.pi*x/43200/31.1) + 0.8*math.sin(math.pi*x/43200.0) + 0.6*math.sin(x/10000.0) + (2.2+0.44*sin(x)) * math.sin(math.pi*(x/86400)*(x/43200))) |
local ratio = math.pi + 0.0244 * (-1*math.sin(math.pi*x/43200/31.1) + 0.8*math.sin(math.pi*x/43200.0) + 0.6*math.sin(x/10000.0) + (2.2+0.44*math.sin(x)) * math.sin(math.pi*(x/86400)*(x/43200))) |
||
return string.format("%0.5f","ratio") |
return string.format("%0.5f","ratio") |
||
end |
end |
2021年9月13日 (一) 14:13的版本
可在Module:Ser/doc创建此模块的帮助文档
local module = {}
local getArgs = require('Module:Arguments').getArgs
function module.latina()
local now = os.time()
local start = os.time({year=2021,month=9,day=12,hour=12})
local x = start-now
local ratio = math.pi + 0.0244 * (-1*math.sin(math.pi*x/43200/31.1) + 0.8*math.sin(math.pi*x/43200.0) + 0.6*math.sin(x/10000.0) + (2.2+0.44*math.sin(x)) * math.sin(math.pi*(x/86400)*(x/43200)))
return string.format("%0.5f","ratio")
end
return module