aboutsummaryrefslogtreecommitdiff
path: root/doc/windows.md
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-06-20 08:10:31 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-06-20 08:10:31 -0400
commit617d05b2cbb07e2778411b889914eecc156c6d79 (patch)
treeab09f79fa34cde5fd6af55c8f1c67e4fe7cc6e57 /doc/windows.md
parent7ee066159ac2a60fffc3162cd31d35ce73cfd623 (diff)
Use vector reduce in documentation
Diffstat (limited to 'doc/windows.md')
-rw-r--r--doc/windows.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/windows.md b/doc/windows.md
index 081aa701..d4165d62 100644
--- a/doc/windows.md
+++ b/doc/windows.md
@@ -60,7 +60,7 @@ If the left argument has length `0`, then the argument is not sliced along any d
`𝕩` is an array. `𝕨` is a number or numeric list or scalar with `𝕨≀○≠≒𝕩`. The result `z` has shape `π•¨βˆΎΒ¬βŸœπ•¨βŒΎ((≠𝕨)βŠΈβ†‘)≒𝕩`, and element `iβŠ‘z` is `π•©βŠ‘Λœ(≠𝕨)(↑+⌾((≠𝕨)βŠΈβ†‘)↓)i`.
-Using [Group](group.md) we could also write `iβŠ‘z` ←→ `π•©βŠ‘Λœ(π•¨βˆΎβ—‹(β†•βˆ˜β‰ )≒𝕩) (>+´¨)βˆ˜βŠ” i`.
+Using [Group](group.md) we could also write `iβŠ‘z` ←→ `π•©βŠ‘Λœ(π•¨βˆΎβ—‹(β†•βˆ˜β‰ )≒𝕩) +Β΄Β¨βˆ˜βŠ” i`.
## Symmetry
@@ -103,10 +103,10 @@ A common task is to pair elements, with an initial or final element so the total
-˜´˘2↕0∾ +` 3β€Ώ2β€Ώ1β€Ώ1
[ 3 2 1 1 ]
- (-ΛœΒ΄β‰ β†•0∾⊒) +` 3β€Ώ2β€Ώ1β€Ώ1
+ ((-˜´<˘)≠↕0∾⊒) +` 3β€Ώ2β€Ώ1β€Ώ1
[ 3 2 1 1 ]
This method extends to any number of initial elements. We can modify the running sum above to keep the length constant by starting with two zeros.
- (+´≠↕(2β₯Š0)⊸∾) ⟨2,6,0,1,4,3⟩
+ ((+Β΄<˘)≠↕(2β₯Š0)⊸∾) ⟨2,6,0,1,4,3⟩
[ 2 8 8 7 5 8 ]