The Little Vulgar Book of Mechanics (v0.12.0) - Functions III
Last updated: March 7th 2022
Just updated this section of the book: Functions III
Functions III #
Have you ever had your mind "blown" by some set theory geek? With the infinite sets shit and whatnot?
Well, I hate all that shit.
But the mathematical definition of a function uses the concept of set, so I'm gonna define a couple of finite sets such as this one:
That is an example of constructing a set by listing, one by one, the elements it contains. In this case, some letters of the alphabet.
Here's another one, which is also finite, but too much of a pain in the ass to write down entirely, so I'm gonna use the dots thing:
I'm writing the elements of both sets in order, because of my normie human brain, but I should clarify that in set theory a set has no built-in order. You have to define some functions and shit for it to have order.
Anyway,
I'm already sick of talking about sets, though, so let's leave the rest of the set shit for later, or never. We have what we need now. We can now define a function:
We say that
We can define the rule explicitly, as a list of equations, like:
There are more possible functions from 1
for some reason.
We could have a function from X to itself. E.g.:
Where the rule is:
Note how
Where the rule is:
That is, a set
Now here's a function that "goes in the other direction":
Where the rule is:
Because they "cycle" in opposite directions, we have that for each element z,
So there, now you have examples of:
- Defining a finite set from scratch.
- Defining a function on it.
- Noticing certain properties of functions (invertibility in this case.)
By the way, these "invertible" functions from a set to itself are called permutations. But now I'm venturing into Group Theory, which is some abstract algebra shit that I don't wanna pollute this section with. So let's stop here.
You know what else is a set? The collection of horrible guitar riffs that is my metal track "Escape Mechanics Unlocked"!
External resources #
Books #
See current full book's WIP here.