Even though lot of people use Python in an object oriented style, it has several functions that enable functional programming. For those of you who don't know, functional programming is a programming paradigm based on lambda calculus that treats computation as an evaluation of mathematical functions. Some of prominent functional programming languages include Scala, Haskell, … Continue reading Understanding Filter, Map, And Reduce In Python
Tag: Functions
Why Are They Called “Elliptic” Curves?
Have you heard of elliptic curves before? They are used extensively in number theory and cryptography. The reason elliptic curve cryptography is gaining popularity is because it's fundamentally much stronger than the RSA algorithm, the algorithm that we all love and adore. If you don't know what elliptic curves are, just google it and see what they … Continue reading Why Are They Called “Elliptic” Curves?
What Is A Holomorphic Function?
How do you feel when see the term "holomorphic function"? It just feels like we shouldn't be looking further into it, right? I mean, it looks like an esoteric mathematical concept that should remain in advanced textbooks. Interestingly enough, holomorphic functions are very useful in real life. Holomorphic functions are ubiquitous in the field of … Continue reading What Is A Holomorphic Function?
What Is Zeta Function Regularization?
There is a popular mathematical result which says that the sum of all natural numbers is -1/12. I have discussed it in detail here. This looks very unintuitive to a first time observer. In fact, most people would say that this is some kind of mathematical trickery. How can a bunch of positive numbers sum … Continue reading What Is Zeta Function Regularization?
Homomorphism vs Homeomorphism
Did you get the joke in the picture to the left? If not, you will do so in a few minutes. I was recently reading an article and I came across the terms mentioned in the title. From the looks of it, they are very close to each other, right? In many fields within mathematics, we talk … Continue reading Homomorphism vs Homeomorphism
Functors In C++
When you look at the word “functor”, the first thing that comes to mind is that it looks very similar to “function”. The word actually comes from a field called category theory, which is an abstract branch of mathematics. A category basically consists of objects that are linked to each other in certain ways. This … Continue reading Functors In C++
A Beginner’s Look At Lambda Calculus
Back in school, you must remember studying differential and integral calculus. Now what on earth is lambda calculus? Well, lambda calculus is basically a simple notation for functions and applications in mathematics and computer science. It has a significant impact in the field of programming language theory. It forms the basis for all the modern functional … Continue reading A Beginner’s Look At Lambda Calculus
Exploring The Hidden C++ Features
People have been using C++ for a long time now and most of us think that we are pretty well versed with it. Interestingly enough, as we spend more time with something, we keep discovering more things about it. I love it when the thing you have been using for so long turns out to … Continue reading Exploring The Hidden C++ Features
Understanding Python “Property”
I was tinkering with Python the other day when I encountered the “property” keyword. I had seen it many times before and I sort of knew what it does, but I never really had a chance to dig deep into it. As it turns out, "property" in Python is very useful when you are designing large … Continue reading Understanding Python “Property”
What Is Tail Recursion?
Programmers deal with recursion all the time. It's actually quite a nice concept, but not a lot of people use it because of the mystery associated with it. To be honest, there's no mystery as such! Sometimes, a problem is too complex to solve because it is too big. If we can break the problem … Continue reading What Is Tail Recursion?