English
Open in Telegram

Message import numpy as np

11 December 2022
P
Python Online o'quv markazi ma'lumot guruhi
import numpy as np def gaussElim(a,b): n = len(b) for k in range(0,n-1): for i in range(k+1,n): if a[i,k] != 0.0: lam = a [i,k]/a[k,k] a[i,k+1:n] = a[i,k+1:n] - lam*a[k,k+1:n] b[i] = b[i] - lam*b[k] for k in range(n-1,-1,-1): b[k] = (b[k] - np.dot(a[k,k+1:n],b[k+1:n]))/a[k,k] return b print("nxm matrisa o'chamini kiriting: ") n = int(input("n=")) m = int(input("m=")) l =[] l1 = [] for i in range(n): l =list(map(int,input().split()))[:m] l1.append(l) print('b vektorni kiriting: ') l =list(map(int,input().split()))[:n] a = np.array(l1) b = np.array(l) aOrig = a.copy() bOrig = b.copy() x = gaussElim(a,b) print(" sistema yechimi x =\n",x)

Nearby in the feed

this message
PPython Online o'quv markazi ma'lumot guruhitenglamalar sistemasini Gauss metodi yordamida yechish👆🏻
PPython Online o'quv markazi ma'lumot guruhiPython Online o'quv markazi ma'lumot guruhi@pythonCourseInfo · group · Tech
2 363members1writing in 30 days
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count