Hello, in this video we are going to look at numbers and you know what we can do with them. So obviously we create a variable doesn't want to know you know what I'll call it. Num one equals two, for example. So that purpose, so you can convert them to different data types. We covered that in a separate video previously. And yes, we will looking at all the different types of conversion as well but you can just do the number size of from an integer to a long integer, integer to float, float integer, could convert to complex numbers, if you are, you know, a bit more savvy with mathematics, but there's also a bunch of built in mathematical functions as well and trigonometric functions and we're not going to cover everything is covering a few of them and apply them inside you know, check more and your leisure.
So what we're going to cover is called the exponential function. So it essentially is the exponential function. So if we get if we do and if we get XP which in exponential we specified by default we get we run this. So, and that is not what we wanted at all. So, there we are locals wrong. We need to actually import the module.
So, Python you can call module So, so far we've just been using default from salty import math. And now if we run it still get in Part of the math module may never mistake, but you know what isn't to say so good so you can see what not to do. And there we go, so we get 148. So it's got the exponential of 148. So this essentially just returned the exponential of a raise to this power. And now let's go some more mathematical functions.
You can do log, you can do power, which is like, you know, pi, you can do square root, which is just square root of five. In math dot nation, don't make that mistake again. So for the square root of five, see what we get. And there we go, we get the square root value of 501. whatever value we specify. So let's know customer the trigonometric identities and functions within Python are valuable to us. So we can have one cosine for example, you know cosine A time, you know, sine all of those regular once again, you can have degrees to decimal decimal degrees, then I'm gonna put a link in the description so you can go through them, and I'm just gonna put cosine sine 90 because on a sine 90 degrees will return a value of one and but I believe this is in radians.
So before we do this, let me just also cover some mathematical constants. The constant is built in. If you know more about it, it's right that pi is also valuable. So so i sine pi divided by two so half pipe is equivalent 90 degrees and radians. Again, this is normal. Mathematics lessons and more just showing you some of the functions available.
We get no problem on the sign is not defined. So seven look at the format. Make sure everything is correct. Made the problem again didn't do dot did not do the act of the now. Let's see what we get. Do did it also pause I have not forgot this as well.
Please go make sure you map that wherever you need this. There we go 1.0. So sine of 90 degrees or half of time because two pi is 60 degrees in mathematics and sine of that equals one. That's it for you know how you manipulate numbers Knox's holy functionality just you know for the trigonometric function and identity, but there's a lot more for other stuff as well, and there'll be a link in the description showing how you can use them. Thanks for watching, and I look forward to seeing you in the next demo.