Skip to content

Commit 1458514

Browse files
committed
Using / instead of - as suggested by @boldip
1 parent 1f04096 commit 1458514

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

notebook.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@
262262
"source": [
263263
"## Basic algebraic facts about transformations\n",
264264
"\n",
265-
"Such transformations can be also implemented as binary operators (thanks to Python ability to define classes that [emulate numeric types](https://docs.python.org/3/reference/datamodel.html#emulating-numeric-types)); one can for instance use `|` and `-` respectively for `beside` and `above` (the minus is to be understood as an horizontal line), and `+` for `over`."
265+
"Such transformations can be also implemented as binary operators (thanks to Python ability to define classes that [emulate numeric types](https://docs.python.org/3/reference/datamodel.html#emulating-numeric-types)); one can for instance use `|` and `/` respectively for `beside` and `above`, and `+` for `over`."
266266
]
267267
},
268268
{
@@ -283,7 +283,7 @@
283283
" return t\n",
284284
" def __add__(self, other):\n",
285285
" return TileWithOperations.addop(over(self, other))\n",
286-
" def __sub__(self, other):\n",
286+
" def __truediv__(self, other):\n",
287287
" return TileWithOperations.addop(above(self, other))\n",
288288
" def __or__(self, other):\n",
289289
" return TileWithOperations.addop(beside(self, other))\n",
@@ -297,7 +297,7 @@
297297
"metadata": {},
298298
"outputs": [],
299299
"source": [
300-
"f - ( f | f )"
300+
"f / ( f | f )"
301301
]
302302
},
303303
{
@@ -442,7 +442,7 @@
442442
"cell_type": "markdown",
443443
"metadata": {},
444444
"source": [
445-
"the flipped `F` takes $2/5$ of the final tile, whereas `F` takes the other $3/5$. Using such extended transformations one can define"
445+
"the flipped `f` takes $2/5$ of the final tile, whereas `f` takes the other $3/5$. Using such extended transformations one can define"
446446
]
447447
},
448448
{

0 commit comments

Comments
 (0)