Module:SB tree: Difference between revisions

Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
No edit summary
Line 65: Line 65:
-- and edge extend are needed
-- and edge extend are needed
-- Transpiled from python code to lua with aid of ChatGPT
-- Transpiled from python code to lua with aid of ChatGPT
-- Depths start at 1 rather than 0, for lua code purposes
function p.sb_tree_depths(depth, edge_extend)
function p.sb_tree_depths(depth, edge_extend)
-- Default parameter values
-- Default parameter values
Line 71: Line 70:
edge_extend = edge_extend or 0
edge_extend = edge_extend or 0
     -- Initial depths of the nodes are 0
     -- Initial depths of the initial ratios are 1 for lua programming purposes
     local tree = {1, 1}
     local tree = {1, 1}