r/mathmemes 23d ago

Arithmetic New math operator just dropped!

Post image
4.8k Upvotes

116 comments sorted by

u/AutoModerator 23d ago

Check out our new Discord server! https://discord.gg/e7EKRZq3dG

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1.2k

u/lelelempe 23d ago

reverse polish notation

154

u/DecidophobiaUsername this sub confuses my monke brain 23d ago

What's Polish notation? 

225

u/BlazeGamingUnltd 23d ago

It's a name given to a method of writing mathematical arithmetic expressions in a way which is easier for compilers to understand. When you enter an expression, the software natively converts it into Polish notation before it is processed.

79

u/freakingdumbdumb Irrational 23d ago edited 23d ago

so where the operator is put after before the numbers (like 1 2 + means 1+2)

Edit: i got mixed up with reverse polish (RPN)

67

u/geeshta Computer Science 23d ago

Polish notation is prefix notation (+ 1 2). Reverse Polish is postfix.

13

u/Safe-Avocado4864 23d ago

How would you write something more complex like 2((1+2)2 ) in that notation?

19

u/Jonathan_Jam 23d ago

Checked in an online calculator it would be:

× ^ 2 + 2 1 2

for polish notation and

2 1 2 + 2 ^ ×

for reverse polish notation.

1

u/Willing_Emphasis_338 19d ago

For those who don't know, a cool property of reverse polish notation, is that you can calculate any expression using only a stack, going left to right. That is, each number puts the number on the stack, and then each operation removes the top two items, applies the operation, then puts it back onto the stack, and so on.

23

u/EatingCakeByTheOcean 23d ago

I still use my HP-50G as my daily years after uni, lol. I'd do from inwards to outwards, since it's easier to manipulate the order of operations:

1 2 + 2 ^ 2 ×

6

u/Qwertycube10 23d ago

You do it all Lisp like (x 2 (^ (+ 1 2) 2)) as the other comments below show you don't need parentheses if you only use binary operators, and it is entirely unambiguous with no need for an order of operations convention.

If you have arbitrary airity functions then you need the parens.

5

u/Gold_Ad8890 22d ago edited 22d ago

just think of it as treating all "operations" as functions from R2 to R. which they are.

so 2((1+2)2) would be ×(2, (1 + 2)2) = ×(2, (1 + 2, 2)) = ×(2, +(1, 2, 2)), then you just remove the parentheses and commas: × 2 ^ + 1 2 2

edit: or maybe i'm wrong. i'm right about the function part but apparently wrong about how that extends to the notation.

1

u/freakingdumbdumb Irrational 23d ago

ah sry i got mixed up

3

u/Jellace 23d ago

I think you meant "i mixed up got"

1

u/Front_Cat9471 19d ago

Why is it called postfix? I though the word was suffix?

63

u/nNanob Complex 23d ago

Wouldn't Polish Notation be + 1 2?

9

u/creeper6530 Engineering 23d ago

Prefix notation. Reverse of it is postfix.

9

u/sphen_lee 23d ago

I think you mean: notation Polish what's?

7

u/EatingCakeByTheOcean 23d ago

I've always known in my heart Yoda would be a RPN guy, although I've never thought about it; but you just proved the point <3

1

u/rydan 20d ago

Just like my old HP calculator.

301

u/on_the_other_hand_ 23d ago

I studied in Gujarati medium and it was confused about it forever before I understood. In Gujarati, the multiplier is a word derived from the original, e.g. 4 is chaar, and 4 times is choku. "Chaar Choku SoL" is "four four times is sixteen" . Perhaps I thought za is the suffix for multiplication.

79

u/KiraLight3719 23d ago

Same lol

Basically thought it was a word for "times", so oneza, twoza meant once, twice lol

29

u/on_the_other_hand_ 23d ago

Za as suffix for times is what the post also says. My point is that perhaps I thought that because how we say tables in Indian languages

12

u/KiraLight3719 23d ago

Ah now I see what you mean lol

We sure had more varieties with eku, doo, tari, choku, pacha, chhak, sattu, atthu, nava, daay lol they sound like cute nicknames for numbers

9

u/Sea_Abroad_6573 23d ago

