Part 2) Problem-8 in EECS1540-Additional Examples-06Mar2022.pdf solves a system of linear equations using Jacobi's method. Develop the following function based on the provided description below and the problem solution. function Jacobi (A,B) result (x) ! This function solves a system of linear equations (with maximum 3 variables) using Jacobi's Method. ! ! If a system linear equations presented in matrix form as: [A]X=[B], this function will output X. The! ! output of the function, X, is a 3x1 vector which elements are the solutions of the linear system. real (rind-8) dimension (3.3) intent(in):: A

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter1: Fundamentals Of C++ Programming
Section1.1: Preliminary One: Unit Analysis
Problem 9E: (Oceanography) The pressure, P, exerted on an underwater object can be determined by this formula:...
icon
Related questions
Question

Answer in fortran

Part 2) Problem-8 in EECS1540-Additional Examples-06Mar2022.pdf solves a system of linear equations using
Jacobi's method. Develop the following function based on the provided description below and the problem
solution.
function Jacobi (A, B) result (X)
T-----
! This function solves a system of linear equations (with maximum 3 variables) using Jacobi's Method.
! If a system linear equations presented in matrix form as: [A]X=[B], this function will output X. The!
! output of the function, X, is a 3x1 vector which elements are the solutions of the linear system.
real (kind=8), dimension (3,3), intent (in) :: A
real (kind=8), dimension (3), intent (in) :: B
real (kind=8), dimension (3) : :X
Page 1 of 2
end function Jacobi
Note: Below you can see a system of three linear equotions in three variables (left) and its matrix form representation (right). In the below matrix
representation of the linear system, the 3x3 matrix on the left side of the equation is called coefficient matrix and the 3x1 matrix on the right side of the
equation is called the column vector of constant terms.
ajx + b¡y + c1z = d\
a, bi c1
az bz c2
azx + b2y + c2z = dz
azx + byy + c3z = d3
a3 b3 c3
Transcribed Image Text:Part 2) Problem-8 in EECS1540-Additional Examples-06Mar2022.pdf solves a system of linear equations using Jacobi's method. Develop the following function based on the provided description below and the problem solution. function Jacobi (A, B) result (X) T----- ! This function solves a system of linear equations (with maximum 3 variables) using Jacobi's Method. ! If a system linear equations presented in matrix form as: [A]X=[B], this function will output X. The! ! output of the function, X, is a 3x1 vector which elements are the solutions of the linear system. real (kind=8), dimension (3,3), intent (in) :: A real (kind=8), dimension (3), intent (in) :: B real (kind=8), dimension (3) : :X Page 1 of 2 end function Jacobi Note: Below you can see a system of three linear equotions in three variables (left) and its matrix form representation (right). In the below matrix representation of the linear system, the 3x3 matrix on the left side of the equation is called coefficient matrix and the 3x1 matrix on the right side of the equation is called the column vector of constant terms. ajx + b¡y + c1z = d\ a, bi c1 az bz c2 azx + b2y + c2z = dz azx + byy + c3z = d3 a3 b3 c3
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Fundamentals of Boolean Algebra and Digital Logics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr