Applied first set of improvements

This commit is contained in:
Marius Drechsler 2024-07-31 18:46:51 +02:00
parent c169ee10e6
commit 1a7677c72f
8 changed files with 69 additions and 62 deletions

View file

@ -2,13 +2,15 @@
#pseudocode-list(booktabs: true, numbered-title: [Find all offsets])[
+ *input* $Phi, S$
+ *list* offsets
+ *if* $s$ is odd
+ $s = s-1$
+ *if* $S$ is odd
+ $S = s-1$
+ *append* 0 *to list* offsets
+ *while* $i <= s/2$
+ *append* $+(i dot phi)$ *to list* offsets
+ *append* $- (i dot phi)$ *to list* offsets
+ *while* $i <= S/2$
+ *append* $+(i dot Phi)$ *to list* offsets
+ *append* $- (i dot Phi)$ *to list* offsets
+ *sort list* offsets in ascending order
+ *return* offsets
+ *end*
]