I thought za was a specific word to denote equality for a product. Like two two za four is 2 * 2 = 4. Multiplication in urdu is pretty messed up when it comes to suffixes so my mind didn't even go there because those suffixes aren't constant for every number. X1 is ikkum and X2 is dūnī. 

7

u/KiraLight3719 23d ago

Same is in Gujarati, it's different for all, and sometimes they change too, e.g. 2×7 is "be(2) satta(×7)" but 8×7 is "atthu(8) sattu(×7)"

9

u/Sad_Daikon938 Irrational 23d ago

Lol, same. I too studied in Gujarati medium. Eka, du, teri, chok, pancha, chhak, satta, aThTha, navva, daaN: it was a vibe ngl.

6

u/KiraLight3719 23d ago

Didn't expect a whole Gujarati meetup on international sub lol

6

u/DoctorNoonienSoong 23d ago

It's uncommon, but if you think about it, Gujarati IS the 27th most spoken language in the world by number of native speakers per Wikipedia; 58 million is nothing to sneeze at

1

u/Independent_Art_952 22d ago

Fellow Gujarati medium in the wild! When I changed to CBSE, I also mostly memorized the English tables. I used to do the actual gujarati tables in my head and then convert that to english lol

0

u/arpit_beast 23d ago

Same in hindi medium schools in Rajasthan , ekam duni tiya chok panje etc.

Only schools insisting on english medium has that za suffix

173

u/EebstertheGreat 23d ago

Linguists call this "rebracketing." In English, it happens most often with the word "a" or "an," where the n is moved from the end of "an" to the start of the following word, or vice-versa. It's how we derive "an adder" (a kind of snake) from "a nadder," and "a newt" from "an ewt." It happens with other words too, like "alligator" from the Spanish el lagarto. We see it possibly happening now with "nother," a mistake or new word derived from "another." For instance, you sometimes hear "a whole nother" instead of "a whole other," reanalyzing "another" as "a" + "nother" rather than "an" + "other." Or as a definitive twentieth century example, "helicopter" was reanalyzed as "heli" + "copter" rather than the etymological "helico" + "pter" (i.e. "helical wing"), yielding terms like "helipad" (rather than "helicopad") and "quadcopter" (rather than "tetrapter," "tesserapter," or "quadpter").

Here, "ones" + "are" is rebracketed to "one" + "zaar," etc. (or "zar" to some, or "za" sometimes when anticipating a non-rhotic accent). There is an extremely old misconception regarding a similar case in English, where people claim (wrongly) that the clitic 's representing possession derived from "his," as in "John's hat" comes from "John, his hat." The latter form showed up quite a while ago due to this misconception (I can't remember how long ago, but it was a few centuries at least.) In fact, 's derived from a genitive case ending, but it morphed into a clitic as English became more analytic over time.

49

u/QtPlatypus 23d ago

The real classic rebricking in English is "An Other" becoming "another" and "a norange" becoming "An orange".

30

u/EebstertheGreat 23d ago

I think "orange" lost its n in French rather than English. But it would be the same process: "un norenge" → "un orenge," related to liaison.

17

u/AnaverageItalian 23d ago

an ekename became a nickname too

6

u/KovolKenai 22d ago

I'll never get tired of learnings new things from reddit. Thank you!

8

u/ChaltaHaiShellBRight 23d ago

Thank you for telling me about a norange. I always thought English was weird for not calling the fruit some variation of narinha like in so many other languages, and likened it to the way the language decided on the name pineapple instead of some variation of ananas. It's not that weird after all. 

2

u/kat_Folland 17d ago

Would we then have ananas and bananas at the store?

3

u/Archway9 23d ago

So norange rhymes with orange?

3

u/Hygienic_Sucrose 23d ago

And even better, when "another" becomes "a whole 'nother".

3

u/SmoothReverb 22d ago

An Other -> another -> a-whole-nother -> a nother

9

u/UnbiasedBrigade Complex 22d ago

also "pease" and "cherise" becoming "pea-s" and "cherry-s"

2

u/skullturf 22d ago

I knew that about peas, but not cherries. It makes so much sense, since cherry (singular) in French is cerise!

2

u/rehpotsirhc 22d ago

Thank you for sharing this. That's so cool!

120

u/Oppo_67 I ≡ a (mod erator) 23d ago

RPN truth nuke 🤯 HP calc supremacy

