-
-
Notifications
You must be signed in to change notification settings - Fork 89
Document Style
Antonio Vivace edited this page Jan 2, 2021
·
15 revisions
Monospaced text, code snippets, code boxes:
- No ligatures
Pseudocode:
- Assignment: ← or :=
- Comparison: =, ≠, <, >, ≤, ≥
- Arithmetic: +, −, ×, /, mod
- Floor/ceiling: ⌊, ⌋, ⌈, ⌉a ← ⌊b⌋ + ⌈c⌉
- Logical: and, or
- Sums, products: Σ Π
References: http://www.cs.cornell.edu/courses/cs482/2003su/handouts/pseudocode.pdf , https://blog.usejournal.com/how-to-write-pseudocode-a-beginners-guide-29956242698, https://cs.wmich.edu/gupta/teaching/cs3310/sp18cs3310web/lecture%20notes%20cs3310/PseudocodeBasics.pdf, https://en.wikipedia.org/wiki/Pseudocode#Mathematical_style_pseudocode
Units:
Use ?? prefixes. (https://github.com/gbdev/pandocs/issues/76, https://github.com/gbdev/pandocs/issues/55). E.g.:
TODO