Skip to content

Instantly share code, notes, and snippets.

View publik-void's full-sized avatar
💭
I like open sources and orthogonal modularity

Lasse publik-void

💭
I like open sources and orthogonal modularity
View GitHub Profile
@publik-void
publik-void / Should indexing be 0-based or 1-based.adoc
Last active May 16, 2024 16:05
Should numbering start at 0 or 1?

Should numbering start at 0 or 1?

Arguments for 1-based indexing and/or against 0-based indexing

  • The number which denotes the index of an element is equal to the number one would get by counting up to (and including) that element.

  • We are very used to labeling elements with their corresponding count number. This means 1-based indexing has a lot of inertia in our everyday lives and we

@publik-void
publik-void / sin-cos-approximations-gist.adoc
Last active June 21, 2024 21:53
Fast MiniMax Polynomial Approximations of Sine and Cosine

Fast MiniMax Polynomial Approximations of Sine and Cosine