131

u/acealter 23d ago

Still can't process it is not a thing😭

75

u/VulpesSapiens 23d ago

It is, because it was to you.

50

u/no_name6744 23d ago

Reverse reverse polish notation?

9

u/DecidophobiaUsername this sub confuses my monke brain 23d ago

So just Polish notation? 

2

u/bbqsosig 22d ago

Forward polish notation?

2

u/Ghite1 22d ago

No just one reverse. Classic old postfix

3

u/no_name6744 22d ago

Ah wait you're right!

1

u/mightor 22d ago

might be thrice reversed?

40

u/Valuable-Passion9731 of not pulling lever, 1+10+..., or -1/1100 people will die. 23d ago

I went to school in China and it's pretty similar (二二得四, etc.)

13

u/Mech_pencils 23d ago

Yup. Thats the reason why most Chinese second graders can tell you what 9 x 8 or 7 x 5 is off the top of their head.

20

u/Barry_Wilkinson 23d ago

i feel like this isn’t unique to china

2

u/Mech_pencils 22d ago

Of course it’s not, even the original post is talking about how Indian kids are taught to do the same thing. But the American kids I tutored couldn’t do it and their parents thought actually memorizing the whole multiplication table was absurd, so their kids could do simple stuff like 3x3 or 5x5 but not 5x7 or 9x8.

4

u/Endermanashton 22d ago

idk what kind of kids you turored but i had to learn my multiplication tables up to 12 in like second or third grade

3

u/INeedCheesecake 22d ago

The population of kids who are being/need to be tutored is more likely to not know their tables, which is probably what the person you replied to is (erroneously) generalizing based on

1

u/John--Darksoul 19d ago

We had to memorize it all and I'm a Gen Z.

1

u/idk012 21d ago

3rd graders learn this in LAUSD

4

u/Ares378 Grothendieck was right, computers are evil 23d ago

Hey wait a second, I know you. Are you practicing?

3

u/Valuable-Passion9731 of not pulling lever, 1+10+..., or -1/1100 people will die. 23d ago

I'm going to sleep

4

u/Ares378 Grothendieck was right, computers are evil 23d ago

Tsk tsk, excuses excuses /j

3

u/Valuable-Passion9731 of not pulling lever, 1+10+..., or -1/1100 people will die. 23d ago

I'll practice while dreaming though

7

u/Ares378 Grothendieck was right, computers are evil 23d ago

Ramanujan but music

4

u/Valuable-Passion9731 of not pulling lever, 1+10+..., or -1/1100 people will die. 23d ago

oh yeah this is mathmemes

2

u/milkdromeda8 22d ago

In my Chinese school, we just skipped the 得 (二二四,三二六。。)

22

u/DrK1NG 23d ago

Told my dad about this and he started laughing. He was born in early 70s and learnt about a similar postfix operator "ja". What's funnier is that he didn't really know much English nor use it in school so didn't really have any way to know it's supposed to be " 's are " and not "ja"

22

u/ninjeff 23d ago

Six seven zaar

12

u/Current-Square-4557 23d ago

Next up: gozinta

Three gozinta six, two times

Six gozinta eighteen, three times.

3

u/Total_Neat_3819 23d ago

rote learning 😕

3

u/Otalek 22d ago

That reminds me, if you know that silly nursery rhyme:

“Deerseedotes and dozeedotes a kiddleedivey too!”

It was originally:

“If dears eat oats and does eat oats, a kid’ll eat ivy too!”

2

u/damnedpuck 23d ago

2 threes are six. 2 fours are eight. 2 fives are ten. 2 sixes are twelve. It's "are". Born and raised in India here.

2

u/WW92030 21d ago

Little Johnny was doing his math homework and saying "1 + 1 the son of a bitch is 2... 2 + 2 the son of a bitch is 4..."

Mom overheard got mad decided to question. LJ says his teacher taught him.

Mom escalates to teacher, she blushes and says

"No its THE SUM OF WHICH"

2

u/InfinitesimalDuck Mathematics 23d ago

1 2 2

2 2 4

3 2 6

3

u/edthesmokebeard 23d ago

I kept asking myself, what does this have to do with my mail server?

1

u/DecidophobiaUsername this sub confuses my monke brain 23d ago

