I Made The World's FANCIEST Redstone Calculator!

  Рет қаралды 106,561

mattbatwings

mattbatwings

Күн бұрын

Пікірлер: 807
@mattbatwings
@mattbatwings Ай бұрын
SIGN UP FOR THE RECESS WAITLIST HERE!!! recess.gg/mattbatwings And join the Redstone at Recess discord!! discord.gg/X9CXVAqZAG Questions? Ask in reply to this message, or ask in the discord!
@kaiperdaens7670
@kaiperdaens7670 Ай бұрын
Could you maybe make a video that shows you building something, but the whole process and not necessarily with commentary.
@Gaming.documentaries
@Gaming.documentaries Ай бұрын
Maybe you could make a second channel with the entire building process
@kaiperdaens7670
@kaiperdaens7670 Ай бұрын
How does postfix know if 123+ means 12 + 3 or 1 + 23?
@ProfessorRex824
@ProfessorRex824 Ай бұрын
What happens in cases of singularities?
@pythonpal-z3g
@pythonpal-z3g Ай бұрын
the thing is, people all dont have access to money, is it free?
@Ierzi
@Ierzi Ай бұрын
GUYS THE VIDEO ISNT SPONSORED BY BRILLIANT
@kaliss6110
@kaliss6110 Ай бұрын
we fr got a mattbatwings video not sponsored by brilliant before gta 6
@mikaelfoster9726
@mikaelfoster9726 Ай бұрын
Extra likes for the man he loves us
@ELITE-CHIEF-DRILL-MAN-ko3yp
@ELITE-CHIEF-DRILL-MAN-ko3yp Ай бұрын
HOW
@VirnS_U
@VirnS_U Ай бұрын
Oh my gosh! 🤯
@NK-61
@NK-61 Ай бұрын
🤯
@darske1
@darske1 Ай бұрын
I'm a mechatronics engineer and a senior software developer. I have to say that I'm amazed with all your dedication and creativity, mixing all the things I love in your videos. Keep it up man!
@pilotharibo
@pilotharibo Ай бұрын
Blue comment on youtube?
@icewizard7619
@icewizard7619 Ай бұрын
Now for the Ultimate Challenge: Add Sqrt, Exponents Add Functions like sin, cos and tan Add Imaginary Numbers (-> Square Root of negative Numbers puts imaginary number) Add a nice Display to show Exponents, like graphically how you would write it, with the exponent on top of the Number. Good Luck! :) (Your work is absolutely amazing and I really appreciate it! I know some of these Ideas are very hard to impossible to build. Hopefully you always stay such a great KZbinr and Redstoner! :D)
@elen1ap
@elen1ap Ай бұрын
I guess that what you described is Turing Complete. We just have to wait for the end of let's build a Redstone computer.(Oh my god 36 minutes ago)
@srengp3805
@srengp3805 Ай бұрын
It should also include constants like pi and e
@icewizard7619
@icewizard7619 Ай бұрын
@@srengp3805 Yes, in addition that would be cool too
@icewizard7619
@icewizard7619 Ай бұрын
@@elen1ap Turing complete requires way less than that, theoretically a ALU, Conditional Branches and Registers already is Turing Complete
@BrankoVT
@BrankoVT Ай бұрын
I don't know if this already has it, but protection against invalid equations would be cool, as well as a backspace button.
@GameJam230
@GameJam230 Ай бұрын
What you could also do if you wanted to have a history of old inputs is have the display be multi-rowed, but only the bottom row gets input to by the controls. Then, whenever you hit enter, it just passes the line to the row above it with some sort of 2D shift register, one for shifting the characters to the left, another for shifting everything up, making it look like a real multi-line calculator
@skmgeek
@skmgeek Ай бұрын
this would be really cool!
@speedycube64
@speedycube64 Ай бұрын
Man, I got excited for complex exponentials, but still, amazing build. I once had a programming assignment to convert expressions to postfix notation, and now I finally know why that's useful, so that's cool.
@everythingisscience658
@everythingisscience658 Ай бұрын
I feel like I just got clickbaited. There was a freaking exponential in the thumbnail. Not only that it was represented as a superscript rather than just ^. Imagine how cool that would be in redstone
@Pabs1234
@Pabs1234 Ай бұрын
its just trig, the exponent is i
@aa-rv5wz
@aa-rv5wz Ай бұрын
yeah this is genuinely lame, postfix notation is first year uni stuff, shit thumbnail
@PFnove
@PFnove Ай бұрын
You can write a program yourself that handles user input and rendering and all the calculations and run it on any redstone computer
@ethanchristensen7388
@ethanchristensen7388 Ай бұрын
I was pretty disappointed with this, too. The end result was still impressive, but I feel lied to.
@Guy_Thats_A_Guy
@Guy_Thats_A_Guy Ай бұрын
Yeah you may be right, but when was the last time you made something on the skill of what Matt makes? If it’s fairly recent, then why not just make it yourself instead of complaining about a KZbin video showcasing something cool?
@pixelgoose98
@pixelgoose98 Ай бұрын
part 2 idea!: ADD SIN, COS, TAN, ^ , and if possible, variables and also add pi and e etc
@0kr4m
@0kr4m Ай бұрын
nooo not sin cos tan 😢
@LevelUpGA
@LevelUpGA Ай бұрын
​@@0kr4m more like df(x)/dx 😁
@lilcocoabean25
@lilcocoabean25 Ай бұрын
sin cos and tan would be WAY too hard ngl, vars should be easy tho
@Dummy42329
@Dummy42329 Ай бұрын
even better, he should add the constants e, i and pi with exponentiation so that the thumbnail isn't clickbait
@Kilming
@Kilming Ай бұрын
​@@Activation123I mean, it shouldn't be hard, it is just division
@fantastic-b2m
@fantastic-b2m Ай бұрын
i’m currently studying algorithms using c++, and you just taught me two algorithms in a video, about the postfix thing, thank you and i think coding in redstone has probably the same difficulty as assembly, it’s a fantastic work and i appreciate it!
@hyper_lynx
@hyper_lynx Ай бұрын
It's amazing that this calculator is more competent than many old plastic desk calculators were. Having the full expression on screen at once is cool. Even old HP calculators just expect the user to learn postfix notation (though they make up for that by having a ton of functionality)
@VoopVomm
@VoopVomm Ай бұрын
You’ve inspired me to learn so much more about computing and helped motivate me to major in computer engineering & programming!! You’re great keep up the amazing work!!
@unflexian
@unflexian Ай бұрын
❤️
@fullfungo
@fullfungo Ай бұрын
17:25 your calculator displayed 1609.856 - 125 = 1484.855 You can see it losing decimal precision. I would suggest using BCD (binary-coded decimal) arithmetic for your next version. It has a smaller precision loss compared to simple binary. And it’s also what almost all modern calculators use anyway. For example, 1/5 is “0.2”. In binary, it’s 0.001100110011… which will become smaller if you ever have to store it up to some finite place. But in BCD it’s just [0000].[0010] which is already finite just like regular decimal.
@simonwillover4175
@simonwillover4175 Ай бұрын
well, it's only storing 16 bits, so that will happen; it might also not be 100% accurate due to the way everything is implemented
@REAL_TEst
@REAL_TEst Ай бұрын
Part 2: Scientific calculator in Minecraft
@eneaganh6319
@eneaganh6319 Ай бұрын
He already did a graphic one
@TypekMD
@TypekMD Ай бұрын
_part 3: _*_gameboi w/ calculator i n c l u d e d_*
@chairmanmeow9110
@chairmanmeow9110 Ай бұрын
This is, literally, the first time I've ever heard of writing math in postfix notation. That whole part of the video blew my mind...
@kngod5337
@kngod5337 Ай бұрын
On the minus sign topic. You say you use a binary minus and an unary minus but from my knowledge it should be possible to only use the unary to negate the next token and then add the previous instead of differentiating between the operations. In the end substraction is only adition by a negative number
@mattbatwings
@mattbatwings Ай бұрын
Ah true, didn't think of that! Hardware wise I think it would end up being about the same - essentially the negator would be moved from evaluation to tokenization
@AlphaFX-kv4ud
@AlphaFX-kv4ud Ай бұрын
​@@mattbatwings I'm glad you at least didn't do what my real graphing calculator does and make the user type in a different button for unary and binary subtraction
@CheeseFilms
@CheeseFilms Ай бұрын
​@@mattbatwingsHey, I want to clarify, in the video you said, if minus stands after digit, it's binary, if after parenthesis, it's unary. But, what if we type a negative number first, something like -4+7?
@danyboumoujahed5004
@danyboumoujahed5004 Ай бұрын
​​​@@CheeseFilms that's still unary, an easy way to think of it is while binary "-" indicates that you are subtracting two numbers, unary just indicates that we are taking the negative of a number, which is what the - in "-4" is doing its saying that the number "4" is negative, same thing when the minus comes after a parenthesis
@CheeseFilms
@CheeseFilms Ай бұрын
@@danyboumoujahed5004 yeah, thanks, but does he implemented it? In the video he tested just these 2, and I want to know if it is working
@SF124-was-a-taken-username
@SF124-was-a-taken-username Ай бұрын
9:05 okay, can we just talk about how the first thing in his search suggestions is "how to vote"?
@MONOPOLY-RAGER
@MONOPOLY-RAGER Ай бұрын
I thought I saw that. I wasn't sure I saw it right.
@WildScaryFox
@WildScaryFox Ай бұрын
The output cleaning part sounds a lot like significant figures
@UODZU-P
@UODZU-P Ай бұрын
you would be correct
@wueffiYT
@wueffiYT Ай бұрын
Hi foxy
@artefox0
@artefox0 Ай бұрын
@@wueffiYT hi waflle
@WildScaryFox
@WildScaryFox Ай бұрын
@@wueffiYT hi waffle
@kaloncpu57
@kaloncpu57 Ай бұрын
Insanely cool step up for redstone calculators, and a redstone school is such a great idea. Banger video
@eagle32349
@eagle32349 Ай бұрын
You know, it would've been easier just to make number after a minus straight up negative (two's complement if you will) then just using regular addition. I also really liked the base 2 multiplication trick of just separating a multiplication into powers of two, then bit shifting, and finally adding back together, would've been cool to see a two way system for both multiplication and division, since all that's necessary for the entire calculator be this + two adders.
@angeldude101
@angeldude101 Ай бұрын
This trick predates binary computers and even binary positional notation itself by _thousands of years,_ actually being considered easier than multiplying decimal numbers even for humans. It's often call "Russian Peasant Multiplication", though it seems to have existed even in ancient Egypt. Yes; people were doing binary long multiplication before they were doing _binary._
@YoshisaurUnderscore
@YoshisaurUnderscore Ай бұрын
Woah, this is wild!! I'm actually so impressed. I'm wrapping up my undergrad electrical engineering degree this year, and it's so cool to see all this stuff I've learned in my classes used in a project like this. The fact that I mostly understood it really gives me confidence. Thanks for putting so much effort into these videos!
@Ngiyaaaw
@Ngiyaaaw Ай бұрын
The way the number moves from right to left at 17:19 is so satisfying.
@85dot6
@85dot6 Ай бұрын
very nice explanation on tokenization/ lexing
@PortRhouse
@PortRhouse Ай бұрын
This is damn cool. I've seen some other really incredible redstone calculator showcases (namely your very own incredible graphing calculator), but I like how this one distills the complex problem of evaluating an expression into it's fundamental steps, then concisely explains how to solve each of those steps from a redstone/ CS perspective and brings it all together in a complete package. I really feel like I understand what I am looking at with this build and it doesn't just seem like an impressive mess of wires.
@notgate2624
@notgate2624 28 күн бұрын
Implementing algorithms with redstone is so impressive to me. Incredible work as always! I love the teaching resources you're creating too.
@BlockExplorationVideos
@BlockExplorationVideos Ай бұрын
You have blown me away once again with your amazing Redstone skills! I'm only able to explain what these individual blocks do, but people like you take the blocks and make them more than the sum of their parts. My hat goes off to you, sir.
@DivorcedGooseRat
@DivorcedGooseRat Ай бұрын
i long for the day where someone makes a redstone computer powerful enough to run a real world operating system
@shreyjain3197
@shreyjain3197 Ай бұрын
i learnt infix, prefix and postfix expressions in my CS class in 12th grade really interesting to see a practical application of it
@sethklaassen2532
@sethklaassen2532 Ай бұрын
How does this calculator handle dividing by zero?
@LevelUpGA
@LevelUpGA Ай бұрын
@@sethklaassen2532 definitely with TNTs 🤣💥
@Brunon-bj1hx
@Brunon-bj1hx Ай бұрын
2:0=... We found a problem with your computer, Shutting down
@TheFakeXdfishy
@TheFakeXdfishy Ай бұрын
It implodes
@lucajfelici
@lucajfelici Ай бұрын
Inf
@SimplexonYt
@SimplexonYt Ай бұрын
it probably just outputs all ones
@goitwe8564
@goitwe8564 Ай бұрын
dude, you managed to describe postfix vs infix in like 30 seconds with more clarity than my 25 minute class did. MASSIVE props!
@redtaileddolphin1875
@redtaileddolphin1875 Ай бұрын
lol fuck I missed the thumbnail mistake now it’s already fixed It said e*i^pi + 1 = 0 What’s correct and now there is e^i*pi + 1 = 0. The i was the same size as the e, when it should instead be same size as the pi
@teggolT
@teggolT Ай бұрын
**technically**, it's e^(i*π) 🤓
@unflexian
@unflexian Ай бұрын
hmm yes i love e^(iπ²/2+1)+1
@Deficard
@Deficard Ай бұрын
that's some great progress! it feels better than any other redstone calculator ever. your breakthrough, i can sense that others might build complex calculator with just redstone too. there's just 1 unrelated problem i see: point digits precision. currently, this can display up to 3 digits of fraction, then it's gone. like "0.142". it's not a problem if you didn't want more precision and didn't want to see what the next digit of places is. here's the example where it outputs the same value. 1/999=" 0.001", 1/1000="0.001". and then after 1000 it either just goes to 0. but for how much it took, i can't complain too much...
@JonDaFun
@JonDaFun Ай бұрын
Oh snap man! This is like the project I’ve been casually working on for a while except you did it I way better! Props to you!
@matthewmanzanares6798
@matthewmanzanares6798 27 күн бұрын
it's incredible how you turn computer algorithms in to redstone circuit. and every project is a new feat!
@JeremiahQuattrini
@JeremiahQuattrini Ай бұрын
Hello, I am a guy who really loves your videos and I have an idea for you. You don't have to make it if you don't want to but you can. You should make a calculator that can talk to you or do simple tasks for you. I think it is a really cool idea but it would be very difficult to make and isn't really logical redstone.
@eikebehrmann3493
@eikebehrmann3493 Ай бұрын
Fun fact: Postfix is also called Reverse Polish Notation, and was used in older calculators. To save processing power, you had to write in RPN
@PaulFisher
@PaulFisher Ай бұрын
HP calculators and their descendants famously still allow the use of RPN. It doesn’t just save processing power; it can also be way faster and less error-prone to use, since you never have to type parens and the intermediate steps you’re doing are right there on the stack.
@apekz3592
@apekz3592 Ай бұрын
In theory you could make it interpret forth in mc with this calculator
@mikymuky1171
@mikymuky1171 Ай бұрын
I've been making calculators and other architectural stuff in redstone for years. yet, this is hands down the most invested I have been watching a technical redstone video yet xD
@jajceslav5665
@jajceslav5665 Ай бұрын
You make it look easy, parsing expressions can be very tricky even when just coding, great job!
@vinceguemat3751
@vinceguemat3751 Ай бұрын
while you have only digits and the 4 basique operations, you know that every result will be in Q (set of fraction) so you can store any number with 1 int and one signed int and then when display is needed, display the result with a decimal approximation
@masonbarber871
@masonbarber871 Ай бұрын
I think a history display of recent equations and results would be cool and relatively easy. The most important thing for doing more advanced math would be variables and an "answer" button like a TI84. The answer token lets you use the result of the last equation in the middle of a new one, allowing for stuff like "1/Ans".
@William-nw4sk
@William-nw4sk Ай бұрын
I love redstone, but more importantly, I love the computers and the workings behind them. You've earned a subscriber!
@trwn87
@trwn87 Ай бұрын
There is actually a different way to represent decimals: Internal fractions, which can optimise division and multiplication as well.
@uIz-slc
@uIz-slc 28 күн бұрын
I suggest to use glow ink sacs with black dye on the siigns for better visibility, or white dye on signs with darker wood.
@drevoksi
@drevoksi Ай бұрын
This was an amazing watch! Great job, I love how it all came together :D
@Mateo-zi8ub
@Mateo-zi8ub Ай бұрын
6:30 that is really, really useful.
@SuperTux20
@SuperTux20 Ай бұрын
PEMDAS: Please Excuse My Dope-Ass Swag
@shennyboi110
@shennyboi110 Ай бұрын
Insane project, beautifully explained in a way I could follow along every step!
@malmiteria
@malmiteria Ай бұрын
next step: variables, and extending the calculator so it can use those and not only numbers then: functions, strings, and other types like boolean, none, and then lists. variable scope can become non trivial if you allow nested function or closures (function that are returned by another and still need to acces their parent function scope) the call stack can be a pain with closures. if you're adding classes, or modules or namespaces, the dot operator becomes necessary too. I'm working on a language of my own, that's pretty cool to see you make one in minecraft You might wanna share your language in the ProgrammingLanguages subreddit, i'm sure they'd be thrilled to learn about it
@FlightlessAviator
@FlightlessAviator Ай бұрын
Just want to point out, at 8:20, There are a bajillion different versions of what you call PEMDAS. Here are some I've heard: - P arentheses - E xponents - M ultiplication & D ivision - A ddition & S ubtraction (This is the one I learnt) - B rackets - E xponents - D ivision & M ultiplication - A ddition & S ubtraction - B rackets - O rders - D ivision & M ultiplication - A ddition & S ubtraction (just found this one while looking up what the O is in BODMAS) - B rackets - I ndices - D ivision & M ultiplication - A ddition & S ubtraction
@friesofthefrench
@friesofthefrench Ай бұрын
I learned gems G- groupings E- exponential M-Multiplication/division S-Subtraction/addition
@FlightlessAviator
@FlightlessAviator Ай бұрын
@@friesofthefrench Interesting. I think it does make more sense to have multiplication/division and subtraction/addition have only 2 letters, as this is how they work in practice.
@J3ff_K1ng
@J3ff_K1ng Ай бұрын
I really really did not expect this video to get that interesting
@NfliixGod
@NfliixGod Ай бұрын
Actualy insane how you managed to pull this off
@thoracis
@thoracis Ай бұрын
I love seeing new vids of yours. I am not that great at math, I can barely make anything with redstone, but I do love Minecraft and learning. Wholesome, informative, and entertaining content as always ❤
@Goldev
@Goldev Ай бұрын
Matt : "and i think the calculator is finished!" Me : What's 9+10? the calculator : 21
@shinboonsangnoom8191
@shinboonsangnoom8191 Ай бұрын
Yeah it answers in base 10.
@bobbydhopp65
@bobbydhopp65 Ай бұрын
computation: base 12, answer: base 10
@lorenzomarconetto
@lorenzomarconetto Ай бұрын
Bro you are CRAZY you are the best
@bengoodwin2141
@bengoodwin2141 Ай бұрын
This is pretty great! I hope you, or someone, makes one with variables. Something like a simplified version of a Ti-84, maybe. Also, if you want mathematical accuracy, it might be good to keep track of ratios of whole numbers instead of using fixed or floating point, and... There's likely a way to handle irrational numbers as accurately as necessary for any given level of precision you design for as well, but I don't know how.
@IceMetalPunk
@IceMetalPunk Ай бұрын
I consider Shunting Yard one of the most important and useful algorithms in computer science, and I love how elegant it is. I've implemented it in software several times, typically when I'm creating custom programming languages for fun, but I don't think I've ever considered building redstone hardware to do it 😂 Well done! And now that you're an expert at building tokenizers... your next step is to build a full compiler for a redstone-based programming language 😁
@rodrigoqteixeira
@rodrigoqteixeira Ай бұрын
7:50 interesting. In the compiler I just made a - with nothing on the left, it implicitly adds a 0 token.
@TheRealH2OBlue
@TheRealH2OBlue Ай бұрын
Ok now this is just REALLY impressive. You are so insanely good at computer redstone than what I originally thought of you.
@rodrigoqteixeira
@rodrigoqteixeira Ай бұрын
0:45 decimal point? I feel like fixed point arithmetic is coming. Edit: 3:12 YEAAAAAAA I GUESSED IT!!!!
@Purple835
@Purple835 Ай бұрын
nice one
@mrBrod._.
@mrBrod._. Ай бұрын
😂
@mastfamastfa1256
@mastfamastfa1256 Ай бұрын
Congratulations bro This is amazing
@DolPuYOfficial
@DolPuYOfficial Ай бұрын
"Dude whats 6 x 2?" "Wait lemme launch Minecraft"
@iaminfinityiq7182
@iaminfinityiq7182 Ай бұрын
This is exactly what I need! I've been struggling to make an evaluator that uses PEMDAS!
@oglothenerd
@oglothenerd Ай бұрын
You had to implement a parser in redstone. I salute you!
@patrlim
@patrlim Ай бұрын
honestly, i dont care about the showcase, I come for the problem solving and engineering. great work as always.
@shauas4224
@shauas4224 Ай бұрын
You are doing so much for the redstone community its insane
@Brunon-bj1hx
@Brunon-bj1hx Ай бұрын
I understand that a lot of effot anstuff goes to these recess but 20$/week is a lot, that's like 100zł, there is no way i coud ever possibly afford that
@emerald5567
@emerald5567 Ай бұрын
I understand people need bread, but like 40 bucks for a beginners course sounds a bit expensive ngl. most people probably couldn't fork out that much money per week honestly
@emerald5567
@emerald5567 Ай бұрын
also you'd need to consider that the demographic of the course would most likely be teenagers to young adults which means they'd probably have little to no money to go to this
@BoredEditor4k
@BoredEditor4k 3 күн бұрын
40 bucks gets you a solid understanding of low level memory management a solid understanding of assembly and much more is a steal for me
@emerald5567
@emerald5567 3 күн бұрын
@BoredEditor4k iirc they said 40$ a week. my family is upper middle class and would say no rather instantly, don't know how you would comfortably pay for that. if it was 40$ a month, then I wouldn't have commented anything
@BoredEditor4k
@BoredEditor4k 3 күн бұрын
@@emerald5567 I'll gladly take away 40$ to get teached the concept of assembly
@emerald5567
@emerald5567 3 күн бұрын
@@BoredEditor4k you do you, I'd rather not pay for the equivalent of a steam game every week.
@willnoyes7019
@willnoyes7019 Ай бұрын
This looks amazing super well-made
@unflexian
@unflexian Ай бұрын
10:40 there are tons of esoteric programming languages where arithmetic works like this, the general term is stack based but my favorite is brainflak
@MadocComadrin
@MadocComadrin Ай бұрын
Stack-based languages often use pre/postfix for arithmetic, but you can have pre/postfix arithmetic outside of stack-based langauages, e.g. the Lisp family. There's also non-esoteric stack-based languages such as Forth.
@鄿
@鄿 Ай бұрын
Okay, now make every function from windows calculator: dms, deg, floor, round, ceil, sin, cos, tan, cot, sec, csc, inverse trigs, hyperbolic trigs, all trigs but in radians, grads, mod, Gamma function (hidden under ! button), sqrt, exp, … Edited: Ultimate challenge: make Wolphram Alpha.
@thisisricki5599
@thisisricki5599 Ай бұрын
*Wolfram Not just windows calculator, also other basic scientific calculators
@Forza_Horizon_5_cars
@Forza_Horizon_5_cars Ай бұрын
nice, today i made a ROM system that has circles stored in it, took inspiration from your MS paint vid mattbatwings
@louisrobitaille5810
@louisrobitaille5810 Ай бұрын
8:33 Fun fact: literally anywhere in academia above high school, the PEMDAS order is slightly modified. For example, the notorious 6/2(1+2) has two *CORRECT* answers depending on which version of PEMDAS you follow. The first one, taught in high school and shown in this video would give you this: 6/2(1+2) = 6/2(3) = 3(3) = 9. The second one treats parentheses a little differently. If they're directly next to a number (or variable), that multiplication takes priority, which would give you this: 6/2(1+2) = 6/2(3) = 6/6 = 1. This difference comes from the origin of the division symbol (the 2 dots and a line in the middle). It's actually a fraction with dots replacing the numerator and denominator. If you were to write it down, 6/2(1+3) would be 6 in the numerator position and the rest would go below in the denominator position. If you want to end a fraction in any scientific calculator, you need to add an operator or a space to tell it that the fraction is done. If you wanted to get 9 no matter what PEMDAS you use, you'd have to write it as 6/2*(1+2), 6/2 (1+2), or even better 6/2 * (1+2). And if you really want to avoid any confusion, spam the parentheses: (6/2)(1+2) to get 9 and 6/(2(1+2)) to get 1.
@mrBrod._.
@mrBrod._. Ай бұрын
Good to know!
@angeldude101
@angeldude101 Ай бұрын
From what it looked like, it didn't seem like this calculator implements implied multiplication, so this matter wouldn't really come up. Most programming languages don't support implied multiplication either, though it's actually possible to argue that implied multiplication acts more like a function call than an arithmetic operator, and function calls do generally bind more strongly than arithmetic operators.
@Garfield_Minecraft
@Garfield_Minecraft Ай бұрын
bro finally built the FPU
@ssbmfan4
@ssbmfan4 Ай бұрын
You can also incorporate juxtaposition to multiply if a number precedes an open parentheses. Most modern calculators actually use PEJMDAS instead of PEMDAS. I don't think it should be too hard to incorporate given what you already have, except that you already finished the rest of the build and it probably would have been easier earlier in the project. Unless of course you considered it and chose not to incorporate it, then disregard this comment lol
@William-nw4sk
@William-nw4sk Ай бұрын
Either way it goes, I'd love it if we could see you build a computer in real life! That would be awesome! Could probably be done with breadboards.
@Will_-it3mh
@Will_-it3mh Ай бұрын
man i struggled to do a "windows styled" calculator in a windows form enviroment in coding class. Very cool
@44Hd22
@44Hd22 Ай бұрын
16:59 I thought you were gonna rap to explain the calculator.
@TheAppleFreak
@TheAppleFreak Ай бұрын
I'm definitely going to need to take a look at the display you made! One of the projects I've done historically on the server I play on is a 24 char typewriter using 3x5 characters, and while I think the individual display modules are about ideal, I'm really curious if you've done something to improve on my own take on the design. Seems there's some convergent ideas judging by what I've seen in the video thus far.
@Old_SDC
@Old_SDC Ай бұрын
This video is perfectly timed thank you!! I’m writing a calculator as a project in college and Shunting Yard was exactly what I needed 🫶
@undefined-none
@undefined-none Ай бұрын
What?! You have make a math expr interpreter in Minecraft, when I was still struggle to figure out how to build one in C, but this video help me a lot!
@Maxjoker98
@Maxjoker98 Ай бұрын
Very cool video as always! "postfix" notation is also sometimes called "reverse polish notation"(and some scientific calculators use it or can use it directly). All these parsers in Minecraft redstone projects lately got me thinking... How long until the first Minecraft CPU has it's own redstone-based assembler/compiler?
@samuelhulme8347
@samuelhulme8347 Ай бұрын
I think someone has nearly done this a long time ago but I don’t remember who. (Except the assembler weren’t in game, it was an external program which created a schematic for the ROM that gets pasted in to the world)
@Maxjoker98
@Maxjoker98 Ай бұрын
@@samuelhulme8347 Yes, people have built Minecraft CPUs with external assemblers/compilers - I'm actually nearly complete on mine. But I really want to see an *in-game* assembler/compiler, with no external tools needed! I wouldn't even mind if it uses command blocks, and more complicated parsers have been built in Minecraft before(e.g. SethBlings BASIC interpreter including lexer/parser/interpreter), although a "survival-friendly" version definitely could be build and would be cool!
@BetaTester704
@BetaTester704 Ай бұрын
Might be revolutionary for redstone computers going forward
@X.K-tuber
@X.K-tuber Ай бұрын
13:50 fun fact you only need one subtractor because -u# = 0-b# where # is the input
@rodrigoqteixeira
@rodrigoqteixeira Ай бұрын
FINALLY NEW VIDEO!!! nice, let's ser what calculator v3 does
@catman8791
@catman8791 Ай бұрын
Funny, where I'm from, we call PEMDAS "BODMAS" It means the same thing but it stands for "brackets, ordinals, division, multiplication, addition, subtraction"
@LissaThompson-s1i
@LissaThompson-s1i Ай бұрын
yo matt this is the coolest thing iv ever seen
@AdamKeemen
@AdamKeemen Ай бұрын
COOL CALCULATOR AND THIS VID IS AWSOME
@ianyourgod
@ianyourgod Ай бұрын
this is an interesting way of doing this. most approaches i know use recursion, but that’s not easily possible in redstone.
@pontu_com4586
@pontu_com4586 Ай бұрын
The man keeps going! Someday we'll see a minecraft, in 4k, in minecraft.
@johnroylapida1443
@johnroylapida1443 Ай бұрын
The negative sign and subtraction sign was a pain in the ass when I first learned and tried to code infix to postfix notation
@vibaj16
@vibaj16 Ай бұрын
same
@nanonaranca
@nanonaranca Ай бұрын
Sounds like music to my ears I literally just got home from a long day of band comp
@MaZe741
@MaZe741 Ай бұрын
10x = 8x + 2x is actually really smart, I didnt see that you could only use shifts for that
@Technowizard811
@Technowizard811 Ай бұрын
I go to college for electrical and computer engineering. This and the programable computer video taught me more in an hour or so than two professors could in an entire year. what the shit.
@RobRed1011
@RobRed1011 Ай бұрын
It Would Be Cool If you Made A Physics Screen Where you draw something and depending on how they look Specific physics will happen
@vinceguemat3751
@vinceguemat3751 Ай бұрын
postfix and prefix notation don't need parenthesis AT THE CONDITION that any operator have a fix number of argument, and it's wrong, for -, as you said it, it can be unary or binary -
@Dfnkeyyy
@Dfnkeyyy Ай бұрын
0:0 appearently to the calculator: 32767.999 thats the real output lol
@thevalarauka101
@thevalarauka101 Ай бұрын
I suppose the calculator should have had something to prevent zero division
@manidhingra5192
@manidhingra5192 Ай бұрын
well considering the fact that 32767 is the highest 14 bit binary number, and 9 is the largest decimal number, and it is in the decimal place, I think it's safe to say the calculator is trying to output infinity but doesn't have enough space to. would've be funny if matt added the tnt from his old calculator
@thevalarauka101
@thevalarauka101 Ай бұрын
@@manidhingra5192 largest 15-bit I believe (2^15-1), which makes the integer part probably a 16-bit signed integer
@manidhingra5192
@manidhingra5192 Ай бұрын
@@thevalarauka101 I looked through the world download and the output seemed to be 32 bit input and 32 bit output with the carry ignored, but if the highest number is 32767, it means the highest number is 14 1s, which would be a 15 bit signed integer, if it's got 3 decimal places it probably can't exceed 12 bits past the decimal point, so not sure what the other bits are doing, maybe you're right and it's just 16 bits and 16 decimal
@thevalarauka101
@thevalarauka101 Ай бұрын
@@manidhingra5192 16 bits decimal would give a minimum value of 1/65536, which is about 0.000015; even having 4 decimal places would appear fairly imprecise in places, so it kind of makes sense to show just 3
@darianfrank4443
@darianfrank4443 Ай бұрын
Really good work. Love yozr Videos. Keep it up
@SuperbMuffin
@SuperbMuffin Ай бұрын
holy, good job i LOVE your channel
@eeReal_Diamond
@eeReal_Diamond Ай бұрын
The redstone builds become so hard, that there is an actual class about redstone 💀
@teainnit27
@teainnit27 Ай бұрын
Nice, very impressive, now make it turing complete
@realmazurex
@realmazurex Ай бұрын
for the binary and unary issue, couldn't you just convert all subtractions to unary by placing a positive symbol beforehand and wrapping the number in parenthesis, it would probably save some space, not sure about complexity, but if I were to assume, it would also make it simpler, as you're only adding a symbol to the operation, rather than making a whole new separate token
I Made Pac-Man with just Redstone!
29:54
mattbatwings
Рет қаралды 549 М.
I Made RGB Tetris with just Redstone!
20:36
mattbatwings
Рет қаралды 189 М.
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 47 МЛН
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 157 МЛН
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 1,5 МЛН
The Fascinating Math behind Piston Extenders #SoME3
20:08
mattbatwings
Рет қаралды 728 М.
How are Redstone Computers even possible?
19:36
Ellie Rasmussen
Рет қаралды 336 М.
Can I Guess what's wrong with these Minecraft Images?
25:12
Havenhand
Рет қаралды 135 М.
What Minecraft Looks Like for a Mojang Dev
23:40
EightSidedSquare
Рет қаралды 1,3 МЛН
SM64’s Invisible Walls Explained Once and for All
3:45:25
pannenkoek2012
Рет қаралды 7 МЛН
Minecraft’s Most Famous Map is Being STOLEN… by Microsoft...
16:57
TheMisterEpic
Рет қаралды 1 МЛН
I Made 2048 with just Redstone!
23:01
mattbatwings
Рет қаралды 755 М.
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 47 МЛН