Skip to content

Commit 745145d

Browse files
committed
Added floating point links.
1 parent 21d280c commit 745145d

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

notebooks/0c_python1.ipynb

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,17 @@
128128
]
129129
},
130130
{
131+
"attachments": {},
131132
"cell_type": "markdown",
132133
"metadata": {},
133134
"source": [
134135
"### Floats\n",
135136
"\n",
136137
"Anything with a float returns a float.\n",
137-
"Also, in the example below, note the imprecision we talked about earlier."
138+
"Also, in the example below, note the imprecision we talked about earlier.\n",
139+
"\n",
140+
"**Optional rabbit hole:** For more on why this imprecision happens, see [here](https://0.30000000000000004.com).\n",
141+
"Though it tends not to be a practical issue in general, it comes up in the [numerical stability](https://www.cs.utexas.edu/users/flame/Notes/NotesOnStability.pdf) in algorithms, which we're generally only likely to encounter when implementing our own models using linear algebra directly."
138142
]
139143
},
140144
{
@@ -502,7 +506,7 @@
502506
"name": "stdout",
503507
"output_type": "stream",
504508
"text": [
505-
"2022-06-04 12:07:48.489845\n"
509+
"2023-01-01 15:06:49.428354\n"
506510
]
507511
}
508512
],
@@ -520,9 +524,9 @@
520524
"name": "stdout",
521525
"output_type": "stream",
522526
"text": [
523-
"2022\n",
524-
"6\n",
525-
"4\n"
527+
"2023\n",
528+
"1\n",
529+
"1\n"
526530
]
527531
}
528532
],
@@ -542,7 +546,7 @@
542546
"name": "stdout",
543547
"output_type": "stream",
544548
"text": [
545-
"2021-06-04 12:07:48.489845\n"
549+
"2022-01-01 15:06:49.428354\n"
546550
]
547551
}
548552
],
@@ -957,7 +961,7 @@
957961
],
958962
"metadata": {
959963
"kernelspec": {
960-
"display_name": "Python 3",
964+
"display_name": "carmapy",
961965
"language": "python",
962966
"name": "python3"
963967
},
@@ -971,7 +975,12 @@
971975
"name": "python",
972976
"nbconvert_exporter": "python",
973977
"pygments_lexer": "ipython3",
974-
"version": "3.8.10"
978+
"version": "3.10.4"
979+
},
980+
"vscode": {
981+
"interpreter": {
982+
"hash": "a81bae0441ee82e2a3d84d7974355e2c20de19e1a546766137c816f6e631d815"
983+
}
975984
}
976985
},
977986
"nbformat": 4,

0 commit comments

Comments
 (0)