Template:Simple recursion
Sarna News
- Bad ‘Mechs - Sentinel
- HEXTECH Review - Wave 3 Brings More Urban Options To Your Battlefield
- Your BattleTech News Round-Up For March, 2024
- Crashing 'Mechs With Jennifer Brozek, Author Of The Rogue Academy Trilogy
- Getting The Word Out With Rem Alternis, Catalyst Community & Marketing Director
- Read more →
This template uses Lua: |
Usage[edit]
{{Simple recursion|left repeated text|non-repeated text|right repeated text|depth}}
Example[edit]
"{{Simple recursion|a|b|c|4}}"
gives "aaaabcccc""{{Simple recursion|f( |f(x) + g|) + g|7}}"
gives "f( f( f( f( f( f( f( f(x) + g) + g) + g) + g) + g) + g) + g) + g"{{math|[[w:Golden ratio|<var>φ</var>]] ≈ {{#expr: {{Simple recursion|(|1|)^-1+1|35}}}}}}"
gives "φ ≈ 1.6180339887499" (iterative methoditerative method, finding the largest of the solutions to <math>\varphi^{-1} = \varphi - 1</math>)