[00:01]
make a totally functioning scientific calculator using just two buttons. But first, I'm going to show you how you make one with four buttons. And yeah,
[00:13]
well, you'll see. Imagine you're in an exam with your scientific calculator exam with your scientific calculator like this. And horrors, you discover one of the buttons has broken. I know. Calm down, Brady.
[00:26]
>> That's like a nightmare I still have to this day. Uh-huh. Let's say you discover the the button two has broken. Oh no. What are you going to do in an emergency? What could you do? Well, if I desperately need a two, I suppose I
[00:42]
could do 1 + one and make myself a two. Yeah. And I guess I could do that with all the other numbers as well. If I needed a zero, I could do one minus one, make myself a zero. So, I guess I'd be okay. But what about if the division
[00:56]
button was broken? Scary stuff, right? And that's kind of like a fundamental operation in maths. Could I survive? I think I think I could survive because if I wanted to divide by a number, like dividing by five instead, I could just
[01:12]
dividing by five instead, I could just turn that into a multiplication by 1/5. actually have a reciprocal button here that will turn my five into 1/5. Or or I could use the power button. That would
[01:24]
do it because five to the power minus one is 1/5. So I guess I could use the power button as well. So yeah, I can turn divisions into multiplications. Phew. What about some of these higher functions? Could we survive without the
[01:38]
sign button? Could we survive without, I don't know, the log button? Could we survive without the power button? Here's the question. How many of these buttons can we get rid of? What's the fewest number of buttons that I actually need
[01:55]
on my scientific calculator? Now, this is the question that a Polish researcher Andre had decided to play around with. Now, this. So, when I say, "How many buttons do you need on your calculator?" I don't
[02:09]
mean the onoff button. Okay? >> You ruined my joke. >> That's That's a power button, isn't it? That's another word for power button. Uh, I don't mean the degrees switch button, switching from degrees and
[02:22]
radians. I don't mean the memory buttons. There are different ways that are going to be different consequences. If I get rid of one button, there will be consequences. That means, oh, I I can't get rid of another button. That's
[02:36]
can't get rid of another button. That's now more essential. So, how many buttons >> I'm with you. >> I'm with you. >> Okay. Andre uh has got this down to four
[02:48]
>> Okay. Andre uh has got this down to four buttons on your calculator. Let's do it. >> Here's my calculator. It still has a display and it's a normal display. You'll do regular numbers. Nothing weird about the display. One of the buttons is
[03:01]
going to be the number one. That's going to be useful. One of the buttons is going to be subtraction. One of the buttons is going to be the exponential function. And for people who need a reminder of what the exponential
[03:15]
function is. I want to take the exponential of a number there is a special number in maths called e which is 2.718 something something something. And the exponential function just takes powers of e. So if I want e^ squ or e
[03:31]
cubed or whatever. So exponential of x a number is e ^ x. Now the fourth button number is e ^ x. Now the fourth button is going to be log. the log button. And again, for people who don't know, the log function is just the inverse of the
[03:46]
log function is just the inverse of the exponential function. So if I do the log of an exponential of something, you'll get the original number back again. So it does undoes the exponential function. And that also works the other direction.
[03:59]
If I did the exponential of the log of x, you get the original number back again. So it just undoes the exponential function. You happy? But >> yeah. Yeah. So, let's talk about that's
[04:13]
all you need. How can it be possible? Let's uh let's have a look at some of the most important things that we need that's missing. We can make zero. 1 - 1. >> Good start. And in the same way, we can make all the negative numbers. Are you
[04:26]
happy that we could just keep subtracting one? We can change the sign of your number to get a positive number. What we're going to do is take uh zero, which we now have because we've made it. We can do a minus x if your number and
[04:40]
way of changing the sign. >> How would you make the number four? >> Okay, so let's try and make the number four. So I can go one minus one, right? Gives me zero. I can now subtract. I can just keep subtracting ones in fact. So I
[04:53]
just keep subtracting ones in fact. So I can do one minus one - one - one - one - >> So there's minus4. >> So I've got minus4. So you've made minus4. Excellent. So you can have that. And then you'll do 0 minus min -4 will
[05:09]
numbers. I've got all my positive numbers. I can change the sign if I ever need to. Great. So now let's talk look at some of the more fundamental things that we're missing. What about addition? Addition is missing. So if I want to add
[05:23]
two numbers together, let's have them x plus y. Well, I can have my x. I can plus y. Well, I can have my x. I can subtract minus y. So I can make minus y. I've got subtraction. Minus of a minus y gives me a plus y. I've got addition.
[05:37]
of button pressing, but okay. >> Yeah, they are going to involve a lot of button pressing. You wait. Multiplication. So, if I want to make a multiplication, we'll do the exponential of. So, there's a formula for that. Log
[05:51]
of. So, there's a formula for that. Log of x plus log of y. So, I know how to make additions. I've got my log function. And this is the formula that makes multiplication. This is how log tables used to work in the old days
[06:05]
before computers. You would have these books of log values of your numbers and you would look up the log value of two numbers. You would then add those two values together. You then go to another page in the book which would reverse
[06:19]
that the anti-log or the exponential and that would uh turn that addition into a multiplication. That's what logs do. So if I want to do I don't know 3 * 8 then
[06:31]
I can look up the log of three and I can look up the log of 8. Add those two of that which is the exponential function and that will give me 3 * 8 >> Yeah. >> Yes. So we've got addition. We had
[06:46]
addition. We've got multiplication. Division. Then that is the exponential Division. Then that is the exponential of log of x minus the log of y. So, it's the same sort of idea, but if I subtract my logs and then do the anti-log on
[07:00]
division of two numbers. >> I'm really curious about how you're square roots and things. But, >> okay. All right. Let's do it. Let's do powers next. So, y to the^ x. How am I going to do y to the^ x? Here's the
[07:16]
going to do y to the^ x? Here's the formula. Here's the exponential of x log formula. Here's the exponential of x log y. So log y if I add lots of copies of log y that is like that has the effect of multiplying y lots of times. So x
[07:34]
lots of log y and then do the anti-log on that will be the same as multiplying y lots of times which gives me y to the power x. That's where that comes from. So now we've got powers, we've got square roots cuz I can make a square
[07:47]
root is to the power of a half. I can make a half. I can do powers. I've got square roots, cube roots. I've got I've got the roots. So, now let's get into more of the higher functions now, right? The signs and the causes and things like
[08:00]
that. So, we're going to need I. I is the square root of minus one. Well, we've got minus one. We can make minus one. We can make square roots. We minus one. We can make square roots. We can make i. And and I do agree that this
[08:14]
means that your scientific calculator has to be able to deal with imaginary numbers and complex numbers. And in fact, I I think I'm confident saying that your scientific calculator can deal with that because this one here that I
[08:26]
bought for the purpose of this video is the cheapest scientific calculator I could find. And this one can do complex numbers. So, I'm happy to say that. I did want to bring my own scientific calculator to show you on this video,
[08:40]
but it's broken. Let's carry on. We can make i. That's one of the big maths constants as well. We can make e. E is not going to be difficult because that is going to be the exponential of one. We can do that very easily. But what
[08:55]
about pi? It is minus i log of minus one. You can get pi using i and log. Where does that come from? It has a a close relation which you might know. E to the
[09:11]
relation which you might know. E to the i + 1 = 0. You may have heard of that. >> All right. >> Doing it all. I'm starting to believe. Let's keep going. Let's keep going. Cause the cosine function. It's the
[09:26]
Cause the cosine function. It's the exponential of ix plus the exponential exponential of ix plus the exponential of minus ix / 2. Yeah, if I want to without doing the whole thing, uh I'll show you where that comes from. There's
[09:39]
there's quite another quite famous identity which is e to the ix is equal identity which is e to the ix is equal to cos x + i sin of x. So that's a famous identity and you can rearrange that quite easily to make this version
[09:53]
of cos in terms of the exponential function. So now that we've got cos, you can make the sine function, the tan function quite easy. The sine function, it's just the same wave but shifted along. So you can get from cos to s
[10:06]
quite easy. The tan function is just uh s divided by cos. So if you've got s, you've got cos, you've got tan, no problem. There are some other exotic functions which you might be familiar with, but you might not be called
[10:20]
hyperbolic cause and hyperbolic sign. Those all have formulas in terms of exponentials. Those are quite easy to define as well. The last missing piece is we need the inverse of the cost function. Uh that's an important
[10:35]
function. We can it's important that we can do the cause, but we also need to reverse the cause. So I'll show you how to do that. If I say y equals co of x, then I'm going to try and inverse that. I'm going to call the inverse arc co. So
[10:47]
I'm going to do arc co of y. And there is a formula for that as well which is is a formula for that as well which is this minus I log of y + i square<unk> 1
[11:00]
- y^ 2. There you go. So and I want to show you how you can get to that formula because if I let y equ= cos of x here then if I rearrange this formula I will get to this formula. So if I multiply by two, multiply by the exponential of
[11:16]
minus ix will start to turn it into a quadratic equation. Once you've got a see that if you solve the quadratic equation, you're going to get a square root coming out of it. So here's the twist, though. So Andre has decided to
[11:30]
go even further than that and has decided, can we make this an even simpler calculator by inventing a new button? a new mathematical function button. That means I could do the same job with fewer calculator buttons. And
[11:48]
he got this down to two buttons. A calculator with two buttons that can do everything your scientific calculator can do. I want to show you what it is. He invented a new function for this. First button is one. Second button is a
[12:03]
function that Andre's decided to call EML. You're gonna be so disappointed with its name, Brady. But I'll show you what the definition of EML is. EML of two numbers, X and Y. It is the exponential of X minus the log of Y.
[12:22]
exponential minus log. So it's got two inputs making one number, which you that. You know, Y to the power X. It's two numbers go in, one number comes out.
[12:34]
typically do? You put one in then hit the EML then hit the second one. the EML then hit the second one. >> Yeah. Yeah. Why not? Uh it is also one function. Even though it's been built out of three functions, it is one
[12:47]
function. Right. So these two numbers go in, hit the button, a number comes out. Does that sound fair? All right. This can do everything that the four button calculator can do. So he's combined those three mathematical functions we
[13:00]
had on the four button calculator, which is the minus, the exponential, and the log. But he's combined it into one button to show that this button can do everything. All we need to show is that it can do exponential, logs, and
[13:15]
subtraction. Because if I can do that, then I can do everything, right? >> So imagining some of the functions we do with our two button calculator are going of buttons. >> This is going to get crazy. You're going
[13:29]
to love this, Brad. So let's uh let's just show that this one button can give me exponential log and subtraction. I'm going to look at EML of x and one. And
[13:42]
we'll just go to the definition. There it is. So that's telling me to do the exponential of x minus the log of one. Log of one is zero. And so this is exponential of x. Great. That's one job done. The log is the hardest one. We'll
[13:55]
do the log. We're going to do the EML of one and the exponential which we've made. So that's allowed of the EML function of one and x. Okay, looks
[14:07]
horrible. It's going to shake out actually not as horrible as it looks. So let's just go to the definition. What that means is I've got the exponential of the first thing which is one minus the log of the second thing which is all
[14:21]
of this stuff. exponential of x and then eml of one and x. But the clever thing is the log and the exponentials cancel out with each other when they're next to each other like that. They're just going to cancel out. So this is exponential of
[14:35]
one minus this becomes the eml of 1 and x. Go to the definition again. Look at what that is. Exponential of one minus I'll put it in a bracket. What is the definition of that? It's exponential of 1 minus log of x. where we got
[14:50]
exponential cancelling out with exponential a minus of a minus will make a log of x. So a bit more of a journey but we can make the log function from the eml function. Finally subtraction and this one not as bad as the log email
[15:04]
of log of x which we can now make and exponential of y. And if we do that exponential of the first thing. So exponential of log of x minus the log of
[15:16]
exponential of y log of the second thing. Exponential and logs cancel themselves out. So when they're next to each other like that, they're going to each other like that, they're going to be x minus y. Uh so we can make
[15:28]
subtraction as well. And we already know if we've got exponential, if we've got do all your other mathematical functions. That is the simplest, most
[15:40]
of. >> I know. Isn't it great? You'll love >> I know. Isn't it great? You'll love this. So, it does get complicated. Um, for example, let me show you what something like 1 + 1 looks like with the
[15:53]
something like 1 + 1 looks like with the EML calculator. So, here is 1 + 1. >> So, what do you do? You do e. Okay. Right. >> Yes. It's a complicated formula. So starting here I think with the one and
[16:06]
the one we take an EML we've got got some we've got lots of nested EML functions and using that formula we can show with our calculator that 1 plus 1 equals two. That's good isn't it? That's
[16:19]
good to know. And you'll really like this. I want to show you how we make pi. this. I want to show you how we make pi. >> Oh yeah. Go on then. So, uh, here is the >> Oh yeah. Go on then. So, uh, here is the EML calculator calculating pi,
[16:33]
EML calculator calculating pi, which I love. I absolutely love this formula for pi. Really complicated, but about it. What we're trying to do here is break things down into their most
[16:47]
basic atoms. And that's something that mathematicians do. They try and break things down to their building blocks, their most basic atoms. And in this case, what we've done here is broken down the scientific calculator into its
[17:00]
down the scientific calculator into its most basic into two buttons only. And from that, you can build all of the functions. >> Next week, one button. >> One button. Surely that's just one plus
[17:13]
that's all the maths. That's all maths needs.
[17:25]
and launches a pulse. A little twink goes around here pulse. A little twink goes around here on the spiral of piano wire, steel wire.