{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "fa299b52",
   "metadata": {},
   "source": [
    "# 05-15 · Геометрия с math\n",
    "\n",
    "Практика к разделу [«Геометрия с math»](../../site/chapters/glava-05/05-15-geometriya-s-math.html)."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "53c61335",
   "metadata": {},
   "source": [
    "## Цель\n",
    "\n",
    "Считать площадь и длину окружности через math.pi."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "45bea02a",
   "metadata": {},
   "source": [
    "## Рабочий пример"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "c1f7eb6a",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T12:02:55.209926Z",
     "iopub.status.busy": "2026-08-16T12:02:55.209794Z",
     "iopub.status.idle": "2026-08-16T12:02:55.225679Z",
     "shell.execute_reply": "2026-08-16T12:02:55.225053Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "50.27\n"
     ]
    }
   ],
   "source": [
    "import math\n",
    "radius = 4\n",
    "print(round(math.pi * radius ** 2, 2))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "86765c9c",
   "metadata": {},
   "source": [
    "## Задание ★ Базовая практика\n",
    "\n",
    "Посчитайте площадь круга радиусом 10, округлите до 2 знаков и выведите (ожидается 314.16)."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "fb83d433",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T12:02:55.226878Z",
     "iopub.status.busy": "2026-08-16T12:02:55.226748Z",
     "iopub.status.idle": "2026-08-16T12:02:55.229397Z",
     "shell.execute_reply": "2026-08-16T12:02:55.228876Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "314.16\n"
     ]
    }
   ],
   "source": [
    "import math\n",
    "radius = 10\n",
    "ploshad = math.pi * radius ** 2\n",
    "print(round(ploshad, 2))"
   ]
  }
 ],
 "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
}
