Jump to content
Wikipedia The Free Encyclopedia

Template:Simple recursion/doc

From Wikipedia, the free encyclopedia
icon This is a documentation subpage for Template:Simple recursion.
It may contain usage information, categories and other content that is not part of the original template page.
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|[[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 ]


AltStyle によって変換されたページ (->オリジナル) /