Hello, guys, and welcome back to the class of our course about the complete introduction to that science.
So in today's class, we are still going to talk about Skype.
And this is our last class about this amazing Python library.
So basically what we are going to learn today, what what we are going to talk about today will be linear
algebra and all the functions that we can use with linear algebra inside of Skype.
So basically, as I said there, there is plenty of sub packages that exists in Skype.
And one of those give us access to the majority of linear algebra functions that exist.
So basically, we are going to learn two of those functions, which are basically the sole function,
which will solve an operation of linear algebra with the two square arrays.
So basically we're going to create square arrays with the use of No.8 and simply solve them together.
And we are also going to generate the reverse of an area.
So basically the function.
So there are plenty of functions that exists with the with the basically not SCoPI, but linear algebra.
So the sub, the sub package that is linear algebra inside of SCoPI.
So some of those functions will be, for example, the basic functions, which will be the sole function,
the normal function, the function, the B to function.
We have the E age involved, the problems.
We have matrix functions.
We have matrix equation solvers, we have special mattresses and plenty of others.
So basically the linear algebra part of Kibuye is really huge and is really well built.
So basically, if you guys are advanced in linear algebra, you can do pretty much anything you want
with Skype if you want to build up an application that uses linear algebra with it.
So it could be for data science.
It could be for any other personal project.
All right.
So as I said, the functions that we are going to use today would be the function that will compute
the inverse of a matrix and the cell function that will simply solve the linear equations set off of
our two matrixes for the unknown X four square, eight matrix.
All right.
So let's start basically the first function that we are going to learn will be the sole function.
And before we even start what we need to do, we need to import numpties as well as Kibuye, because
we are going to use both of them.
So, as always, we are going to import SkyBitz and then we are going to import Numberi because we will
need to create an.
Here we go.
When it's all done, what want to do, as I said, we are going to work with the linear algebra, so
we need to import the sub package lineout out, which would be the linear algebra sub package.
So simply write down from SCoPI import Lenn out.
So basically this would be the linear algebra sub package right now.
Want to do we need to create our area.
So basically we have imported everything that we need.
Now it's time for us to start our operation.
So let's create our area.
So we'll do right now we'll create two areas.
So we'll call it Arijit one.
And for everyone will have to square area.
So basically, it's going to be two lines of two numbers.
So pretty simple.
So how to write down in that area?
We open up the parenthesis and here we can write down one entry.
So basically even numbers and in the same area will write down our numbers.
So it's going to be two and four.
All right.
So for the second one will do the exact same thing.
So we'll just copy everything from here to there.
We'll call it area number two and what we'll do, we'll just change the numbers that are inside, let's
put five and nine in here.
Let's put to
put six and eight.
All right.
So we have our numbers.
Amazing.
So right now, we have everything that we need.
So what we can do to be sure that everything works fine so we can print a everyone.
You as well as two.
All right, so everything works fine, everything is perfect, so as you can see, everything is great,
everything works.
So now it's time for us to make the operation.
So basically, as I said, the first thing that will do will solve the operation that will work with
everyone and every two.
And basically the goal here would be to solve the equation set so multiplied by X equals be for the
unknown X for four square a matrix.
So basically in this case, we'll have A and B.
All right.
So let's do it.
So pretty simple.
What we'll do right now will create another variable.
In this case, we will call this variable function one and let's do it.
So basically we will write our function.
So it's going to be easy because we are referring to Kibuye to escape a function.
So we'll write down Espie that Lynn ALG, since it's a sub package of SCoPI.
So basically linear algebra is a page of SkyBitz.
Next thing we'll write down the function that we are going to use in this case is going to be the sole
function.
And what we want to solve.
Exactly.
Want to solve every one as well as every two.
So everyone mixed with every number two.
So we want to do right now, we want to print function one.
So just make a little mistake.
We'll write it down again.
So basically, it's going to be speech that went out that so and in this case is going to be every one
and every two.
Great.
So we have everything we need.
So next thing that we need to do is pretty simple.
We need to verify that there is no mistake that everything works fine.
So basically, in our case right now, everything looks pretty good.
So we have our every one, every two
to go.
So we have a little problem right here, just corrected here.
And we can print absolutely everything that we can see.
This would be our insert right here.
So it has solved the equation that.
Give us this answer right there.
All right.
So next thing that we want to do right now is pretty simple.
What we want to do is calculate the reverse of our eye right here.
So pretty simple.
What we'll do, we'll simply calculate the reverse of this area.
So in this case, what we can do, we can simply write down function.
So function, let's say in this case, we didn't lose function.
One, we're automatically printed.
So we can do we can just write down function one and write it down.
So basically function one will be equal to our operation.
So it's going to be espie, that lineout, because we are making a reference to linear algebra functions
and the function that we are going to use will be the function or the reverse function.
So in this case, we want the reverse function of every one.
And what we want to do right now, we want to print it.
So basically we'll just delete the print right here.
And what we want to do right now, we want to print our function one.
So we'll just have different pieces and write down function one.
Right.
When everything is done, we simply run our operation.
And as you can see, we have the reverse function of our error rate number one right here or our function
one.
So basically, this is the reverse of every number one calculated.
It will it has computed the inverse of this matrix.
Right.
So you guys, I hope until now, you guys, everything that you can do with SkyBitz, once again, you
will not be a professional of SCoPI after just this part of the course.
But I hope you guys have a certain idea of what Kibuye is.
So up until now, you guys like the course.
Hopefully you will continue it because there is there are plenty of other interesting things to learn.
So that's a first class guys and see you all in the next part of the course.