1 00:00:00,330 --> 00:00:05,590 Hello, guys, and welcome back to the class of our course about the complete introduction to that science. 2 00:00:06,090 --> 00:00:09,750 So in today's class, we are still going to talk about Skype. 3 00:00:09,780 --> 00:00:13,620 And this is our last class about this amazing Python library. 4 00:00:14,550 --> 00:00:19,260 So basically what we are going to learn today, what what we are going to talk about today will be linear 5 00:00:19,260 --> 00:00:26,070 algebra and all the functions that we can use with linear algebra inside of Skype. 6 00:00:26,200 --> 00:00:33,080 So basically, as I said there, there is plenty of sub packages that exists in Skype. 7 00:00:33,240 --> 00:00:38,900 And one of those give us access to the majority of linear algebra functions that exist. 8 00:00:39,600 --> 00:00:44,040 So basically, we are going to learn two of those functions, which are basically the sole function, 9 00:00:44,040 --> 00:00:51,090 which will solve an operation of linear algebra with the two square arrays. 10 00:00:51,120 --> 00:00:56,160 So basically we're going to create square arrays with the use of No.8 and simply solve them together. 11 00:00:57,120 --> 00:01:02,400 And we are also going to generate the reverse of an area. 12 00:01:02,430 --> 00:01:04,240 So basically the function. 13 00:01:05,070 --> 00:01:14,310 So there are plenty of functions that exists with the with the basically not SCoPI, but linear algebra. 14 00:01:14,320 --> 00:01:22,740 So the sub, the sub package that is linear algebra inside of SCoPI. 15 00:01:23,700 --> 00:01:29,970 So some of those functions will be, for example, the basic functions, which will be the sole function, 16 00:01:29,970 --> 00:01:33,240 the normal function, the function, the B to function. 17 00:01:33,870 --> 00:01:38,100 We have the E age involved, the problems. 18 00:01:38,670 --> 00:01:40,050 We have matrix functions. 19 00:01:40,050 --> 00:01:45,120 We have matrix equation solvers, we have special mattresses and plenty of others. 20 00:01:45,150 --> 00:01:52,570 So basically the linear algebra part of Kibuye is really huge and is really well built. 21 00:01:52,920 --> 00:01:58,680 So basically, if you guys are advanced in linear algebra, you can do pretty much anything you want 22 00:01:58,680 --> 00:02:04,510 with Skype if you want to build up an application that uses linear algebra with it. 23 00:02:04,530 --> 00:02:06,170 So it could be for data science. 24 00:02:06,170 --> 00:02:08,310 It could be for any other personal project. 25 00:02:09,690 --> 00:02:10,070 All right. 26 00:02:10,080 --> 00:02:14,760 So as I said, the functions that we are going to use today would be the function that will compute 27 00:02:14,760 --> 00:02:22,980 the inverse of a matrix and the cell function that will simply solve the linear equations set off of 28 00:02:22,980 --> 00:02:27,330 our two matrixes for the unknown X four square, eight matrix. 29 00:02:27,720 --> 00:02:28,120 All right. 30 00:02:28,140 --> 00:02:33,630 So let's start basically the first function that we are going to learn will be the sole function. 31 00:02:33,900 --> 00:02:39,300 And before we even start what we need to do, we need to import numpties as well as Kibuye, because 32 00:02:39,300 --> 00:02:41,520 we are going to use both of them. 33 00:02:42,540 --> 00:02:52,200 So, as always, we are going to import SkyBitz and then we are going to import Numberi because we will 34 00:02:52,200 --> 00:02:53,460 need to create an. 35 00:02:58,190 --> 00:02:58,740 Here we go. 36 00:02:59,720 --> 00:03:05,240 When it's all done, what want to do, as I said, we are going to work with the linear algebra, so 37 00:03:05,240 --> 00:03:11,180 we need to import the sub package lineout out, which would be the linear algebra sub package. 38 00:03:11,600 --> 00:03:17,890 So simply write down from SCoPI import Lenn out. 39 00:03:17,940 --> 00:03:23,210 So basically this would be the linear algebra sub package right now. 40 00:03:23,410 --> 00:03:25,410 Want to do we need to create our area. 41 00:03:25,430 --> 00:03:27,600 So basically we have imported everything that we need. 42 00:03:27,650 --> 00:03:30,100 Now it's time for us to start our operation. 43 00:03:30,380 --> 00:03:31,700 So let's create our area. 44 00:03:31,740 --> 00:03:33,870 So we'll do right now we'll create two areas. 45 00:03:34,250 --> 00:03:36,320 So we'll call it Arijit one. 46 00:03:37,670 --> 00:03:41,150 And for everyone will have to square area. 47 00:03:41,190 --> 00:03:45,110 So basically, it's going to be two lines of two numbers. 48 00:03:45,140 --> 00:03:46,040 So pretty simple. 49 00:03:46,640 --> 00:03:49,350 So how to write down in that area? 50 00:03:49,970 --> 00:03:56,090 We open up the parenthesis and here we can write down one entry. 51 00:03:56,100 --> 00:04:02,340 So basically even numbers and in the same area will write down our numbers. 52 00:04:03,890 --> 00:04:05,800 So it's going to be two and four. 53 00:04:07,850 --> 00:04:08,250 All right. 54 00:04:08,270 --> 00:04:11,090 So for the second one will do the exact same thing. 55 00:04:11,100 --> 00:04:14,560 So we'll just copy everything from here to there. 56 00:04:16,620 --> 00:04:21,330 We'll call it area number two and what we'll do, we'll just change the numbers that are inside, let's 57 00:04:21,330 --> 00:04:24,350 put five and nine in here. 58 00:04:24,360 --> 00:04:26,190 Let's put to 59 00:04:28,770 --> 00:04:30,720 put six and eight. 60 00:04:30,810 --> 00:04:31,230 All right. 61 00:04:31,230 --> 00:04:32,250 So we have our numbers. 62 00:04:32,880 --> 00:04:33,390 Amazing. 63 00:04:33,400 --> 00:04:35,020 So right now, we have everything that we need. 64 00:04:35,220 --> 00:04:41,550 So what we can do to be sure that everything works fine so we can print a everyone. 65 00:04:43,970 --> 00:04:47,160 You as well as two. 66 00:04:51,030 --> 00:04:55,740 All right, so everything works fine, everything is perfect, so as you can see, everything is great, 67 00:04:55,740 --> 00:04:56,580 everything works. 68 00:04:57,450 --> 00:05:00,710 So now it's time for us to make the operation. 69 00:05:01,020 --> 00:05:06,390 So basically, as I said, the first thing that will do will solve the operation that will work with 70 00:05:06,390 --> 00:05:07,710 everyone and every two. 71 00:05:08,040 --> 00:05:15,330 And basically the goal here would be to solve the equation set so multiplied by X equals be for the 72 00:05:15,330 --> 00:05:18,540 unknown X for four square a matrix. 73 00:05:19,860 --> 00:05:22,130 So basically in this case, we'll have A and B. 74 00:05:22,530 --> 00:05:22,850 All right. 75 00:05:22,860 --> 00:05:24,790 So let's do it. 76 00:05:24,810 --> 00:05:25,620 So pretty simple. 77 00:05:25,620 --> 00:05:28,740 What we'll do right now will create another variable. 78 00:05:28,740 --> 00:05:36,690 In this case, we will call this variable function one and let's do it. 79 00:05:36,720 --> 00:05:38,970 So basically we will write our function. 80 00:05:38,990 --> 00:05:43,500 So it's going to be easy because we are referring to Kibuye to escape a function. 81 00:05:43,530 --> 00:05:53,280 So we'll write down Espie that Lynn ALG, since it's a sub package of SCoPI. 82 00:05:53,280 --> 00:05:57,890 So basically linear algebra is a page of SkyBitz. 83 00:05:58,290 --> 00:06:02,430 Next thing we'll write down the function that we are going to use in this case is going to be the sole 84 00:06:02,440 --> 00:06:03,060 function. 85 00:06:03,420 --> 00:06:04,710 And what we want to solve. 86 00:06:04,710 --> 00:06:05,220 Exactly. 87 00:06:05,220 --> 00:06:07,810 Want to solve every one as well as every two. 88 00:06:07,980 --> 00:06:11,590 So everyone mixed with every number two. 89 00:06:12,360 --> 00:06:15,420 So we want to do right now, we want to print function one. 90 00:06:18,700 --> 00:06:20,130 So just make a little mistake. 91 00:06:20,940 --> 00:06:22,360 We'll write it down again. 92 00:06:22,380 --> 00:06:33,210 So basically, it's going to be speech that went out that so and in this case is going to be every one 93 00:06:34,320 --> 00:06:35,880 and every two. 94 00:06:36,690 --> 00:06:37,040 Great. 95 00:06:37,080 --> 00:06:38,080 So we have everything we need. 96 00:06:39,180 --> 00:06:42,890 So next thing that we need to do is pretty simple. 97 00:06:42,900 --> 00:06:46,270 We need to verify that there is no mistake that everything works fine. 98 00:06:46,290 --> 00:06:50,270 So basically, in our case right now, everything looks pretty good. 99 00:06:51,270 --> 00:06:53,130 So we have our every one, every two 100 00:06:56,100 --> 00:06:56,690 to go. 101 00:06:56,700 --> 00:07:02,000 So we have a little problem right here, just corrected here. 102 00:07:02,220 --> 00:07:04,780 And we can print absolutely everything that we can see. 103 00:07:04,800 --> 00:07:06,800 This would be our insert right here. 104 00:07:06,810 --> 00:07:10,800 So it has solved the equation that. 105 00:07:10,800 --> 00:07:13,430 Give us this answer right there. 106 00:07:14,370 --> 00:07:14,750 All right. 107 00:07:15,300 --> 00:07:19,550 So next thing that we want to do right now is pretty simple. 108 00:07:19,560 --> 00:07:25,500 What we want to do is calculate the reverse of our eye right here. 109 00:07:25,560 --> 00:07:26,420 So pretty simple. 110 00:07:26,430 --> 00:07:30,000 What we'll do, we'll simply calculate the reverse of this area. 111 00:07:32,970 --> 00:07:37,950 So in this case, what we can do, we can simply write down function. 112 00:07:38,160 --> 00:07:41,280 So function, let's say in this case, we didn't lose function. 113 00:07:41,280 --> 00:07:42,630 One, we're automatically printed. 114 00:07:43,020 --> 00:07:48,350 So we can do we can just write down function one and write it down. 115 00:07:48,360 --> 00:07:52,180 So basically function one will be equal to our operation. 116 00:07:52,230 --> 00:07:58,680 So it's going to be espie, that lineout, because we are making a reference to linear algebra functions 117 00:07:58,950 --> 00:08:03,480 and the function that we are going to use will be the function or the reverse function. 118 00:08:03,990 --> 00:08:07,260 So in this case, we want the reverse function of every one. 119 00:08:08,190 --> 00:08:10,780 And what we want to do right now, we want to print it. 120 00:08:10,800 --> 00:08:13,620 So basically we'll just delete the print right here. 121 00:08:14,820 --> 00:08:18,850 And what we want to do right now, we want to print our function one. 122 00:08:19,020 --> 00:08:22,800 So we'll just have different pieces and write down function one. 123 00:08:23,530 --> 00:08:23,840 Right. 124 00:08:23,880 --> 00:08:26,820 When everything is done, we simply run our operation. 125 00:08:27,600 --> 00:08:34,560 And as you can see, we have the reverse function of our error rate number one right here or our function 126 00:08:34,560 --> 00:08:34,830 one. 127 00:08:34,830 --> 00:08:39,030 So basically, this is the reverse of every number one calculated. 128 00:08:39,720 --> 00:08:43,230 It will it has computed the inverse of this matrix. 129 00:08:43,770 --> 00:08:44,070 Right. 130 00:08:44,080 --> 00:08:48,780 So you guys, I hope until now, you guys, everything that you can do with SkyBitz, once again, you 131 00:08:48,780 --> 00:08:52,080 will not be a professional of SCoPI after just this part of the course. 132 00:08:52,380 --> 00:08:57,300 But I hope you guys have a certain idea of what Kibuye is. 133 00:08:58,320 --> 00:09:00,390 So up until now, you guys like the course. 134 00:09:00,540 --> 00:09:05,050 Hopefully you will continue it because there is there are plenty of other interesting things to learn. 135 00:09:05,370 --> 00:09:09,120 So that's a first class guys and see you all in the next part of the course.