You took an entire computer science lecture and turned it into a 3 min video! Nice!
@yousorooo9 жыл бұрын
RedKB If your class takes a whole lecture to teach students about 2's complement, then you probably went to the wrong college.
@are0planes9 жыл бұрын
Derek Leung Have you ever seen an MIT lecture? The spend the whole class explaining concepts just like this.
@yousorooo9 жыл бұрын
Matthew Tayloe I've never watch any of their online lectures. The way I was taught is that we simply flip the bits and add one. This works because we don't have an infinite number line, instead a circular number line (mod) and flipping the bits just make it goes the other direction.
@Minstorm349 жыл бұрын
RedKB hey redkb, you watch minutephysics?
@unvergebeneid9 жыл бұрын
Derek Leung RedKB If you can watch this video without ever having been introduced to the concept and then understand it deeply and fully _and_ still have a profound understanding of the concept two years later, you don't need college.
@knollie1998 жыл бұрын
This is exactly what I need to know at 3 am.
@matiaspetersen87797 жыл бұрын
knollie thinking the exact same thing😂😂
@ethanchou49067 жыл бұрын
Play minecraft.
@Take2TheStars6 жыл бұрын
Sad thing is it's exactly 3:00 as I'm typing this.
@MALIWAL10006 жыл бұрын
2:00 exact.
@ReubertBarbosa6 жыл бұрын
1:24 hell yeah
@coldspade15908 жыл бұрын
20 seconds into the video and I would rather just subtract
"How to subtract by Adding" -proceeds to do a series of subtractions.
@angeldude1015 ай бұрын
Subtracting multi-digit numbers is hard. Subtracting single digit numbers is significantly easier, and you can get away with this since subtracting from the largest possible digit in a base can never borrow. In decimal, this is as easy as memorizing 0 9, 2 8, 3 7, 4 5. If you're a dumb computer and can't handle even that much, then you can do the binary version which is 0 1... and that's it.
@Waddellaw9 жыл бұрын
I add by adding and subtract by subtracting. Never fails.
@mr.champion73047 жыл бұрын
but the question still remains, how do you subtract by adding?
@fr0ntend2 жыл бұрын
@@mr.champion7304 better yet, how do you add by subtracting?
@botigamer9011 Жыл бұрын
Any math problem will have dozens of methods to solve it
@thenew3dworldfan11 ай бұрын
It’s theoretically possible to divide by multiplykng provided the number we’re dividing by has a multiplicative inverse (or modular inverse) if modular arithmetic.
@hayleydieckman86248 жыл бұрын
Ready.... i know how to before the video starts.... *clears throat* 3+(-2)=1 Mind blown
@tubzthepanda8 жыл бұрын
An adding machine cannot deal with negative numbers (which is why it is called an adding machine), so they must subtract by adding without using negatives.
@Al-.-ex8 жыл бұрын
That's exactly the same as 3-2=1: same input, process and output. I really don't see why so many people don't understand this.
@chlorobyte8 жыл бұрын
+ulagudie they COULD deal with negative numbers. Click 'read more' only if your brain is able to deal with computer math. You've been warned. Real signed values for a computer have the first bit off for negative, on for positive. We'll do examples with an 8 bit number, which goes from -128 to 127. We'll also do overflows/underflows, which are basically when you add one to 127 to get -128 and vice versa. Representation for +5: %1000 0101 And -5: %0111 1011 Well, that looks completely wrong. So let's flip all the bits and see what we get... %1000 0100 That is 4! I'll explain. If we had unsigned values (which are 0 to 255), +5 would be +133 and -5 would be +123. What is +123 represented as? %0111 1011 You can see it: you add 4 to get to 127, and 1 to get to 128 (or %1000 0000). So basically to convert an unsigned value to a signed value you subtract -128 (but the computer doesn't do this. the display engine does it) Let's try 5 - 2 as the example. Computer does this: %1000 0101 + %0111 1110 To add a number, if two 0's collide, nothing happens. If 1 and 0 collides (or vice versa), it becomes 1. But what if two 1's collide? The bit left to it gets increased by 1, and the bit itself turns into 0. So here's the steps that happen: %1000 0101 %1000 0111 %1000 1011 (Note that 1+1=10 thing) %1001 0011 (It just starts looping.) %1010 0011 %1100 0011 Then... You get the result, %0000 0011 Wait, where did that one bit go while adding it? It would be there if we were working with 9 bit values (or 16 bit values because they're easier to place it). Let's do the same math. We get: %0000 0001 0000 0011 That's overflowing. If the bit can't be added within the 8-bit range, then it's just ignored, and we get the lower 8 bits, which is the last two groups of numbers (I'm grouping them to 4 bits for more readability). And lastly, let's convert %0000 0011 to decimal. If you know how to do this, you'll get 3. And indeed, 5-2=3. Wow, this took me a TON to type, but I hope it's understandable.
@chlorobyte8 жыл бұрын
i was about to edit the comment to correct a mistake but youtube doesn't goddamnit let me. anyway you need to flip the first bit after the calculation because that becomes negative something if you don't.
@GameBanditPc8 жыл бұрын
I...wasnt...prepared...my head hurts
@DanTheStripe9 жыл бұрын
Video length = 3:14 Pilluminati confirmed.
@babatulani63619 жыл бұрын
Wrong. It's 3.249 minutes long.
@patu80109 жыл бұрын
DanTheStripe Well, 3:13 but who's counting
@DanTheStripe9 жыл бұрын
patu8010 KZbin always takes off a second :P In subboxes you'll see 3:14
@zirconcrystal18699 жыл бұрын
You mean Tauovertwoilluminati confirmed
@cool25709 жыл бұрын
π = 3.1415926
@ihaveagun228 жыл бұрын
how the hell did anyone just stumble across this rule what was he doing?
@nelpski8 жыл бұрын
LSD. LSD is what he was doing.
@Dakta968 жыл бұрын
We use it in computers.
@arrisfay8 жыл бұрын
+ClownsClaws thats not what he asked...
@johnny45irish8 жыл бұрын
To compute means to calculate. Originally computers were people who specialises in computing large numbers mainly in their heads. To do this efficiently, short cuts would be helpful. This is where this, and many other short cuts were formed and used. Such knowledge is no longer really required for any practical use, apart from maybe to impress your friends at parties by calculating very large sums, although it can be useful in everyday life to know a few.
@PopeLando8 жыл бұрын
Every time you make change from a dollar, you're creating complements. Every time you figured out a subtraction by thinking of what the change would be and then adding it, you have subtracted by adding the complement. At least this is something I've done for as long as I can remember, so I think this is how somebody "stumbled" across this rule.
@YungPnut24048 жыл бұрын
This is much more relevant if you know how computers do it. Lol
@TheCreepyLuck8 жыл бұрын
I've been trying to explain how I subtract to my mom for years, this is gold for me
@adamcetinkent2 жыл бұрын
I've only ever subtracted from my mum
@jazzling2 жыл бұрын
@@adamcetinkent i ftreeaked your mom
@woodfur009 жыл бұрын
Um, but Henry, 2 + 2 still doesn't equal 1.
@CaptainStino9 жыл бұрын
woodfur00 This depends in what space you are calculating.
@libalchris9 жыл бұрын
woodfur00 It does in the finite field modulo 3
@reasonnottheneed9 жыл бұрын
woodfur00 Of course it does! Also, 2^3 = 2
@yoav1169 жыл бұрын
Apokalyps beat me to it xD
@ihrbekommtmeinenrichtigennamen9 жыл бұрын
woodfur00 Eh. I'm sure you can fiddle it in by using a different base and a fitting number of digits.
@fjoa1238 жыл бұрын
wow math is so flexible yet so restrictive. Like a rubber band choking a kitten.
@pyromaniac0000008 жыл бұрын
Ya really, why?? Why a kitten?? Why not, say, a puppy?? Sorry I don't like dogs....I know I have issues...
@javierlim48738 жыл бұрын
PETA is now tracking your search history
@fjoa1238 жыл бұрын
Javier Lim I love Kitties, just check my channel ):
@VoidExileYT8 жыл бұрын
you have serious problems
@joseantonio66378 жыл бұрын
Damn, your comment is as dark as my soul.
@FlyingKitty9009 жыл бұрын
Or just use a calculator
@FlyingKitty9009 жыл бұрын
***** There's a calculator in your computer.
@cedriccrystobalorleans6759 жыл бұрын
FlyingKitty Your profile picture fits your comment perfectly. :3
@lobtyu9 жыл бұрын
FlyingKitty This is the cheapest way in terms of both circuit cost and circuit space to implement a circuit that can do binary subtraction in a computer. This method is really only relevant for electrical and computer engineers like myself, I just wish the author emphasized the point of how this is how computers subtract more greatly since it seems like the use of this method could be a bit hard to see.
@ericcartmann9 жыл бұрын
FlyingKitty did you know your calculator does only approximations for lets say sin(1.52). most calculators are off by a few decimals. If you knew how the calculator works, you can just "mine" yourself a billion iterations of a Taylor series approximation to insure accuracy( you calculator does maybe 10-100 iterations depending on the speed/memory of the calculator) Even to do that approximation you need to know something about what minutephysics says. 64 bit machines can only have a number as large as 2^64 / 2 (negatives) or 2^64 (without negatives or unsigned). If we are dealing with unsigned 64 bit integers, what happens if you get a number like 2^64 + 1? Well this may sound counter intuitive, you just get 0, other interpreted languages well just cap at 2^64. with this in mind even your approximation algorithm will be off, of course you can correct easily using other algorithms. the point is recognizing that this is a thing.
@Oshyrath9 жыл бұрын
FlyingKitty Your laptop doesn't have time to use a calculator when calculating addresses.
@Kanglar7 жыл бұрын
After an entire semester of digital logic class, this 3 minute video finally got me to understand the actual reasoning behind 2s compliment :)
@Macandcheese1818 Жыл бұрын
It's so simple why couldn't they just teach this to us
0:17 I don’t want to carry over, so let’s start by subtracting everything from nine, which is effectively the same thing but more steps
@drmusa10033 жыл бұрын
Not really, doing it that way is much easier cuz - by 9 dosent have carry
@Dragonking37878 жыл бұрын
So if I had 999,995 dollars, five more dollars and I'd end up with 000,000 dollars? Nuuuuu!
@DaffyDaffyDaffy333228 жыл бұрын
+Dragonking3787 It also means if you go 3 dollars negative in your bank account you'll have 999,997 :P
@Dragonking37878 жыл бұрын
+DaffyDaffyDaffy33322 Really? I'm rich!!!!
@LillianWinterAnimations8 жыл бұрын
I have 0 dollars. All I need to do is give away 5 dollars, and I'll have 10^99 - 5 dollars!
@jonathangamez9528 жыл бұрын
If your bank computer system doesn't work with enough digits, then yes. That's what happened with the Y2K bug.
@oscarmendez14777 жыл бұрын
Jonathan Gamez Really? Thanks! I did not knew that.
@rinhato84539 жыл бұрын
How does maths even work.
@GivenFailure9 жыл бұрын
Rin Hato *sigh* this is why we need to rework math education.
@zirconcrystal18699 жыл бұрын
How does Meth even work
@freeforallhi9 жыл бұрын
***** Yes! I always thought of it as such, but you were the first I've seen to put it so concisely!
@GivenFailure9 жыл бұрын
One for All If you'd like to be even more concise: The examination of patterns in tautologies surrounding a rule set. That is math.
@GivenFailure9 жыл бұрын
***** Math isn't scientific.
@faciality8 жыл бұрын
but ur still subtracting.
@johnkeefer87604 жыл бұрын
OPULENT not in overflow on a computer
@JamesR6244 жыл бұрын
Yep. Just clickbait. Most larger channels like this know most of their viewers aren’t very smart. The point of these channels isn’t education. It’s ad money. Pure and simple.
@vertia28394 жыл бұрын
Well the video’s still entertaining so... and besides if he really wanted that ad money he would've stretched it out to 10mons
@vertia28394 жыл бұрын
Mins*
@abigailsokol30293 жыл бұрын
@@JamesR624 The point of the video was to show how machines (such as the adding machine shown, or more commonly, most computers) subtract numbers by adding rather than "real" subtraction. Most arithmetic logic units subtract numbers by first running a not operation on one number, then add the two numbers with the starting carry bit set.
@Czesnek9 жыл бұрын
I have no idea what is going on in this video.
@calvin30059 жыл бұрын
+Czesnek Basically, he's talking about maths and shit.
@Tremor2449 жыл бұрын
+calvin3005 I don't understand something....its probably maths and shit!
@badmintonlover27209 жыл бұрын
shit & shit
@jackhooper28399 жыл бұрын
So basically, for a - b = c, where b is a natural number (1,2,3,4...) with n digits, ((10^n - b) + a) -10^n = c The 10^n term cancels and you're left with: - b + a = c That makes sense doesn't it?
@SpookyMontero9 жыл бұрын
+Jack Hooper thanks bro
@AlexN51429 жыл бұрын
I'm in my final year of getting my computer engineering degree, and have taken tons of courses on digital logic, designing circuitry that adds/subtracts, and learned lots of discrete math and modular arithmetic. And until now, it never clicked that two's complement IS modular arithmetic! You just opened up a whole new world of understanding for me. Thanks!
@joshyoung14402 жыл бұрын
Okay, so from that description, I'm pretty sure computer engineering is what I need to go back to school for. I dropped out of university after losing passion for my major (and getting addicted to drugs), but I never stopped learning, and I've been thinking about going back now that things are better, and so I was thinking about all the stuff I've been into since leaving school... chemistry was a huge part of it, but recently it's been taking apart electronics in an attempt to learn about computers in the most bare-metal, what-is-a-bit-and-how-do-you-command-throngs-of-them-to-do-your-bidding kind of way. Oh, and 3d printing on my fuckin $80 toddler's-first-3d-printer (lmao), so learning a tiny bit of 3d design, but I still wanna focus on learning the nitty gritty.
@joshyoung14402 жыл бұрын
Also, hope your computer career is taking off well :)
@Dwagoner8 жыл бұрын
My brain is all over the floor
@outlet60188 жыл бұрын
This is the easiest video yet 10+ (-20)= -10 . Same as 10-20= -10
@Jeffrey3141598 жыл бұрын
Outleteon Not quite the same for calcs
@MusicalInquisit8 жыл бұрын
By calcs do you mean calculator or calculous?
@rdococ8 жыл бұрын
AnimatorGeorge: Calculous?
@shianeruu43598 жыл бұрын
So it's overflow-ring
@israellai9 жыл бұрын
Ah reminds me of the good old computer science lessons in high school. Add and ignore overflow.
@charriu9 жыл бұрын
xXGoblinLord69Xx as a programmer: :(
@666Tomato6669 жыл бұрын
xXGoblinLord69Xx So, how is the work at McDonalds?
@BrennenSprimont929 жыл бұрын
666Tomato666 Too be fair less than 1% of programmers are actually programming in a language low enough to use this information.
@666Tomato6669 жыл бұрын
Brennen Sprimont I don't expect them to use this, I expect them to understand the general concepts and limitations even if you use languages like Java you still have to worry about integer overflow
@daddyleon9 жыл бұрын
Israel Lai Yeah, but you´re still subtracting...
@chelsie2928 жыл бұрын
424242 and 333333. I sense some Illuminati and explanation of life here
@deadlydeath32456 жыл бұрын
Chelsie And 666667 and 1090909
@B8708796 жыл бұрын
Chelsie and illuminati sitting in a tree K I S S I N G
@electromorphous6 жыл бұрын
0 vids and 80 subs on ur channel? How?
@nigit74516 жыл бұрын
Chelsie 666667 has 5 sixes and one seven which when added are 37, 37 is prime, 3 is prime, the illuminati has 3 sides, illuminati confirmed
@kubatutak94525 жыл бұрын
Now 777-666=111 Today i met number 6.900e111 69, 777, 666
@Mudkip9717 жыл бұрын
*2+2=Fish*
@JuliuSeizure7 жыл бұрын
7+7=triangle
@Todaywalnut7 жыл бұрын
3+3=8
@derekmartin53407 жыл бұрын
u mean 2+2=The Quadratic Forumula
@adiramrakhani6 жыл бұрын
1+ 1 = window
@jellybeanjustin826 жыл бұрын
Mudkip971 no it equals 5 (Radiohead joke, search 2+2=5)
@andretsang73378 жыл бұрын
2's complement, eh? *YOU LOOK VERY NICE* Am I doing this right?
@VonUndZuCaesar8 жыл бұрын
+1
@lalalalalalalalal5678 жыл бұрын
You should say "you look 2 nice"
@Artorus8 жыл бұрын
I liked this comment, then unliked it so the Like Counter could stay at 69.
@robertpeacock20158 жыл бұрын
+Amos Tan I liked it anyway
@lalalalalalalalal5678 жыл бұрын
Robert Peacock Nooooooo
@ScienceAsylum9 жыл бұрын
I remember learning this as follows: Subtract *all* the digits from 9 and then add the first digit of the result to the last digit of the result: 1425 - 0923 ---> 1425 + 9076 = 10501 ---> 502 ...but I suppose it's essentially the same thing. I had no idea Hank's machine did things this way though. Cool.
@Misitan2 жыл бұрын
hello verified man who absolutely destroyed me when I tried to farm likes in your comments
@jazzling2 жыл бұрын
i love you
@chinomsookafor45648 жыл бұрын
How to subtract by adding: use negatives.
@TealJosh8 жыл бұрын
Can no do for computers
@Fillster3 жыл бұрын
But then you still would indirectly be subtracting.
@sporkafife9 жыл бұрын
How do you subtract by adding? Okay, here we go... first... DO A LOT OF SUBTRACTING :D But it's only single digit subtracting, so it's nicer :P
@Dobendanx9 жыл бұрын
sporkafife You can break down the "lot of substracting" to adding, too. In binary it's even easier, you just flip every bit and add a 1, and you are done
@yousorooo9 жыл бұрын
sporkafife In binary the only thing you do is just flipping the bits, which can be done in parallel by slapping in XORs, which is extremely efficient.
@neeneko9 жыл бұрын
sporkafife it is a lot cleaner in base 2.
@eideticex9 жыл бұрын
Derek Leung This is actually the same thing as binary. Decimal inversion is 9 - X, where 9 is the largest single digit value. Binary inversion is 1 - X, where 1 is the largest single digit value. Also the number he threw away at the end should be familiar too for 2s-compliment familiar folk, it's the sign digit.
@rangedfighter9 жыл бұрын
sporkafife you can do the single digit subtraction in your head, because every digit will be turned to the same digit always, then just add +1 to it at the end 1 will always be inverted to 8 2 to 7 3 to 6 4 to 5 and vice versa
@RaiOkami9 жыл бұрын
This is basically tens complement, right?
@TheSinfulFreak9 жыл бұрын
RaiOkami exactly!
@Zarggg9 жыл бұрын
RaiOkami Yes!
@moocats9 жыл бұрын
Pretty much
@AlqGo9 жыл бұрын
complement of 10 raised to the power of some n, where n is the number of digits of the number to be subtracted
@themegadrivekid77217 жыл бұрын
*walks to computer* Hey computer? "hello fellow nerd" I heard that you subtract by adding. "that is correct" So how do you know how to subtract 9 from each digit. Windows has encountered an error, and needs to shut down.
@quinn78945 жыл бұрын
"'i' simply xor the main number with all ones and add one"
@De_Swink4 жыл бұрын
@@quinn7894 This is not true. Two's compliment works by inverting all bits and adding 1. If you XOR all bits with 1 you get a gibberish number that has no mathematical meaning for calculations.
@fullfungo4 жыл бұрын
@@De_Swink They didn't say XOR with one, they said XOR with ALL ones, which would be a number consisting of only ones.
@jetison3334 жыл бұрын
Yall xoring with a one is the exact same as inverting the bits. Go look up the truth take if you have too.
@yuvalmaharshak55664 жыл бұрын
don't know how computer do it but he can just keep adding ones and check how many one's have been added until nine
@EnderCrypt9 жыл бұрын
yeah, but you still have to substract, lel
@Jayoshi329 жыл бұрын
+EnderCrypt you use the difference from nine or ten, not subtract. There's a fine difference between the two.
EnderCrypt Actually, it doesn't have to. You can use the smaller number, and count how many times you add one until you reach the bigger number. For example: 4 < 9 4+1 = 5 (1) 5+1 = 6 (2) 6+1 = 7 (3) 7+1 = 8 (4) 8+1 = 9 (5) And four plus five is nine. So, using the 1492-1066 example: difference between 1 & 9: 1+1 = 2 (1) ... 8+1 = 9 (8) *8000* difference between 0 & 9: 0+1 = 1 (1) ... 8+1 = 9 (9) *8900* difference between 6 & 9: (laughter is allowed) 6+1 = 7 (1) 7+1 = 8 (2) 8+1 = 9 (3) *8930* difference between 6 & 10: 6+1 = 7 (1) ... 9+1 = 10 (4) *8934* 8934+1492 = *10426* without the 10000: *426* Never subtracting a single digit.
@EnderCrypt9 жыл бұрын
Jayoshi *subtraction* "Mathematics. the operation or process of finding the difference between two numbers or quantities" so yeah, thats still subtraction
@Jayoshi329 жыл бұрын
EnderCrypt but you use addition methods to subtract. In computers, subtraction _must_ be composed of addition. It _cannot_ use subtraction directly, so your claim is incorrect that this method uses subtraction without adding. E: never mind, I see where you were coming from. The thing is that it doesn't take away a quantity, which is another definition for subtraction. (more specifically, to subtract)
@sterlingarcher38578 жыл бұрын
so to subtract by adding you need to subtract? okaaaaayyy
@larsvanpeer63114 жыл бұрын
That's exactly what my brain is going through now.
@Spark31Gaming8 жыл бұрын
Finally! A video by you with something I already knew about! I've been subtracting by the two's complement for ages now.
@amier2k19 жыл бұрын
dont fuck me up like this
@themaldi19 жыл бұрын
Your avatar makes this comment even funnier.
@mathiaskjeldgaardpetersen59269 жыл бұрын
+larlol2001 Yep there is a fake Minte Physics account made to scam you. but it's easy to spot the fake account, it has 0 subs and adversatives stuff like: FREE give-aways of 100 new Iphones just click this suspicious link. Henry wouldn't add links in the comments but in the video info
@amier2k19 жыл бұрын
Mathias Petersen i know ialways report them
@zachogilman73979 жыл бұрын
larlol2001 Well, I don't think it's fake because its run by a REAL person, Henry! Plus that's the greatest subtraction method I've ran into! Try to solve 185-92 in 15 seconds just rounding and then give another 15 for subtracting by adding. Well... Okay, okay! The method is take 9 minus the digits to the left of the ones place and 10 minus the final digit. You then add your new number to your larger number. and then you ignore the first digit, resulting in your answer! 185-92= 93 185+08=193, or 93
@zachogilman73979 жыл бұрын
Zacho Gilman Yes it is a cute puppy!!!!!!!!!! ;) ☺☺☺☺☺☺☺😁😁😀😀😀😁😁😁😁
@Liamv46969 жыл бұрын
This is basically me in my programming class at uni. Just like, lolwut
@gustythebest9 жыл бұрын
Liamv4696 I'm in my second year of Comp Sci and they have never spoken about this... Well maybe they have but chances are I wasn't there.
@Liamv46969 жыл бұрын
Gusty Abra Im doing a mechanical engineering degree, yet i have to do two electrical systems units and a programming unit. Still waiting to do some physics...
@TheCh0senOne9 жыл бұрын
Liamv4696 Seems only logical, right? Computers can only perform 3 basic functions: adding, comparing and transfer of data. When I watched this, programming was the first thing that came to my mind. Reminds me a bit of "Russian Multiplication".
@BrennenSprimont929 жыл бұрын
Gusty Abra My school covered it at the 3000 level in a class rightfully abbreviated as "CAOS" (Computer Architecture and Operating Systems). Not a good time.
@lobtyu9 жыл бұрын
Brennen Sprimont My school has all electrical and computer engineers and computer science majors take this in their first year in a 100 level class. And then we used this concept to build a microprocessor that could subtract, among other functions lol Literally one of the hardest classes I've taken.
@Varsei8 жыл бұрын
who else just blank out in the middle of the video?
@ahuttee7 жыл бұрын
Not me
@harvirdhindsa32448 жыл бұрын
Most of the commentators here have no idea what he was stressing in this video. Although this may not be practical for you on a daily basis, it is how machines work. And machines are essentially the future so it is vital to know how they work.
@SonicMusicVape6 жыл бұрын
He should've added, "How computers do it" in the title
@markoftheland31159 жыл бұрын
how to subtract by adding? SUBTRACTING every single one of the numbers from 9 and then do the adding process. okay then...
@pyritenightmare7 жыл бұрын
This was 2 years ago, I know, but using addition to make the number equal to 9 (for example, with 6, you'd add 3), then use the number you added. (Same thing with the final digit but with 10.) No subtraction needed!
@thomasslone19647 жыл бұрын
Marcos Landi this process still requires a form of subtracting so how do I make a binary
@waltblackadar46907 жыл бұрын
It's still subtraction, Thumbs down.
@FriendofWigner3 жыл бұрын
I have been using this principal for off and on for almost 15 years now, and this is the first time it actually made sense to me on an intuitive level. You did in three minutes what multiple professors, books, and videos couldn't. You, sir, are a rock star.
@SonicRooncoPrime9 жыл бұрын
Amazing how quickly the views roll in. Great work MinutePhysics!
@nataliesnooks9 жыл бұрын
SonicRooncoPrime I know right.
@MontagoDK9 жыл бұрын
i discovered this myself in 3rd grade: Division by 5 is the same as multiplying by 2 and dividing by 10 eg: 45 : 5 = 90 / 10 = 9 47 : 5 = 94 / 10 = 9,4 etc...
@palmomki9 жыл бұрын
***** Well... you were a smart kid. But... how does this relate to the mechanism proposed in the video? XD
@MontagoDK9 жыл бұрын
palmomki not much, other than being a calculation trick.
@Skiddla9 жыл бұрын
***** careful young watson, you also need to divide your reminder by 2 :o)
@palmomki9 жыл бұрын
***** remainder? he's not using exclusively integers, he won't ever get any remainder
@MontagoDK9 жыл бұрын
***** what remainder ? try punching the numbers into a calculator
@bailey1258 жыл бұрын
You are still subtracting but you are just doing it individually to each digit. Unless you predetermine the numbers: 1 = 8 or if it is the last digit: 1 = 9 2 = 7 2 = 8 3 = 6 3 = 7 4 = 5 4 = 6 5 = 4 5 = 5 6 = 3 6 = 4 7 = 2 7 = 3 8 = 1 8 = 2 9 = 0 9 = 1 0 = 9 0 = 10
@nuklearboysymbiote8 жыл бұрын
Exactly. Doing it by each digit is what makes it diferent than the conventional method.
@Jeffrey3141598 жыл бұрын
I thought he was using the 9's Compliment to subtract, like those cheap electromechanical adding machines(from the 1960's) used to subtract. Those simple machines couldn't calculate with negative intergers for their motorizing components rotated in one direction.
@connorhorman4 жыл бұрын
If you do it in binary, it's free to do so.
@michaelhanford81392 жыл бұрын
predetermining the numbers still requires subtraction tho. Tho that's what the makers of the adding machines must have done. Lol back to back 'thoughs'! 😄
@Just10tb9 жыл бұрын
This is more complicated than just subtracting it.
@Roxor1289 жыл бұрын
Justin Baldwin Not really. If anything the borrowing mechanism of conventional subtraction is more complicated than "invert the digits and add one".
@Nemoticon9 жыл бұрын
***** No
@Roxor1289 жыл бұрын
Rogue Qall "No."? Is that all? No explanation why you disagree?
@Nemoticon9 жыл бұрын
***** Strait up subtraction isn't that hard to do at all. I'm pretty poor at maths, but addition and subtraction isn't something I need a mechanism for. Be it mentally or written on paper.
@shadfurman9 жыл бұрын
Rogue Qall I think you're ignoring your experience with subtraction. Its not about it needing a "mechanism". I imagine if this were the way you were taught to subtract as a child it might be easier. The point of it is that its a different way that can be better is SOME cases. It seems to me in a brain calculation case, training and experience being equal, these would be roughly equal.
@anasofxa98048 жыл бұрын
How to subtract by adding: OK FIRST U GOTTA SUBTRACT EACH DIGIT FROM 9 AND THEN- Yeah that was really eye-opening minute physics thanks for showing me how to subtract by adding, especially the part where you told me to do subtraction
@neelamverma81674 жыл бұрын
This video was posted one month late than when it should have been...
@tgseidel9 жыл бұрын
looking for channnels like vsauce and minutephysics? any suggestions? :)
@RockSmacker9 жыл бұрын
Tobias Seidel Check out Veritasium; amazing work
@enricomercadante51719 жыл бұрын
Tobias Seidel Veritasium!
@enricomercadante51719 жыл бұрын
Tobias Seidel Veritasium!
@BhupinderSinghSaini19 жыл бұрын
Tobias Seidel Smarter Every Day, Veritasium, Scishow, ViHart, Asapscience
@michal30039 жыл бұрын
Tobias Seidel veritasium
@messianicrogue9 жыл бұрын
whooosh.... straight over my head.
@saftaisland34277 жыл бұрын
OMG i wish i saw this during my year 12 software classes. The way my teacher explained it made it go straight over my head but this is so easy to understand.
@Tocaraca8 жыл бұрын
2+-1
@ishrak18138 жыл бұрын
1
@Tocaraca8 жыл бұрын
Ishrak Khan lol
@iqbaltrojan8 жыл бұрын
+Ishrak Khan* 0** *D0 i reconize that name? **0 = 1^ ^as l0ng as y0u d0nt l00k t0 far 000
@hagalathekido8 жыл бұрын
its 1 m8
@Al-.-ex8 жыл бұрын
This is exactly the same as 2-1, just written differently: same input, processes and output. All you did was add a '+'. Btw it's 2+(-1).
@halithegreat32408 жыл бұрын
I know how to subtract by adding! 8+-1=7. MAGIC
@a.f.nik.42108 жыл бұрын
u 2's complement?
@halithegreat32408 жыл бұрын
Wafflez the Great Its called joking you moronic kindergartner.
@petrkdn82247 жыл бұрын
you can.. you add a negative number 2+ (still positive number) -2(negative number..)=0 so that means you add negative number
@adiramrakhani6 жыл бұрын
yes you can
@daredevil37446 жыл бұрын
Yep...
@XY_Dude4 жыл бұрын
I learned this sometime ago when I was repairing mainframe computers. Those computers did everything by adding and bit shifts. Cool.
@CatalystEXE9 жыл бұрын
commoncore.mpg
@VentMagic1029 жыл бұрын
amen.
@Oshyrath9 жыл бұрын
+CatalystEXE Not common core. Computer architecture. As a guy who's majoring in CE, this video makes perfect sense.
@VentMagic1029 жыл бұрын
Oshyrath thanks for playing
@dionaeamuscipula66498 жыл бұрын
+Oshyrath ( ° □ °)-°•¤•°○☆ SHIPPIDY DIPPIDY DENCE! I FORCE YOU! TO NOT MAKE SENSE
@CatherineLu9 жыл бұрын
That was pretty cool.
@louiejohncastillo9822 Жыл бұрын
you almost touched the p-adic numbers.
@MegaCalin889 жыл бұрын
Anyone else feel dumb after this?
@chiggawaffle049 жыл бұрын
Nope
@diondredunigan25839 жыл бұрын
+Calin H No
@adamross96269 жыл бұрын
meh,nope
@girlrants13348 жыл бұрын
Yes and I am Asian 😮
@wintersolstice35738 жыл бұрын
+Calin H Already knew this since I studied logic circuits and switching theory :) They do it in EXCESS 3 (or in short terms to add a +3 to any given number) to correct the computing error that +0 is greater than -0
@mazowskii33429 жыл бұрын
2+(-1)=1 done.
@doctorblaze54976 жыл бұрын
that's it the same thing as 2-1 as adding a negative is subtraction, subtraction is the addition of negative numbers but just removing the addition sign and leaving the negative sign means the same thing. Adding negative numbers is just subtraction but usually used for reorganizing an equation so if you wanted to reorganize 2-1 you would go -1+2 which is the same thing.
@XavierAliatos6 жыл бұрын
I wasn't sure where you were going with this until you mentioned the adding machine, then my comp sci background kicked in. Clever way to frame the idea!
@adityakhanna1139 жыл бұрын
Thanks Henry, I just recently studied the two's complement ..,. I didn't know its use... Until now... These videos are as great as your physics' ones... P.S. 424242 .. Got that reference.. We all are obsessed with 42 ,aren't we XD? Plus it's 101010 in binary... Alternating digits everywhere!!
@JNCressey9 жыл бұрын
Aditya Khanna Actually, 424242 Dec = 1100111100100110010 Bin. 101010 Bin = 82 Dec.
@adityakhanna1139 жыл бұрын
I was talking about... 42 Dec = 101010 Bin Like 424242 has alternating decimal digits . 42 ( 101010) has alternating binary digits
@JNCressey9 жыл бұрын
Aditya Khanna Sorry, when I did Bin→Dec on 101010 I accidentally did _2+2^3+2^6_ and got 82 instead.
@adityakhanna1139 жыл бұрын
JNCressey I understand it happens, man! :) Chillax!
@claraisweird63959 жыл бұрын
Forty-twooo... ;D
@q-tek83497 жыл бұрын
"Subtract by adding" Process: *subtract* 9 from each digit and 10 from the last
@dotted_stains27923 жыл бұрын
👁️👄👁️
@roy047 ай бұрын
Always took it as a given and never understood much how, but two's complement makes so much more sense now.
@Shangori9 жыл бұрын
I love math! And computers! I love this video!
@Adokebab9 жыл бұрын
Let me guess Your asian :)
@seppeldiseppsepp9 жыл бұрын
Shangori its not just love, its love²
@Shangori9 жыл бұрын
I cant find a name Not at all. I'm dutch. But, I work with AI systems and I enjoy math more than language. More predictable
@pablez949 жыл бұрын
I cant find a name and you're racist! :D
@MagnusSkiptonLLC9 жыл бұрын
Shangori I hate computers. And my day-to-day job is programming...
@DaniJaxJarcor9 жыл бұрын
Lenght of the video: 3:14 Icy wat u did there.
@idkwhatamidoing81596 жыл бұрын
2:37 you still have to subtract when you do 9-8 or something like that
@Owen_loves_Butters2 жыл бұрын
The nice thing about binary is subtracting from 1 just inverts the digit
@ryPish9 жыл бұрын
Cool Numberphile video, too bad it's on the wrong channel D:
@ericcartmann9 жыл бұрын
georgyorgy2 dont be a fucken jew.
@georgyorgy29 жыл бұрын
***** Ok, Kenny.
@user-ez5vq9fd2t9 жыл бұрын
Ry P shots fired
@gandhi52229 жыл бұрын
Cat the Turtle
@OscarCookeAbbott9 жыл бұрын
Great for subtracting by adding... Except that it requires you to subtract numbers from 9 and 10...
@k2saf9 жыл бұрын
Oscar Cooke-Abbott or maybe, you could do add (for example) 5 +9 = 14 and just take the 4 ( 9-5 = 4 ).
@OscarCookeAbbott9 жыл бұрын
k2saf true enough
@unaliveeveryonenow9 жыл бұрын
Oscar Cooke-Abbott or make a lookup table with 10 rows
@SerenityReceiver9 жыл бұрын
k2saf nope...use a different number to check your hypothesis.
@BlurryButInHD9 жыл бұрын
k2saf doesnt work with 7-6
@NonTwinBrothers4 ай бұрын
I remember watching this in middle school. I remembered it 9 years later while writing an arbitrary-length integer class :D
@user-kd4mi8xb7p9 жыл бұрын
What if I don't know addition?
@magnus.magnusson9 жыл бұрын
Kim Jong-Un then use rocks.
@Gruncival9 жыл бұрын
Kim Jong-Un Addition is just "faster counting", so you just have to remember how to count by numbers greater than 1, my Great Leader.
@mrhappy1929 жыл бұрын
Subtract 9 from every digit and subtract the numbers. You should get the correct result except the first digit.
@emileighmatthews49558 жыл бұрын
I'm just going to subtract...
@theknowitall27633 жыл бұрын
This is the method I use for subtracting from powers of 10, but I never knew we could do it for any number. The more you know.
@mcgelloe8 жыл бұрын
Nobody in the comments section understood the video...
@kyletzzff1258 жыл бұрын
That's just your opinion, I understood it perfectly.
@niranodoneh7828 жыл бұрын
Fix: MOST people in the comments section didn't understand the video.
@omgitsjezus7 жыл бұрын
I understand it others don't xd
@HandledToaster25 жыл бұрын
I, an intellectual, understood the video.
@MrJason0059 жыл бұрын
8+(-6)= 2 My maths teacher has turned our way of thinking upside down, she wants us to see subtraction as adding.
@pharos6402 жыл бұрын
In the middle of the video I remembered that in computers if you want to subtract A - B you just flip the bits of B and add them together. Also cool explanation
@catchthesehands29368 жыл бұрын
Yep I saw this and immediately resized it was 2's compliment for base 10 :p
@Sal-zi4tu9 жыл бұрын
SPOILER: the concepts explained matter to a computer scientist, not 8 years old below.
@jacobrickayzen27447 жыл бұрын
i got introduced to this video, and this entire channel, by a friend and i was fascinated by this video so i learnt and practiced and eventually mastered this technique. i soon after had a maths test but there was one slight problem... i somehow forgot how to column method for subtraction. i was young at the time and i remembered that is learnt how to subtract by adding so i did this method, got the answer correct and confused the hell out of my teachers because is showed my working out. :)
@jacobrickayzen27447 жыл бұрын
i* not is
@MiRaje80869 жыл бұрын
you still have to subtract lmao
@ads10219 жыл бұрын
Yes, but because he presented an imperfect alternate to the actual method.
@jevotepour9 жыл бұрын
so you have to make five subtractions plus one addition for the same resulte as a basic subtaction. how useful...
@fieldinterference9 жыл бұрын
Tovi Pavatam It seems "minute physics" uses the opposite mentality from Occam's razor ...
@MidiMaze1788 жыл бұрын
this video actually put me to sleep. it wasn't boring I was just really tired and I fell asleep.
@overpowered59198 жыл бұрын
I think I prefer using my calculator:)
@toxicore11909 жыл бұрын
this actually is used in computers
@melvillefletcher43329 жыл бұрын
Toxi Core Did you even watch the video?
@toxicore11909 жыл бұрын
Melville Fletcher wrote this while watching the video so yeah ..
@yousorooo9 жыл бұрын
Toxi Core Should've watched the whole video before commenting...
@toxicore11909 жыл бұрын
Derek Leung yes captain obvious lol
@johnny45irish8 жыл бұрын
You can also multiply the number you want to take away by -1, which makes it a negative number, which when added to the original number, does the opposite and subtracts.
@adriancarpio75368 жыл бұрын
999 gajillion 999 bajillion 999 XD
@VincentGuillotine9 жыл бұрын
lmao it's easier to just use regular subtraction
@Zarggg9 жыл бұрын
VincentGuillotine You completely missed the purpose of the video.
@VincentGuillotine9 жыл бұрын
Zarggg ok well you can enjoy the video's purpose while I do subtraction the fast and easy way
@jasondoe25969 жыл бұрын
VincentGuillotine The "fast and easy way" is using a computer. Guess what, computers do exactly what is shown in the video.
@VincentGuillotine9 жыл бұрын
Jason Doe haha as if the fast and easy way is to use a calculator not a computer smh
@jasondoe25969 жыл бұрын
VincentGuillotine What's the difference? Trolls gonna troll, I guess :)
@blank32114 жыл бұрын
I like how he tells me I'm going to subtract by adding and not have to subtract but the first step is to subtract the digits
@kekships8 жыл бұрын
Why do 1st grade teachers never teach this?
@ontariolacus8 жыл бұрын
Because it's just easier to use calculator in real life?
@PigsBeFlying8 жыл бұрын
+ontariolacus but you won't have a calculator with you everywhere you go, phones don't exist, you have to take this math class
@ontariolacus8 жыл бұрын
Not Important That's not a reasonable argument. It's better to teach children survival skills. Finding in a place where you don't have access to a calculator and at the same time in dire need of speedy calculation is much less probable than say making fire. Don't get me wrong, I like math, but basic hand calculations that children are taught are more than enough.
@PigsBeFlying8 жыл бұрын
ontariolacus sarcasm*
@ontariolacus8 жыл бұрын
Not Important Poe's law makes sarcasm pretty useless for random comments.
@SteveGottaGoFast9 жыл бұрын
Cool Cool, but what does that have to do with physics?
@SteveGottaGoFast9 жыл бұрын
***** kk
@aru050018 жыл бұрын
I did this as a kid, my teachers put the kaibach on that one...thank you for reminding me how it works.
@kimmyawesomeness41849 жыл бұрын
i thoguht he was gonna be like"YA'LL CAN ADD A NEGATIVE AND BAM! IT'S LIKE SUBTRACTING!: I was wrong....
@sumobear17778 жыл бұрын
how high is gazillion? I know million billion trillion quadrillion quintillion septillion sextillion octillion nonillion decillion undecillion - all the way to centillion and its no where in there.
@meowtasia028 жыл бұрын
+Pat P gazillion is a made up word
@TrumanHill8 жыл бұрын
+Pat P lol cause gazillion isnt a number just an expression for a large digit
@SSDARKPIT8 жыл бұрын
Too many illions.
@nhaugen59758 жыл бұрын
+Pat P But sextillion comes before septillion.
@PotatoMC18 жыл бұрын
Million billion trillion quadrillion quintillion sextillion septillion octillion nonillion*
@balf11111173737 жыл бұрын
I do this subconsciously, I see a mathematical question and instantly the answer pops in my head without working anything out. I then work out the answer and it's correct
@phillytothemax9 жыл бұрын
Peanut butter.
@CatholicismRules8 жыл бұрын
Does this mean that when I subscribe to you I'll really be taking a subscription away? And that when someone unsubscribes to you they really subscribe?? Does this mean that I should dislike the video and write a negative comment, meaning it's positive, promoting your channel!? So if it's been 1 hour since I last ate then it's really been 1 hour until I will eat again?? But wait no! Because eating again implies I've already eaten! And since (this time) - (1 hour) really equals (this time) + (1 hour) does this mean I've never eaten?? I've never had Chickfila!! Dx I don't like this, it's too confusing. But if it's too confusing that means it makes perfect sense. I don't get it. I made my house a mess, which was making it clean, which made Squidward clean my yard, but that really means he's messing it up. But the opposite of clean is filth, which means filth is clean, that means Squidward is really making my yard a wreck, but I normally wreck my own yard which means, Squidward is being the opposite of Squidward which means he's SpongeBob! A-ha! I understand everything perfectly now! I'm just kidding of course, I understand how this works lol.
@vsrirampriya69728 жыл бұрын
Sensei Jack is likes thats comments becauses is likes this facts thats yous tooks yours times tos writes suchs as uselesss comments
@chickennugger60298 жыл бұрын
Sensei Jack just unsubscribe...
@isaacw32127 жыл бұрын
Sensei Jack I was getting a little worried for you until I read the last sentence lol
@Yui7147 жыл бұрын
Or simply find the difference between the two numbers by adding on to the smallest value until it reaches the higher value. 1324 - 960 = 40 + 324
@DeadUnicornClub9 жыл бұрын
If you want to subtract without subtracting your first step is to subtract...??? This trick is probably really good for machines, but for me personally it seems like there are more steps involved than regular subtracting. A cool trick, but not something I'll use.
@Evilovedoctor9 жыл бұрын
dude you can just take 1492 - 1066 and get the answer
@Evilovedoctor9 жыл бұрын
I refuse to believe that you people did not know that
@lobtyu9 жыл бұрын
Evi You completely missed the point of this. This is how anything using circuits subtract. This is by far the cheapest method in terms of both circuit space and material cost to implement a subtractor circuit.
@izvarzone9 жыл бұрын
That's what I did.
@loiclejeune28774 жыл бұрын
i'm trying to make a caculator in minecraft right now and this is going to help a ton
@teyfc24618 жыл бұрын
but you are not just adding. 9-1, 9-3, 9-6 and so on....
@MLGRuthless8 жыл бұрын
TeyFC I know right
@hprobertos8 жыл бұрын
He told that the machine just rotates the numbers, its not substracting anything
@chickennugger60298 жыл бұрын
TeyFC the guy just threw up a bunch of numbers onto a screen, swapped around some number sums and bob's your uncle, you made a video that doesnt make sense.
@teyfc24618 жыл бұрын
I made a video that doesnt make sense?
@yehoshuas.69178 жыл бұрын
+TeyFC i get what ur saying, but this is supposed to make it easier, not necessarily just never subtract. However this subtracting never requires borrowing since it is always 9- a one digit number which is between 0-9, 9 is always greater than or equal to that number, borrowing is never required. I still don't like this method since it always requires an additional step for each new digit, while doing subtraction may take either one or two steps, and addition takes at least one,so the normal way takes an average of 1.5 steps/digit, and this new way requires 2.5 steps/digit.
@TheOfficialSassafras9 жыл бұрын
I didnt understand anything
@OnlyFabz9 жыл бұрын
TheOfficialSassafras I actually understood it all perfectly and english isnt even my native language (kinda hard to understand other videos sometimes because they speed up video when talking), Its well explained why would you get lost?
@fabiosoares44509 жыл бұрын
TheOfficialSassafras Watch it again until you get it.
@OnlyFabz9 жыл бұрын
i know exactly what he meant... he meant he didnt understand the process of the substaction, i just told him that it was perfectly explained and there shouldnt be any reason to get lost, thanks for your comment but it was totally irrelevant -_-
@TheOiseau8 жыл бұрын
This is "ten's complement" addition, the equivalent of "two's complement" in computers.
@Burn1ngR4g39 жыл бұрын
777-222 9-2 9-2 10-2 778+777=1555 777-222=555 totally more easy