Applied first set of improvements
This commit is contained in:
parent
c169ee10e6
commit
1a7677c72f
8 changed files with 69 additions and 62 deletions
|
|
@ -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*
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue