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 alwa...
For further actions, you may consider blocking this person and/or reporting abuse
Based on the opening, I was looking for strategies on finishing books.
Me too
I was expecting the same U_u
Yes.
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 ;-)
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
):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...