This commit is contained in:
zenloger
2026-02-05 21:49:15 +03:00
parent 5385641d28
commit 339e5f210c
5 changed files with 47 additions and 6 deletions

View File

@@ -876,6 +876,37 @@
"\n"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "78eb2e53",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([1.41421356, 5. ])"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import numpy as np\n",
"a = np.array([[1, 1], [3, 4]])\n",
"np.hypot(a[:, 0], a[:, 1])"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "6f726e54",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,