{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"# Recursion\n",
"\n",
"\n",
"```{figure} ../assets/recursion0.jpeg\n",
"---\n",
"scale: 10%\n",
"align: right\n",
"---\n",
"A visual form of recursion
known as the Droste effect.
Note the image within the image. \n",
"```\n",
"\n",
"In order to understand recursion, one must first understand recursion.\n",
"\n",
"**Recursion** occurs when the definition of a concept or process depends on (a simpler or previous version of) itself. \n",
"\n",
"\n",
"In the context of modern computer programming, recursion refers to **functions calling themselves**.\n",
"\n",
"These _\"recursive calls\"_ are often made with **smaller input data**.\n",
"\n",
"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n",
"