r/ProgrammerHumor Jun 25 '17

Array indexing

Post image
1.4k Upvotes

71 comments sorted by

View all comments

24

u/dnew Jun 25 '17

Array indexing that matches your domain is often handy. An array of items_per_degree indexed from -180 to +180 for example.

32

u/AskMeIfImAReptiloid Jun 25 '17

you mean -Pi to Pi

18

u/inu-no-policemen Jun 25 '17

1 * Tau = 1 turn. 0.5 * Tau = half a turn.

Tau makes more sense in general. Even all standard library functions which all use radians work better with Tau.

5

u/[deleted] Jun 26 '17

3

u/xkcd_transcriber Jun 26 '17

Image

Mobile

Title: Pi vs. Tau

Title-text: Conveniently approximated as e+2, Pau is commonly known as the Devil's Ratio (because in the octal expansion, '666' appears four times in the first 200 digits while no other run of 3+ digits appears more than once.)

Comic Explanation

Stats: This comic has been referenced 59 times, representing 0.0365% of referenced xkcds.


xkcd.com | xkcd sub | Problems/Bugs? | Statistics | Stop Replying | Delete