Тёмный

Redstone Binary Subtraction - LRR #5 

mattbatwings
Подписаться 221 тыс.
Просмотров 97 тыс.
50% 1

Опубликовано:

 

23 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 236   
@CraftyMasterman
@CraftyMasterman Год назад
lrr is such a force of nature, not even SICKNESS could stop HIM!!!
@darqed
@darqed Год назад
he actually just made a redstone machine that recorded and deepfaked this video
@ikhfarakmaltuvfx
@ikhfarakmaltuvfx Год назад
@@darqed can you shut up?!!? And ALSO THAT IS WRONG
@teamruddy611
@teamruddy611 Год назад
Um...Redstone machines can't replicate audio yet - try again when redstone computers are fully implemented.
@hoteny
@hoteny Год назад
yeah? OMW to grabbing rabbies (I will be a famous person and get money for acting as if I treated him)
@chieseledboockshelf
@chieseledboockshelf Год назад
I can stop him
@rodrigoqteixeira
@rodrigoqteixeira Год назад
GUYS WE FINALLY KNOW WHY INVERTING AND ADDING 1 WORKS!!! I'M SO HAPPY :)
@darqed
@darqed Год назад
Watch some Sebastian league and his how computers work series
@GospodKrompir
@GospodKrompir Год назад
yeah that was my first introduction to binary systems and boolean algebra@@darqed
@ok-y-pull-up
@ok-y-pull-up Год назад
Matt explains the most complex thing so well is not normal
@cmtg461
@cmtg461 Год назад
Your dad
@cursordgod2935
@cursordgod2935 Год назад
​@@cmtg461 🤔?
@IceMetalPunk
@IceMetalPunk Год назад
As a developer with a computer science degree, I of course knew about two's compliment; but I never stopped to wonder *why* the conversion algorithm of "invert + 1" works. When you showed the algebraic connection to modular arithmetic, my mind was blown. Thank you for the education! 🙂
@Gandhi_Physique
@Gandhi_Physique Год назад
I never thought about it, but as soon as he said people would wonder, I automatically assumed that N bits go up to a value of 2^N-1. Inverting means +1.
@billydrink
@billydrink Год назад
I don't even like minecraft. I'm a computer scientist and these videos are a really entertaining way of relearning what I already know in a new environment. Great work!
@alibrahym
@alibrahym Год назад
how to pay taxes?
@samuelhulme8347
@samuelhulme8347 Год назад
@@alibrahym it depends on your government. Please contact an appropriate agency of your government.
@alibrahym
@alibrahym Год назад
@@samuelhulme8347 How to date women?
@samuelhulme8347
@samuelhulme8347 Год назад
@@alibrahym please ask someone else. I do not know.
@alibrahym
@alibrahym Год назад
@@samuelhulme8347 what is the true religion?
@lewismassie
@lewismassie Год назад
12:40 You can also see how thinking about the last bit has a negative value shows the inversion by the series of numbers counting up from negative 8.
@arthur1112132
@arthur1112132 Год назад
I always liked this way of seeing two's complement because it's the one that makes the more sense to me. Since a single bit's value is exactly the sum of all previous bits + 1, making it negative forces the final value to fall in negative space (-1 being the smallest absolute value). This also automatically invert the order in which the absolute value increments/decrements which then creates the emergence of all the other advantages listed in the video :)
@Str4ky
@Str4ky Год назад
I learn more in 1 min 30s with this video than in 5 years of school with professors
@higgs7473
@higgs7473 Год назад
CS student here; great videos. It was by sheer chance I happened to watch one of these before my first class on low level computing, and now I always hear my professor talking about the things you do here. Really well done.
@bluelego4180
@bluelego4180 Год назад
Au-delà de l'aspect Minecraft, c'est même super bien expliqué sur l'aspect de l'informatique bien joué à toi et bisous de France
@Dimitri_gdr
@Dimitri_gdr Год назад
J'avoue il est trop fort
@Dimitri_gdr
@Dimitri_gdr Год назад
Le fait qu'il l'explique sur minecraft ça donne un aspect plus convivial aussi
@Dimitri_gdr
@Dimitri_gdr Год назад
@@pomelo9518 no I didn't know him What is the link between the fact that I'm french and him?
@bluelego4180
@bluelego4180 Год назад
@@pomelo9518 of course
@bluelego4180
@bluelego4180 Год назад
@@Dimitri_gdr il est français, même si son contenu est en anglais
@nickdraddy101
@nickdraddy101 2 месяца назад
I've been putting off learning redstone since i was a kid, this series is the only time it's ever made sense lmao. I got a better understanding of binary from this series than any of my classes in college.
@samuelbudzinak
@samuelbudzinak Год назад
Love that veritasium music when explaining using clock
@electronpie
@electronpie Год назад
And 3blue1brown's math animation library at that as well!
@UnPandaOrange
@UnPandaOrange Год назад
Great revision of my comp sci classes with a Minecraft aspect on top, love it!
@eliasthememelord
@eliasthememelord 10 месяцев назад
This video actually made me understand Why two’s complement exists and why it works! Thank you from a current computer science major
@capsey_
@capsey_ Год назад
It's kinda weird to me that you learned two's complement using modular arithmetic before learning the negating most significant bit trick. I learned it other way around and, honestly, your way is probably better, because knowing math behind why it works is better than just blindly use the trick.
@koyarnosredstone5783
@koyarnosredstone5783 Год назад
It's not really taught that way, true. I advocated for the modular arithmetic theory as its an easier model to imagine.
@treesmaofficial3873
@treesmaofficial3873 8 месяцев назад
this is the first time I'm actually enjoying math class thank you for these videos
@vieuxslave9077
@vieuxslave9077 14 дней назад
Learnt about Two’s complement in GCSE, they never explained why it worked or anything, love this video for that, I finally understand where it comes from! Thank you!
@soundest8768
@soundest8768 10 месяцев назад
This is the best explanation of 2’s Complement I’ve heard so far! Thank you!
@ArbitraryCodeExecution
@ArbitraryCodeExecution Год назад
oh I didnt know the trick to interpret two's complement numbers, that's great!
@Rexus2
@Rexus2 7 месяцев назад
This series is incredible! Recently decided I wanted to learn redstone in its entirely, and although this focuses more on redstone logic instead of the whackier items like pistons, skulk, and observers. I really feel like this is foundational knowledge that I'll be able to take advantage of in future projects and learnings. Absolutely amazing work, my man, thank you.
@AntxnBeats
@AntxnBeats 11 месяцев назад
Your actually making computer science even more fun and understanding. Thanks A LOT
@neondead2.0.15
@neondead2.0.15 Год назад
It's hard for me to process this, but it's good. Love that you show how it works on practice so it was A LOT easier to understand. Hope to see more of this.
@toblobs
@toblobs Год назад
Great vid as always, keep up the work Matt
@DarmiGames
@DarmiGames Год назад
This was much easier to understand, than I thought
@iaminfinityiq7182
@iaminfinityiq7182 2 месяца назад
I'm trying to create subtractor circuits in a logic gates IDE from 2 bits to 4 bits. You really are helping me out! Since this IDE does not support constant input (0, 1), I have to try and simplify as best as I can 😅. Thank you for helping me out, I really appreciate it.
@SunroseStudios
@SunroseStudios Год назад
we already knew about two's compliment, but hearing that it's based on modular arithmetic made us truly understand it for the first time!!
@pengilton
@pengilton Год назад
I would really love it if you would do one video for multiplication and one for division. I know that you already covered those two but it would perfectly fit into your new series of tutorials. I really love this series! I am a CS student and I have been following redstone stuff for ages now, so I do find it easy to follow the technical stuff but I am not good with compact designs hence I appreciate this channel so much! Maybe I should try build a redstone computer again when I got time. Thank you and keep going with your amazing work! :D
@nice3294
@nice3294 Год назад
I love the way you introduced two's complement
@couldntcareless7884
@couldntcareless7884 8 месяцев назад
a good way to think about two's complement is to consider the last bit to represent the negative of what it does for the regular binary. For example, with four bits 1011 would be -8 + 2 + 1 which is -5, and inverting and adding 1 gives 0101 which is 4 + 1 = 5. Edit: Oh, it's already in the video
@tonerrr4295
@tonerrr4295 Год назад
You are actually the best. These are so well explained, and amazingly made. Learning these concepts on fun and easy, keep it up!
@BenjaminBlodgettDev
@BenjaminBlodgettDev Год назад
I don't even know if this stuff is in my CS curriculum. I'm super grateful for these videos!
@giacomomosele2221
@giacomomosele2221 Год назад
The 3blue1brown music really made this feel so professional😂 Keep up the great work, you really are one of the best logical redstoners in the world
@swotiix3993
@swotiix3993 21 день назад
You explained the two's complement better than my teacher in one year...
@G973_
@G973_ Год назад
Ive been waiting for this one. Ive been trying to make a calculator on bedrock then noticed your binary episode, knew youd cover subtraction eventually
@zxccxz3795
@zxccxz3795 Год назад
👏👏👏 Я сделал механизм который может как складывать так и вычитать два отрицательных числа. Чтобы тебе сделать такой нужно: 1)к механизму сложения добавить еще один; 2)добавить инверсию к входу сигнала с двух сторон (у тебя в видео с одной стороны); 3)соединить инверсии с сумматором с помощью логического элемента "или"; 4)соединить инверсии логическим элементом "и"; 5)соединить этот логический элемент с вторым сумматором ко второй платформе. Если что-то не понятно спроси меня об этом.
@zxccxz3795
@zxccxz3795 Год назад
Если хочешь могу скинуть на почту, но только укажи на какую.
@gddotop2231
@gddotop2231 2 месяца назад
Ля, а просто xorы подключить нельзя?
@sleepingpanc
@sleepingpanc Год назад
OMG A NEW VID!!!!
@firstbytebr
@firstbytebr Год назад
wow, that's a lot simpler than I tought :)
@HugTheLlama
@HugTheLlama Месяц назад
This video was magical❤😂🎉 Edtit: 10:49 omfg I love that
@Merione
@Merione Год назад
Edit: Nevermind, I kept watching the video and I realized I wrote a stupid comment haha! I'm keeping it here for the engagement though! Great video!
@3xic317
@3xic317 Год назад
i'm glad you explained twos complement. i always thought of negative numbers in binary as the last place being negative. i.e: 4 bits would be -8,4,2,1
@Jmcgee1125
@Jmcgee1125 Год назад
I remember first learning this in a computer architecture class. The things you can do with 2's complement... it's awesome. Also, abusing that overflow to do a comparison is nice - literally just need to check one bit (though equality still requires more). Also props for not calling -7 + -7 = 2 an underflow. Still overflow 👍
@boomsandapples2640
@boomsandapples2640 Год назад
These videos are great, I am learning so much! Thank you for this awesome series!
@higuy3482
@higuy3482 Год назад
i learned more here than i did during math in school
@smamy8861
@smamy8861 Год назад
probably because they'd cover this in computer science and not math lol
@fadilamiruddin1198
@fadilamiruddin1198 11 месяцев назад
I’m using this video to study for my ece midterm
@bangfebri01
@bangfebri01 Год назад
Very good explanation and detail awesome matt, sorry I can't join patreon first because I don't have dollar bills introduce me from Indonesia 😊
@asherperttula
@asherperttula 8 месяцев назад
this is also a good series it helped me alot
@gamingwithapex6081
@gamingwithapex6081 7 месяцев назад
when making the toggleable adder/subtractor an easier way to do it is just have the toggle lever run power into the side of all the redstone torches making them toggle the inversion.
@gamerguy4551
@gamerguy4551 Месяц назад
i was confused but i was on the same server as mysticat and he helped alot
@nootaboot7042
@nootaboot7042 Год назад
gonna get back to building computers in minecraft thanks to this, thank you
@ohseungkwon3009
@ohseungkwon3009 Месяц назад
There is sign bit and bits for the number, and if both of sign bits are 1, which represent nagative, dont invert the numbers and normaly add and nagate the output.
@WesleyNatashaThompson
@WesleyNatashaThompson 5 месяцев назад
Best videos on RU-vid
@a_craftermc
@a_craftermc 2 месяца назад
When I was connecting the subtracter to my adder to would always not want to make the first two ones to a zero it took me around 30 minutes to figure out that I had the comparator was not in subtract mode for the first light. It was so annoying lol
@definitlyarealperson7041
@definitlyarealperson7041 Год назад
Finally another LRR episode!
@wdude9997
@wdude9997 Год назад
11:53 Nice pun
@Cas-Se78.97
@Cas-Se78.97 Год назад
8:55 Also, if you are more focused on the results than the math behind it, you can think of the +1 as avoiding having -0 and thus having to increment twice to get past 0 (-1 -> -0 -> +0 -> +1). It's not an actual proof, but I think it can be helpful to remember. (Edit: this also causes problems in 1's complement)
@samuelbudzinak
@samuelbudzinak Год назад
I remember making my first calculator in minecraft and copying circuit for comparison of A and B (If A>B, then result is +, if A=B then 0, and if A
@andrewporter1868
@andrewporter1868 Год назад
Additionally, it's worth pointing out some terminology here for values to make things clearer: in 13 \equiv 1 (mod 12), 1 is called the residue. The residue is the value that is the result of computing the remainder of a congruence, in this case the congruence 13 \equiv 1 (mod 12), per Wolfram MathWorld (amazing "encyclopedia"; go check it out!). Also don't worry about what \equiv here is. It's the name for the congruence symbol in LaTeX which lets you render mathematical notation so that it's neat and readable the same way we can text with a keyboard.
@AxlePlaysGames
@AxlePlaysGames Год назад
God I love negative binary numbers GCSE Computer Science taken a year early with little prior knowledge was hell when I got to Two’s complement
@BinaryCoderBiCo
@BinaryCoderBiCo 7 месяцев назад
The Veritasium music in the explanation at 4:31 lol
@goldminingzone5560
@goldminingzone5560 Год назад
nice
@Meowsciles
@Meowsciles Год назад
A good way to invert it is have a switch that you can turn on and off to do 1(invert) 0(normal) and connect it to an xor gate and if I have the switch on 1 and the input as 1 it will output 0 and if I input zero as the input then it will become 1 Here’s the truth table Input | Output 0 0| 0 1 0| 1 0 1| 1 1 1| 0 As you can see this is the exact truth table of an xor gate
@OscarBassett-om5un
@OscarBassett-om5un Месяц назад
Im a very novice redstoner and love following your awesome videos! I was wondering, at 2:07, couldn't you overcome the issue if you put the sign value (1 for negative and 0 for positive) at the end
@koyarnosredstone5783
@koyarnosredstone5783 Год назад
finally a 2s comp explanation i can live with xd
@DaRemson
@DaRemson 8 месяцев назад
I was powering thru untili hit this video.... This is the third day i' m stuck on this video. This was just a hard concept to comprehend, for now i know enough to move on i feel.
@ImranAli-wt1er
@ImranAli-wt1er Год назад
Oh finally he has recovered!❤
@Abdulkadir-yq2vm
@Abdulkadir-yq2vm Год назад
Finally a New awesome episode
@hiaaf6105
@hiaaf6105 22 дня назад
9:43 it's cool to think also that in 4 bits the leftest bit is equivalent to -8 instead of 8 so 1011 = 1 * (-8) + 0 * 4 + 1 * 2 + 1 * 1 = -5 ok lol you talk about this later in the video
@FirefoxyLeGibus
@FirefoxyLeGibus Год назад
if you add a multiplier and a diviser you can make a full ALU
@Cat_Dev-YT
@Cat_Dev-YT Год назад
A = 1000 (8) B = 101 (5) Invert A (1000 => 0111) Add A and B (0111 + 101 = 1100) result = 1100 Invert result and finish (1000 - 101 = 0011)
@vstechiegamer5996lol
@vstechiegamer5996lol Год назад
What you built at 11:07 was a 1 bit 4-bit ALU
@BlueEgg25
@BlueEgg25 8 месяцев назад
I always liked redstone, the day I got my Xbox, I was like “I need a big door.” Now I don’t build doors and do this.
@Zephyruxs
@Zephyruxs Год назад
I like your funny words magic man
@giulio4217
@giulio4217 Год назад
4:29 Veritasium vibes right here
@dark_elf_wizard
@dark_elf_wizard Год назад
this is very interesting.
@LordDecapo
@LordDecapo Год назад
*goes to make popcorn to watch with*
@koushikdas925
@koushikdas925 Год назад
Binary subtraction in just 2 adic addition . Veritasium made a video on it.
@fireisplays6074
@fireisplays6074 Год назад
i love you matbat
@dinoeebastian
@dinoeebastian 8 месяцев назад
So my dad builds parts for rockets, and he couldn't comprehend why you add one when negating a binary number, I thought that was hilarious
@slyrek9331
@slyrek9331 Год назад
i learned alot, but i have a question because i'm from spain and don't understand english so well. What X means? (in the explanation part). And another thing that i wanted to ask is, how do you aply the formula for detecting the overflow?
@gabrielbelisle8634
@gabrielbelisle8634 Год назад
Love this video 🙌🏻🙌🏻🙌🏻
@excancerpoik
@excancerpoik 10 месяцев назад
its interesting that when doing the example -7-7 in binary the anwser is +2 which added to the opposite of the real anwser is 16 this also works with numbers i think 1010=-6 1000=-8 =0010=2 in decimal -6-8 would be -14 so it always adds up to 16 which is cool i guess or maybe im just an idiot i paused to write this and idk if he talks about it after its just an intresting thought
@forbiddenbox
@forbiddenbox Год назад
Finally!!
@knitnatsnokprogramming
@knitnatsnokprogramming Год назад
Is that the way computers do Addition and Subtraction?
@samuelhulme8347
@samuelhulme8347 Год назад
It’s the most common way
@FelanLP
@FelanLP Год назад
Positive zero and negative zero matters if you work with decimal points. But if it is just zero, it's the same.
@jenniferkemp2337
@jenniferkemp2337 5 месяцев назад
"S.M." is also called two's complement.
@jenniferkemp2337
@jenniferkemp2337 5 месяцев назад
whoops!
@BGOPC
@BGOPC Год назад
Finally, Oh also you were sick last week, you ok?
@fireisplays6074
@fireisplays6074 Год назад
YESSIRR
@4deemi
@4deemi Год назад
dude, hearing the veritassium music made me feel like i was learning faster.
@srather
@srather Год назад
Will you be covering serial circuits?
@giovannicorso7583
@giovannicorso7583 Год назад
matt putting Vsauce music in his video 👌
@whtiequillBj
@whtiequillBj Год назад
have you looked into the recent Posit: A Potential Replacement for IEEE 754?
@akinne_
@akinne_ Год назад
I love this
@luc8043
@luc8043 Год назад
Use do to all of this in little bug planet lol it's cool seeing it in Minecraft
@shadowchasernql
@shadowchasernql Год назад
Now I understand why you always put a SEC (set carry) instruction before a SBC (subtract w/ carry) instruction. Doesn't have anything to do with redstone but it's educational nonetheless.
@wkj
@wkj Год назад
Cool
@Tomekurens
@Tomekurens 2 месяца назад
Is it possible to make a binary counter but instead of adding you substract?
@mihaleben6051
@mihaleben6051 3 месяца назад
Oh my god im also learning math
@Saceonoepz
@Saceonoepz Год назад
Hi! Do you have a degree in computer engineering or in computer science? Because by looking at your insane builds it looks like that you have a lot of knowledge about computers
@KrishnaKumari-g7r
@KrishnaKumari-g7r Месяц назад
Umm I made this circuit called half subtractive and what it does is subtract two one-bit numbers It is rlly similar to a half adder but I added a not gate to plug B in
@CybernetonPL
@CybernetonPL Год назад
Nayse
@notquiteaspect
@notquiteaspect Год назад
Yay
Далее
Combinational Redstone Devices - LRR #6
16:40
Просмотров 107 тыс.
The Fascinating Math behind Piston Extenders #SoME3
20:08
🎙ПОЮ для ТЕБЯ ВЖИВУЮ!🍁
3:12:31
Просмотров 445 тыс.
4 YEAR SIBLING DIFFERENCE! 😭 #shorts
00:11
Просмотров 10 млн
ТАЙНА ТРАВЫ #shorts
00:22
Просмотров 691 тыс.
Wait for winner 🏆 😂 #shorts
00:42
Просмотров 4,8 млн
Pulses, Clocks, Latches & Flip-flops - LRR #7
13:45
Просмотров 87 тыс.
Why I'll Never Use Copper Bulbs
16:14
Просмотров 304 тыс.
I Made RGB Tetris with just Redstone!
20:36
Просмотров 179 тыс.
Why Aren’t Games Full Of Squishy Things?
11:56
Просмотров 116 тыс.
Breaking Minecraft's Longest Redstone Record
12:27
Просмотров 720 тыс.
This Video Took 10 Years To Make
8:22
Просмотров 1 млн
Building your INSANE Redstone ideas!
16:05
Просмотров 399 тыс.
We Built the Internet in Minecraft
25:18
Просмотров 2,9 млн
I Broke A Minecraft Record With The Copper Bulb
12:46
Просмотров 696 тыс.
🎙ПОЮ для ТЕБЯ ВЖИВУЮ!🍁
3:12:31
Просмотров 445 тыс.