Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi , I hope if you can help me in this assignment by writing it in C language progrmaing or C++ with illsutrating the steps

image text in transcribedHi , I hope if you can help me in this assignment by writing it in C language progrmaing or C++ with illsutrating the steps by some comments and a sample run of the program and thank you. (UP TO 8 DIGITS)

Question 3: [15 points] Write a computer program that solves the tridiagonal system using Naive Gauss Elimination. Note that you SHOULD NOT write complete code for Gauss Elimination, but a simple code that is enough to solve the following system. The program should take the matrix A and vector B as arguments and output the solution to the system of equations. It should be able to take any n*n matrix, verify that the matrix is tridiagonal and then solve it. You are required to include loop (s) in the program. You can use the following tridiagonal system as an example 45 43 [3 23 000 34 43 0 3455 8 55 22 0 18 35 67 89 76] 13 77 0 0005 56] The solution to this problem (up to six significant figures after decimal): X = [-1 1 .930346 3.512654-1 .499997 4.930661-5.750636 1 .870592]! Question 4: [ Bonus 2 points (Final score)] Write a computer program that solves the Gaussian elimination with partial pivoting. Scaling is used to determine whether pivoting is to be used, but the coefficients are not scaled. Your code should be able to identify singular systems. Your code should correspond to pseudo code provided in Figure 9.6 of your textbook Good luck

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions

Question

How is output computed in ANN?

Answered: 1 week ago

Question

Which of these influenced your life most dramatically?

Answered: 1 week ago

Question

What roles have these individuals played in your life?

Answered: 1 week ago