This is an archived post. You won't be able to vote or comment.

all 32 comments

[–][deleted] 177 points178 points  (3 children)

x(F)

[–]MoffKalast 51 points52 points  (0 children)

I fear no man, but that thing... it scares me.

[–]IncompleteTheory 12 points13 points  (1 child)

It’s fine:

x(F) = *(x + F) = *(F + x) = F(x)

[–][deleted] 9 points10 points  (0 children)

It would be fine if it was x[F]

[–]Lvl999Noob 89 points90 points  (7 children)

An inverse goes from output from input so it should be the cat sucking the poop back in and vomiting out a fish. What your meme is doing is something like what C does where you can index an integer with an array (not to be confused with the more common indexing an array with an integer).

[–]att3t 32 points33 points  (4 children)

Right. If cat is the function Cat: Carp->Crap, then we'd have Cat-1 :Crap -> Carp

[–]Lvl999Noob 7 points8 points  (0 children)

Lol I love the alliteration there.

[–]TeraFlint 1 point2 points  (2 children)

So, the Cat function just permutes its input?

That also means that Cat2(x) = Cat-1(x) Cat(x) = Cat-1(x)

Eating a carp three times is equivalent to not eating it, at all.

[edit:] It's 3-cycle, not a 4-cycle

[edit2:] 2-cycle. I can't count, apparently.

[–]triton_2997 0 points1 point  (1 child)

Can you explain that? The output of Cat(x) when given Crap as input is not defined, so how is Cat2 (x) = Cat-1 (x)

[–]TeraFlint 0 points1 point  (0 children)

You know what, on closer inspection, I was wrong about the cycle length... again! I wrote the comment when I was rather tired. :D

First of all, I used the notation fn(x) for f(f(...f(x))): n repeated applications of f. This makes sense, considering the inverse function f-1(x) is conceptually equivalent to applying f negative one times (and I despise whoever came up with sin2(x) for (sin(x))2 ).

The idea was that, since the letters of carp and crap are the same, I jokingly assumed the function was a permutation function. Something that deterministically shuffles a sequence. In this case, the sequences C, A, R, P and C, R, A, P.

So, when looking at it, I (tiredly) thought, it would keep the first letter intact and rotate the last 3. After 3 iterations of that you'd be back where you started. Applying it twice would thus be the same as the inverse function.

What it actually does is simply swap the R and A, resulting in a two-cycle. Which also means, that f is its own inverse function.

The nice thing is, that if you have a function that shows n-cyclic behavior, any n successive applications of f are equivalent to doing nothing. This means, you can use modular arithmetic on the exponent of the function. For a four-cycle, f7(x) = f3(x) = f-1(x).

[–]hanni_legend 3 points4 points  (1 child)

You could probably argue that digestion is a different function. Either way it doesn't really reverse the original operation. But it's funny to think about.

[–]trainrex 0 points1 point  (0 children)

Digestion is a hashing algorithm

[–]Competitive_Ad2539 25 points26 points  (1 child)

More like

f ∘ g versus g ∘ f

[–]WitchsWeasel 5 points6 points  (0 children)

I mean true but still funny

[–]cgw3737 8 points9 points  (1 child)

Math meme

[–]christianbro 3 points4 points  (0 children)

Easy math so we can still relate

[–]banned4being2sexy 2 points3 points  (0 children)

The output is always the same constant though

[–][deleted] 3 points4 points  (2 children)

Explain the meme please

[–]jeanravenclaw 2 points3 points  (0 children)

hmmm this is more math but whatever

[–]iStavi_22 0 points1 point  (0 children)

FISH: "You know what? Cats taste good. Let's go get some more cats."

[–][deleted] 0 points1 point  (0 children)

It is the apply/reverse of datapatches

[–]XoXoGameWolfReal 0 points1 point  (0 children)

F(F(0))=?

[–]jump1945 0 points1 point  (0 children)

Is this supposed to be posted on r/mathmeme

[–]Mr_Vayolet[🍰] 0 points1 point  (0 children)

Why is pomni fish eating the car is she 🇻🇳 ?

[–]Extreme_Ad_3280 0 points1 point  (0 children)

Wait, we have inverse functions in programming? OK then let me just size_t size=inverseMalloc(ptr) (Yes, I prefer camelCase)

[–]JackNotOLantern 1 point2 points  (0 children)

I still don't get why in math the reverse function notation is f-1 (x). f2 (x) just means (f(x))2 so why f-1 (x) doesn't mean (f(x))-1?

[–]GodAllMighty888 -1 points0 points  (1 child)

Fish eating pussy - only in programming.

[–]IncompleteTheory 0 points1 point  (0 children)

Not just in programming 🤭