Template:Simple recursion
Appearance
![]() | This template uses Lua: |
Usage
{{Simple recursion|left repeated text|non-repeated text|right repeated text|depth}}
Example
"{{Simple recursion|a|b|c|4}}"
gives "String Module Error: function rep expects a number as second parameter, received "a"bString Module Error: function rep expects a number as second parameter, received "c"""{{Simple recursion|f( |f(x) + g|) + g|7}}"
gives "String Module Error: function rep expects a number as second parameter, received "f("f(x) + gString Module Error: function rep expects a number as second parameter, received ") + g""{{math|[[Golden ratio|<var>φ</var>]] ≈ {{#expr: {{Simple recursion|(|1|)^-1+1|35}}}}}}"
gives "φ ≈ Expression error: Unrecognized punctuation character "["." (iterative method, finding the largest of the solutions to )