How to Subtract By Adding
Вставка
- Опубліковано 30 кві 2015
- Brought to you by www.lynda.com/minutephysics
en.wikipedia.org/wiki/Method_...
Hank's adding machine video: • In Which Hank is the N...
Thanks to the following Subbable subscribers for making MinutePhysics possible:
@leilasalim
bashessels.nl
@terinjokes
@TBSkyen
@rbairwell
RJ Dye
Vanja Pejovic
Zoltan Peczoli
Garth Gergerich (@twarth)
Veggie from Reddit
DeathByPuppets
Alysa Joaquin
Twitter: @BJHanssen
Kasey Kagawa
Candice Blodgett
John B Kelly III
Jeremy Tuohy
/ thisisfilmgrit
Moti Lieberman
@MatthewJWoolley
Róisín Hébert
Sadhbh Hébert
Mark Delcambre @charkbot
Lije Carpenter
AdamTheMechE
Principia
Joseph Perry
nowwearealltom
@shayousefi
Isabella Clara Archuleta Boyce
David Howard
Nico Houbraken
Gustav Delius
@vicnice137
This video made possible by the following Patreon Supporters:
Mark
Wes Brown
John Green
Florian Philipp
Rens van der Heijden
Bob Bolch
Daniel Ametsreiter
Joël Quenneville
Richard Pearson
David Dailey
Steven Mulder
Karim
Ethi Raj
Ryan Kyle
William Ricketts
Collin Mandris
Matt
Jonathan Foster
Siddharth Sadanand
Maarten Daalder
Robby Olivam
Alan Browning
Jonathan Piersa
Julia Person
James Craver
Sarah Chavis
Yonatan Bisk
Richard Campbell
Chris Barrett
Jan A
Christopher Coleman
Daniel “YoureDown” Breger
Hendrik Payer
Daniel Yip
Matt K
William Pearson
Kevin Lynch
Nick Ward
Kevin
john eriksson
Allan Farrell
Tobias Olesen
Chris Chapin
Michael Keefe
Jon Mann
Bert Goethals
Joji Wata
Adam Naber
Rob Ibsen
Jacob Gumpert
Peter Collier
Andi Davis
Aarthy
Raymond Cason
Evan Gale
Paul
Tori McClanahan
Andrew Stobie
Dominik Steenken
Danilo Metzger
Christian Altenhofen
Ezra Lee
Roy Morgan
Olivia Darroch
Amber Ciarvella
ryan horlacher
Keith Chang
Milokot
Janel Christensen
Will Scherer
Mike Fulcher
Larom Lancaster
Liam Callaway
John Harman
Christos Papandreou
Fernando Pazin
Johnathon Kinville
Jason Medrano
Andrew Barnett
Katharina Schuchmann
John Gietzen
Michael Tardibuono
Matthew Hebert
Christy Filipich
Pierre-Louis Bourgeois
Genevieve Lawrence
Brian D’Agostini
Chris
Dominik Menzi
Ryan A. Schauer
Daniel Johnson
Nico Houbraken
Michael Carr
Ragnhild
Elizabeth Meisterling
Lysann Schlegel
Magnus Krokstad
Chase Turner
Owain Blackwood
Russ Arrell
Brenden Bullock
Asaf Gartner
Mark Samberg
Tina Johnston
Mike Cochrane
Tom Murphy
Peter L
Jeff
Erica Pratt
David
Artur Szczypta
David Drueding
Nicklas Ulvnäs
Nigel W
James Nelson
Mary Foster-Smith
Clayton Neff
Michael Merino
Jason and Gayle Corfman
Mihaly Barasz
Steven Klurfeld
Richard Bairwell
Tamas Bartal
Erven
Justin Prahl
Michael Maitlen
John Harman
Hans van Staveren
Kasey
Karlin Nazario
M K
Jacques LABBÉ
Geralyn Byers
jason black
Candice Blodgett
Daniel Gibbs
Henry Berthelsen
Andy Kittner
Steve Hall
Erdumas
Rob Snyder
John Kelly
Jessica Rosenstein
Bill Tomiyasu
Vasco Simões
Eoin
Simon Hammersley
iain
Holger
Alexis Carpenter
Jay Goodman
Joseph Perry
Mark Govea
Eduardo Rampelotto Gatto
MinutePhysics is on Google+ - bit.ly/qzEwc6
And facebook - / minutephysics
And twitter - @minutephysics
Minute Physics provides an energetic and entertaining view of old and new problems in physics -- all in a minute!
Music by Nathaniel Schroeder / drschroeder Created by Henry Reich - Наука та технологія
You took an entire computer science lecture and turned it into a 3 min video! Nice!
RedKB If your class takes a whole lecture to teach students about 2's complement, then you probably went to the wrong college.
Derek Leung Have you ever seen an MIT lecture? The spend the whole class explaining concepts just like this.
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.
RedKB hey redkb, you watch minutephysics?
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.
This is exactly what I need to know at 3 am.
knollie thinking the exact same thing😂😂
Play minecraft.
Sad thing is it's exactly 3:00 as I'm typing this.
2:00 exact.
1:24 hell yeah
20 seconds into the video and I would rather just subtract
hahhaha :D
Yep
VanillaChocolateJ aSame
Margie&Kira 113 tggggvydzydxmjcyk6to guff😀😍🐷😚💙💓😚💙🐽💓😚1234567880
Honestly same
"How to subtract by Adding"
-proceeds to do a series of subtractions.
I add by adding and subtract by subtracting. Never fails.
but the question still remains, how do you subtract by adding?
@@mr.champion7304 better yet, how do you add by subtracting?
Any math problem will have dozens of methods to solve it
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.
Video length = 3:14
Pilluminati confirmed.
Wrong. It's 3.249 minutes long.
DanTheStripe Well, 3:13 but who's counting
patu8010 UA-cam always takes off a second :P In subboxes you'll see 3:14
You mean
Tauovertwoilluminati confirmed
π = 3.1415926
Ready.... i know how to before the video starts....
*clears throat*
3+(-2)=1
Mind blown
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.
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.
+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.
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.
I...wasnt...prepared...my head hurts
wow math is so flexible yet so restrictive. Like a rubber band choking a kitten.
Ya really, why?? Why a kitten?? Why not, say, a puppy?? Sorry I don't like dogs....I know I have issues...
PETA is now tracking your search history
Javier Lim
I love Kitties, just check my channel ):
you have serious problems
Damn, your comment is as dark as my soul.
How does maths even work.
Rin Hato *sigh*
this is why we need to rework math education.
How does Meth even work
***** Yes! I always thought of it as such, but you were the first I've seen to put it so concisely!
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.
***** Math isn't scientific.
how the hell did anyone just stumble across this rule
what was he doing?
LSD. LSD is what he was doing.
We use it in computers.
+ClownsClaws thats not what he asked...
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.
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.
This is much more relevant if you know how computers do it. Lol
After an entire semester of digital logic class, this 3 minute video finally got me to understand the actual reasoning behind 2s compliment :)
It's so simple why couldn't they just teach this to us
Same! Finally understood why 2's complement works.
I have no idea what is going on in this video.
+Czesnek Basically, he's talking about maths and shit.
+calvin3005 I don't understand something....its probably maths and shit!
shit & shit
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?
+Jack Hooper thanks bro
Um, but Henry, 2 + 2 still doesn't equal 1.
woodfur00 This depends in what space you are calculating.
woodfur00 It does in the finite field modulo 3
woodfur00 Of course it does! Also, 2^3 = 2
Apokalyps beat me to it xD
woodfur00 Eh. I'm sure you can fiddle it in by using a different base and a fitting number of digits.
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
Not really, doing it that way is much easier cuz - by 9 dosent have carry
but ur still subtracting.
OPULENT not in overflow on a computer
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.
Well the video’s still entertaining so... and besides if he really wanted that ad money he would've stretched it out to 10mons
Mins*
@@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.
Ah reminds me of the good old computer science lessons in high school. Add and ignore overflow.
xXGoblinLord69Xx as a programmer: :(
xXGoblinLord69Xx So, how is the work at McDonalds?
666Tomato666 Too be fair less than 1% of programmers are actually programming in a language low enough to use this information.
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
Israel Lai Yeah, but you´re still subtracting...
dont fuck me up like this
Your avatar makes this comment even funnier.
+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
Mathias Petersen i know ialways report them
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
Zacho Gilman Yes it is a cute puppy!!!!!!!!!! ;) ☺☺☺☺☺☺☺😁😁😀😀😀😁😁😁😁
How to subtract by adding: use negatives.
Can no do for computers
But then you still would indirectly be subtracting.
My brain is all over the floor
This is the easiest video yet
10+ (-20)= -10 .
Same as 10-20= -10
Outleteon Not quite the same for calcs
By calcs do you mean calculator or calculous?
AnimatorGeorge: Calculous?
So it's overflow-ring
This is basically me in my programming class at uni.
Just like, lolwut
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.
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...
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".
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.
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.
I've been trying to explain how I subtract to my mom for years, this is gold for me
I've only ever subtracted from my mum
@@adamcetinkent i ftreeaked your mom
*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.
"'i' simply xor the main number with all ones and add one"
@@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.
@@De_Swink They didn't say XOR with one, they said XOR with ALL ones, which would be a number consisting of only ones.
Yall xoring with a one is the exact same as inverting the bits. Go look up the truth take if you have too.
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
*2+2=Fish*
7+7=triangle
3+3=8
u mean 2+2=The Quadratic Forumula
1+ 1 = window
Mudkip971 no it equals 5
(Radiohead joke, search 2+2=5)
yeah, but you still have to substract, lel
+EnderCrypt you use the difference from nine or ten, not subtract. There's a fine difference between the two.
Jayoshi diffrence uses subtraction, basic subtraction, subtraction nontheless
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.
Jayoshi *subtraction*
"Mathematics. the operation or process of finding the difference between two numbers or quantities"
so yeah, thats still subtraction
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)
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
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
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.
sporkafife it is a lot cleaner in base 2.
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.
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
who else just blank out in the middle of the video?
Not me
Finally! A video by you with something I already knew about! I've been subtracting by the two's complement for ages now.
So if I had 999,995 dollars, five more dollars and I'd end up with 000,000 dollars?
Nuuuuu!
+Dragonking3787 It also means if you go 3 dollars negative in your bank account you'll have 999,997 :P
+DaffyDaffyDaffy33322
Really? I'm rich!!!!
I have 0 dollars. All I need to do is give away 5 dollars, and I'll have 10^99 - 5 dollars!
If your bank computer system doesn't work with enough digits, then yes. That's what happened with the Y2K bug.
Jonathan Gamez Really? Thanks! I did not knew that.
This is basically tens complement, right?
RaiOkami exactly!
RaiOkami Yes!
Pretty much
complement of 10 raised to the power of some n, where n is the number of digits of the number to be subtracted
I've watched lot of these videos, and they're grate, but this one if by far the best, and most useful!
I definitely needed this.
424242 and 333333.
I sense some Illuminati and explanation of life here
Chelsie And
666667 and 1090909
Chelsie and illuminati sitting in a tree K I S S I N G
0 vids and 80 subs on ur channel? How?
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
Now 777-666=111
Today i met number 6.900e111
69, 777, 666
2's complement, eh?
*YOU LOOK VERY NICE*
Am I doing this right?
+1
You should say "you look 2 nice"
I liked this comment, then unliked it so the Like Counter could stay at 69.
+Amos Tan I liked it anyway
Robert Peacock Nooooooo
"Subtract by adding"
Process:
*subtract* 9 from each digit and 10 from the last
👁️👄👁️
OMG u life saver, and the reasoning behind it is so simple as well
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.
hello verified man who absolutely destroyed me when I tried to farm likes in your comments
i love you
how to subtract by adding? SUBTRACTING every single one of the numbers from 9 and then do the adding process. okay then...
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!
Marcos Landi this process still requires a form of subtracting so how do I make a binary
It's still subtraction, Thumbs down.
This is pog. Will definitely use this
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.
Or just use a calculator
***** There's a calculator in your computer.
FlyingKitty Your profile picture fits your comment perfectly. :3
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.
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.
FlyingKitty Your laptop doesn't have time to use a calculator when calculating addresses.
so to subtract by adding you need to subtract? okaaaaayyy
That's exactly what my brain is going through now.
I love this!
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!
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!
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.
Also, hope your computer career is taking off well :)
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.
He should've added, "How computers do it" in the title
Thanks man!
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
This is more complicated than just subtracting it.
Justin Baldwin Not really. If anything the borrowing mechanism of conventional subtraction is more complicated than "invert the digits and add one".
***** No
Rogue Qall "No."? Is that all? No explanation why you disagree?
***** 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.
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.
2+-1
1
Ishrak Khan lol
+Ishrak Khan* 0**
*D0 i reconize that name?
**0 = 1^
^as l0ng as y0u d0nt l00k t0 far 000
its 1 m8
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).
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
Exactly. Doing it by each digit is what makes it diferent than the conventional method.
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.
If you do it in binary, it's free to do so.
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'! 😄
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.
Amazing how quickly the views roll in. Great work MinutePhysics!
SonicRooncoPrime I know right.
Anyone else feel dumb after this?
Nope
+Calin H No
meh,nope
Yes and I am Asian 😮
+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
THANK YOU
wow! really cool video!
Lenght of the video: 3:14
Icy wat u did there.
I know how to subtract by adding! 8+-1=7. MAGIC
u 2's complement?
Wafflez the Great Its called joking you moronic kindergartner.
you can.. you add a negative number 2+ (still positive number) -2(negative number..)=0 so that means you add negative number
yes you can
Yep...
Of course it works for every positive number. It is basically sort of doing a two step for subtraction instead one. Also the rest of the information was very impressive. Thank you.
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. :)
i* not is
commoncore.mpg
amen.
+CatalystEXE Not common core. Computer architecture. As a guy who's majoring in CE, this video makes perfect sense.
Oshyrath thanks for playing
+Oshyrath ( ° □ °)-°•¤•°○☆ SHIPPIDY DIPPIDY DENCE! I FORCE YOU! TO NOT MAKE SENSE
Great for subtracting by adding... Except that it requires you to subtract numbers from 9 and 10...
Oscar Cooke-Abbott or maybe, you could do add (for example) 5 +9 = 14 and just take the 4 ( 9-5 = 4 ).
k2saf true enough
Oscar Cooke-Abbott or make a lookup table with 10 rows
k2saf nope...use a different number to check your hypothesis.
k2saf doesnt work with 7-6
Great shit!
This Guy Is Amazing And Genius!
looking for channnels like vsauce and minutephysics? any suggestions? :)
Tobias Seidel Check out Veritasium; amazing work
Tobias Seidel Veritasium!
Tobias Seidel Veritasium!
Tobias Seidel Smarter Every Day, Veritasium, Scishow, ViHart, Asapscience
Tobias Seidel veritasium
I learned this sometime ago when I was repairing mainframe computers. Those computers did everything by adding and bit shifts. Cool.
Mind. BLOWN!
2+(-1)=1 done.
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.
That was pretty cool.
MIND BLOWN !!!!!
Always took it as a given and never understood much how, but two's complement makes so much more sense now.
I am a freshman in high school and we are required to take a test called ECA to graduate (I passed+)and there are 3 sepret portions of this test on 1 you can not use a calculator and it had a question involving long subtraction and this actually helped thank you.
whooosh.... straight over my head.
Hey! This is actually what i've done my entire life, just simplified!!!
this video actually put me to sleep. it wasn't boring I was just really tired and I fell asleep.
SPOILER: the concepts explained matter to a computer scientist, not 8 years old below.
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...
***** Well... you were a smart kid. But... how does this relate to the mechanism proposed in the video? XD
palmomki not much, other than being a calculation trick.
***** careful young watson, you also need to divide your reminder by 2 :o)
***** remainder? he's not using exclusively integers, he won't ever get any remainder
***** what remainder ?
try punching the numbers into a calculator
this is freaking useful
Brilliant
Nobody in the comments section understood the video...
That's just your opinion, I understood it perfectly.
Fix: MOST people in the comments section didn't understand the video.
I understand it others don't xd
I, an intellectual, understood the video.
I love math! And computers!
I love this video!
Let me guess
Your asian
:)
Shangori its not just love, its love²
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
I cant find a name and you're racist! :D
Shangori I hate computers. And my day-to-day job is programming...
Ever since I first watched this video a few years ago, I usuallly use this trick when i do subtraction problems and stuff
In twos complement the most significant bit is changed to negative thus making the value that represented the bit to change to negative as a result the bits are subtracted from 1 i.e all 1s changed to 0 and vice versa.
What if I don't know addition?
Kim Jong-Un then use rocks.
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.
Subtract 9 from every digit and subtract the numbers. You should get the correct result except the first digit.
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!!
Aditya Khanna Actually, 424242 Dec = 1100111100100110010 Bin.
101010 Bin = 82 Dec.
I was talking about... 42 Dec = 101010 Bin
Like 424242 has alternating decimal digits
. 42 ( 101010) has alternating binary digits
Aditya Khanna Sorry, when I did Bin→Dec on 101010 I accidentally did _2+2^3+2^6_ and got 82 instead.
JNCressey I understand it happens, man! :) Chillax!
Forty-twooo... ;D
dude your the best nobdy appreciate you but i do thanks for teaching me i will use this for my math problems (seriously)
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.
Yep I saw this and immediately resized it was 2's compliment for base 10 :p
Cool Numberphile video, too bad it's on the wrong channel D:
georgyorgy2 dont be a fucken jew.
***** Ok, Kenny.
Ry P shots fired
Cat the Turtle
I did this as a kid, my teachers put the kaibach on that one...thank you for reminding me how it works.
Holy chitt! Dis actually works.
At first when i saw the title i was like you just add a negative number? but then i get this which is way more awesome haha
8+(-6)= 2
My maths teacher has turned our way of thinking upside down, she wants us to see subtraction as adding.
complements are nice :D
this guy is genious
999 gajillion 999 bajillion 999 XD
I'm just going to subtract...
ima watch this once a day to remember it
Finally. Something i can teach my teacher with
actually had to do subtraction with 9-# and 10-# to get the full answer, you can bypass this fact by inverting the number and adding one to the end so..
0=9
1=8
2=7
3=6
4=5
so 1076 would be 8923 and then you would add one to that so 8924.