### That programming book you never finished

#### Arik on June 22, 2018

Tell me if this sounds familiar:
You walk into a bookstore, browse through some shelves and run into a programming book about a subject you al...
[Read Full]

Tell me if this sounds familiar:
You walk into a bookstore, browse through some shelves and run into a programming book about a subject you al...
[Read Full]

Based on the opening, I was looking for strategies on finishing books.

Use iterators:

or mappers:

or even reducers:

I was expecting the same U_u

Me too

Yes.

Try reducing computation by finding a closed form instead of writing a loop. Here, the closed form is

`f(n) = n*(n+1)`

(e.g.`f(100) = 100*101 = 10100`

):Personally I would think the following is the exact translation in Python of the math formula shown in the article:

(well... if you ignore the fact that the upper limit of

`range`

in not inclusive so I need to put 101 instead of 100)So now that you know about Sigmas etc. you can read The Art of Computer Programming ;-)

Not the topic I expected, bit was a nice read anyway.

github.com/Jam3/math-as-code is a "cheatsheet" explaining tons of math notation by showing equivalent JavaScript code, similar to how this article explained Σ.

Mathematical Notation: A Guide for Engineers and Scientists

I bought this little jewel just for this situation:

amazon.com/Mathematical-Notation-G...

*Greek…

I 💖 Math.

I recommend this site brilliant.org for math and science stuff :)

Misleading headline. But now high school math is coming back to me...

The rabbit hole in question.

mathworld.wolfram.com

I'm surprised they're not teaching this in school anymore.