• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Simple recursion/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Simple recursion
This is the template sandbox page for Template:Simple recursion (diff).
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:String (sandbox)

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|[[Golden ratio|<var>φ</var>]] &asymp; {{#expr: {{Simple recursion|(|1|)^-1+1|35}}}}}}" gives "φ ≈ 1.6180339887499" (iterative method, finding the largest of the solutions to φ − 1 = φ − 1 {\displaystyle \varphi ^{-1}=\varphi -1} {\displaystyle \varphi ^{-1}=\varphi -1})

See also

edit
  • Template:Loop (backlinks edit)
  • Template:For loop (backlinks edit)
The above documentation is transcluded from Template:Simple recursion/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Simple_recursion/sandbox&oldid=1044566126"