{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "0b5b90b0",
   "metadata": {},
   "source": [
    "# 05-17 · Логарифмы и экспоненты\n",
    "\n",
    "Практика к разделу [«Логарифмы и экспоненты»](../../site/chapters/glava-05/05-17-logarifmy.html)."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "51875689",
   "metadata": {},
   "source": [
    "## Цель\n",
    "\n",
    "Понять логарифм как обратную операцию к степени."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "b9613da8",
   "metadata": {},
   "source": [
    "## Рабочий пример"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "ad8556b7",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T12:02:56.860338Z",
     "iopub.status.busy": "2026-08-16T12:02:56.860231Z",
     "iopub.status.idle": "2026-08-16T12:02:56.877852Z",
     "shell.execute_reply": "2026-08-16T12:02:56.877342Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "8\n",
      "3.0\n"
     ]
    }
   ],
   "source": [
    "import math\n",
    "print(2 ** 3)\n",
    "print(math.log2(8))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "c875b084",
   "metadata": {},
   "source": [
    "## Задание ★ Базовая практика\n",
    "\n",
    "Посчитайте log2(1024) и выведите результат (ожидается 10.0)."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "a1db517f",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T12:02:56.878807Z",
     "iopub.status.busy": "2026-08-16T12:02:56.878697Z",
     "iopub.status.idle": "2026-08-16T12:02:56.880905Z",
     "shell.execute_reply": "2026-08-16T12:02:56.880395Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "10.0\n"
     ]
    }
   ],
   "source": [
    "import math\n",
    "print(math.log2(1024))"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Cartesian Python 3.14",
   "language": "python",
   "name": "cartesian-python314"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.14.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
