diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-06-20 08:10:31 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-06-20 08:10:31 -0400 |
| commit | 617d05b2cbb07e2778411b889914eecc156c6d79 (patch) | |
| tree | ab09f79fa34cde5fd6af55c8f1c67e4fe7cc6e57 /doc/windows.md | |
| parent | 7ee066159ac2a60fffc3162cd31d35ce73cfd623 (diff) | |
Use vector reduce in documentation
Diffstat (limited to 'doc/windows.md')
| -rw-r--r-- | doc/windows.md | 6 |
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 ] |
