lesson 22/11, heavy ball method not translated yet

This commit is contained in:
elvis
2023-11-25 20:16:56 +01:00
parent b1c433832f
commit f36dec52dd
5 changed files with 3506 additions and 10 deletions

51
11-17/lesson.ipynb generated
View File

@ -12,11 +12,56 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"id": "7da43c78-28c9-4847-ae3b-1c928f79f5a3",
"metadata": {},
"outputs": [],
"source": []
"outputs": [
{
"data": {
"text/plain": [
"4-element Vector{Float64}:\n",
" 0.18246182305194636\n",
" -0.3668991739223996\n",
" 0.20260186844658193\n",
" -0.9242616501263348"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"A = randn(4, 4)\n",
"y = randn(4)\n",
"\n",
"x = A \\ y"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "ae9b165b-aac9-4b2a-8575-4646e0627098",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"4-element Vector{Float64}:\n",
" 0.0\n",
" -1.1102230246251565e-16\n",
" -1.1102230246251565e-16\n",
" -8.326672684688674e-17"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"A*x - y"
]
}
],
"metadata": {