1 00:00:00,370 --> 00:00:05,960 Yes, and welcome back to another class of our course about the complete introduction to that science 2 00:00:06,570 --> 00:00:07,330 show in this class. 3 00:00:07,350 --> 00:00:13,920 I thought that it would be great to have a little bunnies and to add to functions that can work with 4 00:00:13,920 --> 00:00:15,150 numpty as well. 5 00:00:15,420 --> 00:00:21,780 So basically, I just wanted to show you at first all the operations that are that we can do on Python. 6 00:00:22,320 --> 00:00:28,740 But I thought that adding to more functions could be a good thing and at the same time, you guys will 7 00:00:28,740 --> 00:00:29,760 probably love it. 8 00:00:30,210 --> 00:00:35,040 So basically, the two functions that we are going to talk about today would be the exponential function 9 00:00:35,310 --> 00:00:40,500 or at Exponent X and the logarithmic function. 10 00:00:40,710 --> 00:00:48,240 And basically the goal today is just to show you that number is able to well, to make errors and make 11 00:00:48,390 --> 00:00:50,480 those functions work with Eriks. 12 00:00:50,820 --> 00:00:53,500 So basically apply functions on those areas. 13 00:00:54,000 --> 00:00:56,810 So it's pretty it's not something that is too complicated to do. 14 00:00:57,480 --> 00:00:59,760 And at the same time, it's pretty cool. 15 00:01:00,000 --> 00:01:01,470 Well, I mean, at least. 16 00:01:01,860 --> 00:01:02,130 All right. 17 00:01:02,190 --> 00:01:05,250 So the first thing that we will do is pretty simple. 18 00:01:05,400 --> 00:01:07,270 We need to write down our area. 19 00:01:07,290 --> 00:01:16,650 So basically our variables in this case are one would be our variable like always and our variable basically 20 00:01:16,650 --> 00:01:17,430 what we'll do with it. 21 00:01:17,430 --> 00:01:21,090 We will create an area so empty that every. 22 00:01:22,840 --> 00:01:28,620 We open up our apprentices, and in this case, we'll work with just a one dimensional. 23 00:01:29,350 --> 00:01:30,300 So pretty simple. 24 00:01:30,640 --> 00:01:32,190 So like always will use it. 25 00:01:32,210 --> 00:01:35,210 Well, we'll use some other numbers for three, six and nine. 26 00:01:36,640 --> 00:01:38,470 And right now, we have our own. 27 00:01:38,860 --> 00:01:42,280 So the next step is pretty simple, is writing down our functions. 28 00:01:42,460 --> 00:01:50,530 And what's going to happen is that Python will just apply those functions on each number inside of our 29 00:01:50,530 --> 00:01:50,830 own. 30 00:01:51,190 --> 00:01:55,320 So the first function that we are going to have will be the exponential function. 31 00:01:55,600 --> 00:01:58,560 And basically how this function works is pretty simple. 32 00:01:58,840 --> 00:02:03,880 So it's simply EA or two point seven two and some other numbers. 33 00:02:04,120 --> 00:02:05,020 I don't remember them. 34 00:02:05,800 --> 00:02:07,750 Exponent are a number. 35 00:02:07,990 --> 00:02:11,110 So basically if we try it out, so simply write down. 36 00:02:13,060 --> 00:02:14,320 And so, Brent. 37 00:02:18,620 --> 00:02:20,760 And people that likes me. 38 00:02:23,960 --> 00:02:30,500 And in this case, we are one, so basically what I have just done is I wrote my print function, so 39 00:02:30,500 --> 00:02:35,480 I asked Python to print the exponential function of this variable right here. 40 00:02:35,840 --> 00:02:40,490 So basically, since we have an array, what is going to happen is going to apply the exponential function 41 00:02:40,850 --> 00:02:42,830 on all the numbers right here. 42 00:02:42,860 --> 00:02:48,020 So basically the exponential function on this number, this one and this one, and if we can see it 43 00:02:48,020 --> 00:02:48,470 right here. 44 00:02:48,500 --> 00:02:50,020 So basically for the first one. 45 00:02:50,030 --> 00:02:54,110 So basically for the tree, it's going to be this for the six, it's going to be this. 46 00:02:54,110 --> 00:02:55,430 And for the night it's going to be this. 47 00:02:56,600 --> 00:03:00,480 It works pretty much the same way if you want to have a logarithmic function. 48 00:03:00,770 --> 00:03:05,450 So basically, the log function is simply the reverse of the exponential function. 49 00:03:07,280 --> 00:03:10,620 It's not a log and usually it's locked in this case, not a lectern. 50 00:03:10,970 --> 00:03:16,910 So if we try it out, the only thing that you guys have to do is simply exchanged exponential function 51 00:03:17,300 --> 00:03:18,850 by a log function. 52 00:03:18,860 --> 00:03:22,130 So simply change the Peabody Energy. 53 00:03:22,130 --> 00:03:25,460 So a logarithmic function and you can run the app. 54 00:03:25,580 --> 00:03:31,020 And as you can see, you will have the complete well, you will have those answers right here. 55 00:03:31,970 --> 00:03:35,740 So basically, as I said, it's simply the reverse of the exponential function. 56 00:03:35,840 --> 00:03:39,620 So I'm not going to give you guys a complete mathematical course about all this. 57 00:03:40,520 --> 00:03:43,950 But once again, it's well, it's pretty well, it's pretty cool. 58 00:03:45,170 --> 00:03:50,570 Usually it's possible to show it on a graph, but I won't do it because I will need to use matplotlib 59 00:03:50,570 --> 00:03:51,110 for it. 60 00:03:51,170 --> 00:03:56,210 That's the visualization tool and will work with it a bit later in this class. 61 00:03:56,220 --> 00:04:02,450 So you'll see a bit later in the scores will work with different tools that will let us visualize our 62 00:04:02,450 --> 00:04:04,820 data or put everything on graphs. 63 00:04:05,240 --> 00:04:05,540 All right. 64 00:04:05,550 --> 00:04:11,090 So now you guys know how to work with exponential functions as well as logarithmic functions inside 65 00:04:11,090 --> 00:04:14,150 of Python with no bite you can work with? 66 00:04:14,960 --> 00:04:20,660 Well, there are plenty of other functions with which you can work using IRI's, and those are pretty 67 00:04:20,660 --> 00:04:20,960 cool. 68 00:04:21,560 --> 00:04:23,130 So that's it for this part of the course. 69 00:04:23,150 --> 00:04:29,690 Guys, I hope you guys, like nonpaying, learned a lot of things about it and see you in the next part 70 00:04:29,690 --> 00:04:30,500 of this.