Gaussian Elimination In Python | Numerical Methods

  Рет қаралды 26,269

StudySession

StudySession

Күн бұрын

Пікірлер: 15
@АндрейРябцев-д7б
@АндрейРябцев-д7б Жыл бұрын
You have an error in your code. Namely in the backward substitution. I think it should look like for k in range(n-2, -1, -1): x[k] = augmented_matrix[k][n] for j in range(k+1, n): x[k] = x[k] - augmented_matrix[k][j] * x[j] x[k] = x[k] / augmented_matrix[k][k]
@banozzg
@banozzg Жыл бұрын
can you explain why? im a bit new to python
@АндрейРябцев-р7т
@АндрейРябцев-р7т Жыл бұрын
@@banozzg It is not referred python it's concerned with Gauss elimination antilogarithm. During back substitution x[k] calculate as the last column of the augmented matrix minus the sum of all previously found x multiplied by the appropriate coefficient from the augmented matrix, and afterwords divided by a[k][k]. It is better to show by formulas than describe by words.
@StudySessionYT
@StudySessionYT Жыл бұрын
Yes you are absolutely right, In my reference code that I created and in my "Gauss Elimination With Partial Pivoting" video I have exactly what you presented here, thank you. I will pin this as the top comment so that others will see your contribution.
@StudySessionYT
@StudySessionYT Жыл бұрын
Learn how to add partial pivoting to Gauss Elimination here: kzbin.info/www/bejne/epq9Ya2Jr7-dZ8k
@trind6473
@trind6473 11 ай бұрын
Sir, thanks for your video. By the way, do you want to use C++ for Gaussian Elimination in another video? Thanks
@yashkaushik4992
@yashkaushik4992 Жыл бұрын
i believe you should add a link to copy the code so it is easier to follow and replicate. I am very new to coding and while I understand things, it all moves too fast for me to do it on my own. :)
@jameshopkins3541
@jameshopkins3541 Жыл бұрын
Dedicate a otra cosa Tal vez cocinar o modas o berlleza
@Sidmenon123
@Sidmenon123 Жыл бұрын
Your backwards substitution bit is wrong. Please check again
@thelindayz2087
@thelindayz2087 Жыл бұрын
It's sad there's such a big mistake in your code in the backward substitution.
@noorj7782
@noorj7782 Жыл бұрын
I think that your code is not inclusive . if the first number in the matrix (matrix[0][0]) is zero , while everything else is ok , your code would stop immediately and get out of the function due to the first condition in the while loop , even though, generally when we do it manually we would simply swap rows and continue with the process . therefore your code does not include the cases when mat[0][0] = 0 .
@maxlee4949
@maxlee4949 10 ай бұрын
Hi, how do I solve this issue?
@noorj7782
@noorj7782 10 ай бұрын
I forgot about this code a long time ago I can’t help you at this point sorry
@wuiege1128
@wuiege1128 Жыл бұрын
:)
@klepachevskyi
@klepachevskyi 5 ай бұрын
The answer's wrong, also mistakes in the code. That's sad you are misleading people. You must double/triple check before publishing. A lot of useless variables, => memory loss. For example variable j = I - 1 Is not used at all.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Jacobi Iteration Method | Numerical Methods
3:53
StudySession
Рет қаралды 31 М.
Apex Cursors Have Changed How I Write Code
8:41
Justin Wills
Рет қаралды 250
LU Factorization / LU Decomposition | Numerical Methods
5:49
StudySession
Рет қаралды 19 М.
Gauss Elimination Code - ANY SIZE - Python Code
6:52
Shams ElFouly
Рет қаралды 32 М.
Gauss-Seidel Method | Numerical Methods
4:51
StudySession
Рет қаралды 40 М.
LU Decomposition in Python
15:46
Kevin Mooney
Рет қаралды 20 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН