Nest
f applied n times to x.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
Nest✓Nest(f, x, n) applied to , times in a row.Typed signatures
| Type | Package | Applies |
|---|---|---|
(function: any, x: any, n: integer) -> any | combinatorics | always |
Details
- can be a Function literal or a plain symbol; an undeclared symbol stays an unevaluated call, the way shows below.
- See NestList for every intermediate step, and FixedPoint for iterating until the value stops changing instead of a fixed count.
Examples
Neat examples #
About
| Examples | 17 |
|---|---|
| Checked against | Wolfram Language 17 agreemathlib4 5 agree |
| Crosswalk | Wolfram Language |
Implementation
mapped
mathlib4packages/oracle/src/mappings.tsA negative or non-integer count fails to elaborate, where ours holds the call.
See also: NestList, FixedPoint