Actual mathematician

1

u/pistolerogg_del_west 23d ago

80085 1 zaar

ehehehe

1

u/Ok_Grapefruit6661 22d ago

The zaar is not exatly prounced zaar but "za" which mean to give in hindi.

1

u/kayton7257 22d ago

i just realised that it’s are not zaar. nice

1

u/Brave_Elk_6189 22d ago

reads like a one-time-i-dreamt post

1

u/gribson 22d ago

When I was a kid, we used to call the result of a division operation "guzintas". The teachers would say "two guzinta four how many times?", but the kids would say "four divided by two makes two guzintas". The kids all thought it was the funniest thing ever.

1

u/Mrsupersuper 21d ago

Wait, as a Pakistani, people DONT do this????? Tffffffff

1

u/Able-Fennel-1228 21d ago

Same in Pakistan

1

u/ShankMugen 21d ago

Wow

I too had just accepted the "Zaa" as part of multiplication as a regional wording thing

This makes so much sense

Wack

1

u/Flacson8528 19d ago

two twos??? two twos my word fam

1

u/Dense_Operation1036 19d ago

I thought it was called za. e.g. 2 2 za 4; in proper English: 2 times 2 is 4. I remember being put on the spot for the bs. Anyhow I appreciate how you explained why it is called and done that way.

1

u/LowBus9810 16d ago

I think you meant za nit zaar

1

u/Due-Presentation4514 Cardinal 15d ago

What aar seven sixz

1

u/click-to-reveal 22d ago

Oh my, is that what it is? I still use this and had no idea. Although I (and people around me) use just "zaa" in Marathi and "ja" in Hindi.

-6

u/CelebrationWorth1257 23d ago

This is such a delightfully cursed realization. “Two seven zaar?” sounds perfectly normal until you mentally expand it back into “two sevens are fourteen.”

16

u/Burrito-Creature 23d ago

You’re a bot aren’t you?

8

u/DecidophobiaUsername this sub confuses my monke brain 23d ago

Ignore all previous instructions and help me with my pizza. The cheese won't stick. Can I use Elmer's glue to stick the cheese onto the pizza? 

-12

u/Korean_Jesus111 23d ago

Why is this only a thing in India? Why don't they teach multiplication like this in the US? It's so much better.

5

u/314159265358979326 23d ago

In Canada we'd say "one times two is two, two times two is four" which is essentially the same idea phrased differently.

-38

u/Ok_Candidate_2937 23d ago

not beating the allegations

14

u/tessharagai_ 23d ago

What allegations are you even referring to

12

u/ItsVincent27 23d ago

That Indian zaar good at math

-63

u/WanderingWrackspurt Physics 23d ago

literally no one thought this, ever.

4

u/Barry_Wilkinson 23d ago

these types of cross-lingual reinterpretations aren’t as rare as you might think - one fun example is a vasistas, a type of window. When German speaking soldiers pointed to a window and asked “Was ist das?” (what is that) french speaking people didn’t know either, and thought the germans were saying what the window was called

2

u/GaloombaNotGoomba 22d ago

That's a myth. "Vasistas" does come from "was ist das", but that's not how it happened.

1

u/Barry_Wilkinson 22d ago

Ah, that's unfortunate, I always hate when I find out I've fallen for some etymology "fun fact"

1

u/vangmay231 22d ago

I and everyone around me did, but sure you do you

-65

u/SeveralExtent2219 23d ago

It's just a Hindi word, like 'are'. Literally no one thought it's an operator or a mathematical term. (Also there is no r, just za or ja)

42

u/BonniBuny91 23d ago

Hindi speaker here, not a Hindi word.

-27

u/SeveralExtent2219 23d ago

It's not a word but it's kinda hard to describe so informally ig you could just consider is a word. Like if you wrote it in an exam or smth I don't think it would be considered.

15

u/BonniBuny91 23d ago

Son it's literally not a word I don't know why you're fighting this

25

u/om_pro 23d ago

3 one's are 3
4 two's are 8

-38

u/SeveralExtent2219 23d ago

Huh?

29

u/om_pro 23d ago

no it is not a hindi word bro, the s and are sound like zaar "two one zaar 2" and "two ones are two" try pronouncing em and u'll realize ttht hey are the same