From a6b1509471aeb96e717d68c4fdc8ab92bd8452e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= Date: Wed, 15 Dec 2021 18:24:49 +0000 Subject: [PATCH 1/3] Remove improper comma from Specialist's Sections. --- Data-and-Variables.ipynb | 2 +- Execute-and-Format-Control.ipynb | 2 +- First-Aid-Kit.ipynb | 2 +- Nested-Arrays-Continued.ipynb | 2 +- Some-Primitive-Functions.ipynb | 2 +- User-Defined-Functions.ipynb | 2 +- Working-on-Data-Shape.ipynb | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Data-and-Variables.ipynb b/Data-and-Variables.ipynb index bc791f5..0e86b3a 100644 --- a/Data-and-Variables.ipynb +++ b/Data-and-Variables.ipynb @@ -5797,7 +5797,7 @@ "## The Specialist's Section\n", "\n", "
\n", - "
Each chapter is followed by a \"Specialist's Section\" like this one. This section is dedicated to skilled APLers, who wish to improve their knowledge.\n", + "
Each chapter is followed by a \"Specialist's Section\" like this one. This section is dedicated to skilled APLers who wish to improve their knowledge.\n", " \n", "You will find here rare or complex usages of the concepts presented in this chapter, or discover extended explanations which need the knowledge of some symbols that will be seen much further in the book.\n", " \n", diff --git a/Execute-and-Format-Control.ipynb b/Execute-and-Format-Control.ipynb index 646ad19..c6d03ef 100644 --- a/Execute-and-Format-Control.ipynb +++ b/Execute-and-Format-Control.ipynb @@ -7056,7 +7056,7 @@ "## The Specialist's Section\n", "\n", "
\n", - "
Each chapter is followed by a \"Specialist's Section\" like this one. This section is dedicated to skilled APLers, who wish to improve their knowledge.\n", + "
Each chapter is followed by a \"Specialist's Section\" like this one. This section is dedicated to skilled APLers who wish to improve their knowledge.\n", "\n", "You will find here rare or complex usages of the concepts presented in this chapter, or discover extended explanations which need the knowledge of some symbols that will be seen much further in the book.\n", "\n", diff --git a/First-Aid-Kit.ipynb b/First-Aid-Kit.ipynb index 5049414..c438d85 100644 --- a/First-Aid-Kit.ipynb +++ b/First-Aid-Kit.ipynb @@ -3315,7 +3315,7 @@ "## The Specialist's Section\n", "\n", "
\n", - "
Each chapter is followed by a \"Specialist's Section\" like this one. This section is dedicated to skilled APLers, who wish to improve their knowledge.\n", + "
Each chapter is followed by a \"Specialist's Section\" like this one. This section is dedicated to skilled APLers who wish to improve their knowledge.\n", " \n", "You will find here rare or complex usages of the concepts presented in this chapter, or discover extended explanations which need the knowledge of some symbols that will be seen much further in the book.\n", " \n", diff --git a/Nested-Arrays-Continued.ipynb b/Nested-Arrays-Continued.ipynb index 09eddfb..034320f 100644 --- a/Nested-Arrays-Continued.ipynb +++ b/Nested-Arrays-Continued.ipynb @@ -8176,7 +8176,7 @@ "\n", "
\n", "
\n", - "Each chapter is followed by a \"Specialist's Section\" like this one. This section is dedicated to skilled APLers, who wish to improve their knowledge.\n", + "Each chapter is followed by a \"Specialist's Section\" like this one. This section is dedicated to skilled APLers who wish to improve their knowledge.\n", "You will find here rare or complex usages of the concepts presented in this chapter, or discover extended explanations which need the knowledge of some symbols that will be seen much further in the book.\n", "\n", "If you are exploring APL for the first time, skip this section and go to the next chapter.\n", diff --git a/Some-Primitive-Functions.ipynb b/Some-Primitive-Functions.ipynb index 468023b..0f54e81 100644 --- a/Some-Primitive-Functions.ipynb +++ b/Some-Primitive-Functions.ipynb @@ -11618,7 +11618,7 @@ "## The Specialist's Section\n", "\n", "
\n", - "
Each chapter is followed by a \"Specialist's Section\" like this one. This section is dedicated to skilled APLers, who wish to improve their knowledge.\n", + "
Each chapter is followed by a \"Specialist's Section\" like this one. This section is dedicated to skilled APLers who wish to improve their knowledge.\n", " \n", "You will find here rare or complex usages of the concepts presented in this chapter, or discover extended explanations which need the knowledge of some symbols that will be seen much further in the book.\n", " \n", diff --git a/User-Defined-Functions.ipynb b/User-Defined-Functions.ipynb index 15d2c67..b95d073 100644 --- a/User-Defined-Functions.ipynb +++ b/User-Defined-Functions.ipynb @@ -9040,7 +9040,7 @@ "## The Specialist's Section\n", "\n", "
\n", - "
Each chapter is followed by a \"Specialist's Section\" like this one. This section is dedicated to skilled APLers, who wish to improve their knowledge.\n", + "
Each chapter is followed by a \"Specialist's Section\" like this one. This section is dedicated to skilled APLers who wish to improve their knowledge.\n", " \n", "You will find here rare or complex usages of the concepts presented in this chapter, or discover extended explanations which need the knowledge of some symbols that will be seen much further in the book.\n", " \n", diff --git a/Working-on-Data-Shape.ipynb b/Working-on-Data-Shape.ipynb index f7eb349..af9a617 100644 --- a/Working-on-Data-Shape.ipynb +++ b/Working-on-Data-Shape.ipynb @@ -4921,7 +4921,7 @@ "\n", "
\n", "
\n", - "Each chapter is followed by a \"Specialist's Section\" like this one. This section is dedicated to skilled APLers, who wish to improve their knowledge.\n", + "Each chapter is followed by a \"Specialist's Section\" like this one. This section is dedicated to skilled APLers who wish to improve their knowledge.\n", "You will find here rare or complex usages of the concepts presented in this chapter, or discover extended explanations which need the knowledge of some symbols that will be seen much further in the book.\n", " \n", "If you are exploring APL for the first time, skip this section and go to the next chapter.\n", From 857498e70ca85708e92b2e9f4bc785b212ce2958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= Date: Mon, 31 Jan 2022 14:57:27 +0000 Subject: [PATCH 2/3] Fix typos. --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0dfb9a8..90cd5b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ In the first instance, it lists the changes between consecutive releases of this However, because this book is a rework of the first edition by Bernard Legrand, this changelog also marks with [n] content that is new in this rework. +## 0.4.1 + + - Fix typos. + ## v0.4 - Add chapter “Nested Arrays (Continued)”: From 3c88a77b9a5cdc60d01f6c2b6a3714f4e7197a14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= Date: Tue, 1 Feb 2022 14:51:27 +0000 Subject: [PATCH 3/3] Remove duplicate headers in 'Some Prim. Funcs.' --- CHANGELOG.md | 3 +++ Some-Primitive-Functions.ipynb | 34 ++++++++++++++++------------------ 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90cd5b2..996e6ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ this changelog also marks with [n] content that is new in this rework. ## 0.4.1 - Fix typos. + - Fix duplicate headers in “Some Primitive Functions”: + - Under “Axis Specification”, there were 2 almost-consecutive duplicate level 4 headers under the _same_ level 3 header, and it made sense to join them together; + - Rename “Special Notations” to “Replicate with Axis” under the section on replicate, to make the header more explicit; ## v0.4 diff --git a/Some-Primitive-Functions.ipynb b/Some-Primitive-Functions.ipynb index 0f54e81..bff92bb 100644 --- a/Some-Primitive-Functions.ipynb +++ b/Some-Primitive-Functions.ipynb @@ -5328,23 +5328,6 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "#### Axis Is Like an Operator\n", - "\n", - "The dimension specified within brackets is the axis along which the function is applied.\n", - "\n", - "This produces a derived function, and for this reason, the pair of _axis_ brackets is often called the _axis operator_.\n", - "\n", - "The syntax for _axis_ does not quite follow the general syntax for operators, but it shares all other properties with genuine operators. _Axis_ takes a function as its left operand (the derived function `+/` in the last example above), the dimension specification as its \"right operand\" (3 in the example), and produces a derived function, which is applied to `prod` to calculate the annual sums.\n", - "\n", - "Viewed as an operator, _axis_ is therefore dyadic. It is, however, important to emphasise that its \"right\" operand is not `prod`, it is the expression within the brackets. This is the first example of an operator that takes an array as an operand. We will find some more as we explore operators later on." - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "#### Processing Arrays\n", - "\n", "We shall learn more about _axis_ in [the \"Operators\" chapter](./Operators.ipynb); let us first explore another simple use of this operator.\n", "\n", "Suppose that we would like to multiply each of the rows (or columns) of a matrix by different values; we can use _axis_ to specify whether we multiply row-wise or column-wise. First, here is a matrix:" @@ -5434,6 +5417,21 @@ "tam×[2]2 5 0 2 1" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#### Axis Is Like an Operator\n", + "\n", + "The dimension specified within brackets is the axis along which the function is applied.\n", + "\n", + "This produces a derived function, and for this reason, the pair of _axis_ brackets is often called the _axis operator_.\n", + "\n", + "The syntax for _axis_ does not quite follow the general syntax for operators, but it shares all other properties with genuine operators. _Axis_ takes a function as its left operand (the derived function `+/` in the last example above), the dimension specification as its \"right operand\" (3 in the example), and produces a derived function, which is applied to `prod` to calculate the annual sums.\n", + "\n", + "Viewed as an operator, _axis_ is therefore dyadic. It is, however, important to emphasise that its \"right\" operand is not `prod`, it is the expression within the brackets. This is the first example of an operator that takes an array as an operand. We will find some more as we explore operators later on." + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -7848,7 +7846,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "### Special Notations\n", + "### Replicate with Axis\n", "\n", "Like _reduce_ and _catenate_, _replicate_ works along the last dimension of an array by default. However, it is possible for it to work on any dimension by using the _axis_. It is also possible to use `⌿`, which we have already seen, to work on the first dimension by default.\n", "\n",