Skip to content

Commit

Permalink
Merge branch 'udlbook:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
pitmonticone authored Oct 30, 2023
2 parents 21fe352 + 9266025 commit b69e7bf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Notebooks/Chap06/6_1_Line_Search.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"metadata": {
"colab": {
"provenance": [],
"authorship_tag": "ABX9TyOfxeJ15PMkIi4geDTRCz3c",
"authorship_tag": "ABX9TyN4E9Vtuk6t2BhZ0Ajv5SW3",
"include_colab_link": true
},
"kernelspec": {
Expand Down Expand Up @@ -131,22 +131,23 @@
"\n",
" print('Iter %d, a=%3.3f, b=%3.3f, c=%3.3f, d=%3.3f'%(n_iter, a,b,c,d))\n",
"\n",
" # Rule #1 If point A is less than points B, C, and D then halve values of B, C, and D\n",
" # Rule #1 If the HEIGHT at point A is less the HEIGHT at points B, C, and D then halve values of B, C, and D\n",
" # i.e. bring them closer to the original point\n",
" # i.e. bring them closer to the original point\n",
" # TODO REPLACE THE BLOCK OF CODE BELOW WITH THIS RULE\n",
" if (0):\n",
" continue;\n",
"\n",
"\n",
" # Rule #2 If point b is less than point c then\n",
" # Rule #2 If the HEIGHT at point b is less than the HEIGHT at point c then\n",
" # then point d becomes point c, and\n",
" # point b becomes 1/3 between a and new d\n",
" # point c becomes 2/3 between a and new d\n",
" # TODO REPLACE THE BLOCK OF CODE BELOW WITH THIS RULE\n",
" if (0):\n",
" continue;\n",
"\n",
" # Rule #3 If point c is less than point b then\n",
" # Rule #3 If the HEIGHT at point c is less than the HEIGHT at point b then\n",
" # then point a becomes point b, and\n",
" # point b becomes 1/3 between new a and d\n",
" # point c becomes 2/3 between new a and d\n",
Expand Down

0 comments on commit b69e7bf

Please sign in to comment.