RecursionTemplate
The RecursionTemplate
app is a template for implementing recursive procedures to calulate factorial, Fibonacci number, and combinations. The default return value (before implementing each function) is n
. Move sliders to recursively calculate factorial(n)
, fibonacci(n)
, and C(n, k)
.
The template is for implementing recursive procedures to calulate factorial, Fibonacci number, and combinations defined as follows:
Description | Definition |
---|---|
Factorial | |
Fibonacci | |
Combinations (see Pascal’s Triangle) |
All components retain their default properties, — except all sliders have a MaxValue
of 12
, a MinValue
of 0
, a ThumbPosition
of 6
, and Width
and Height
set to Fill parent...
where necessary to center UX components.
🔗 permalink, 🔩 repository, and .AIA
for this page.