created: 20240415102801809 modified: 20240425142244830 tags: title: test-collatz type: text/vnd.tiddlywiki \procedure collatz(n) <% if [match[1]] %> 1 <% elseif [remainder[2]match[1]] %> <> - ^^@@<>@@^^ → <$transclude $variable="collatz" n = {{{ [multiply[3]add[1]] }}}/> <% else %> <> - ^^@@<>@@^^ → <$transclude $variable="collatz" n = {{{ [divide[2]] }}}/> <% endif %> \end <> <>