蟒蛇(.m 文件) 你能按照程序代碼做這個功能嗎? use python (.m file) Can you follow the procedure code to do this function?

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

蟒蛇(.m 文件) 你能按照程序代碼做這個功能嗎? use python (.m file) Can you follow the procedure code to do this function?

Post by answerhappygod »

蟒蛇(.m 文件)
 1
1 (22.14 KiB) Viewed 10 times
 2
2 (17.57 KiB) Viewed 10 times
你能按照程序代碼做這個功能嗎?
use python (.m file)
 3
3 (17.88 KiB) Viewed 10 times
 4
4 (14.3 KiB) Viewed 10 times
Can you follow the procedure code to do this function?
Procedure Gauss(n, a, b) • real: (a)nxn, (b)nx1, (x)nx1, rmax, smax, xmult integer: n, lnx1, P for i from 1 to n do • l; <i endfor for k=1 to n-1 do ●rmax < 0 • for ik to n do @ smax (0 • for j = k to n do smax • endfor @ rmax +|a,k/smax| • pri • endif max(smax, |ae, j) if rmax < |ae,,k/smax| •endfor
% Elinimation Step for ik + 1 to n do .xmultae,,k/ alkk • alik 0 for j=k+1 to n do • ajaj - (xmult)ax.j • endfor • be = be, - (xmult) bex • endfor endfor • Xn = ben/ann • for i= n-1 to 1 step -1 do • sum <- be for j =i+1 to n do • sumsum - aj X Xj • endfor • X; (sum)/ai endfor
Procedure Gauss(n, a, b) e real: (a)nxn, (b)nx1, (x)nx1, rmax, smax, xmult integer: n, lnx1, P • for i from 1 to n do • endfor • for k=1 to n-1 do ●rmax < 0 for ik to n do a smax (0 • for j = k to n do • smax + max(smax, la,j) • endfor ← if rmax < |a.k/smax| ●rmax lat,,k/smax • pri endif • endfor
% Elinimation Step for ik 1 to n do xmultak/ak • 31₁ k 40 for j k + 1 to n do = • ajaj(xmult) ak • endfor • bebe (xmult) bex endfor endfor • Xn= ben/an.n for in-1 to 1 step -1 do • sum <- be for j =i+1 to n do sum-sum - aj x xj • endfor X; (sum)/a, endfor
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply