Module:Slide rule

--written by User:Bongo50 edits wikis for use on a course he plans to write on slide rules. local p = {} --p stands for package local h = {} --h stands for helper

function h.split(inputstr, sep) if sep == nil then sep = "%s" end local t={} for str in string.gmatch(inputstr, "([^"..sep.."]+)") do               table.insert(t, str) end return t end

function h.generateMeasurements local measurements = {} for num = 10, 100 do		local logNum = math.log(num/10) measurements[tostring(num/10)] = logNum * 10 end return measurements end

function h.makeCDScales(measurements) local topOutput = end

function p.makeRule( frame ) local measurements = h.generateMeasurements return h.makeCDScales(measurements) end

return p