Template:Simple recursion

From PS3 Developer wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
[edit] Template documentation

Usage

{{{Simple recursion|left repeated text|non-repeated text|right repeated text|depth}}

Example

  • "{{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 "φExpression error: Unrecognized punctuation character "["." (iterative method, finding the largest of the solutions to <math>\varphi^{-1} = \varphi - 1</math>)

See also