Question: In this assignment, you are required to write a Julia program to solve the following problems. You will use Pluto notebooks to implement your solutions

In this assignment, you are required to write a Julia
program to solve the following problems. You will use
Pluto notebooks to implement your solutions
Write a function gaussian_step!(A::Matrix{Float64},k:: Int) in Julia that
performs one step of Gaussian elimination without pivoting, transforming a matrix
A(k) into A(k+1). The matrix structure follows the form shown in the image, with
partitions representing rows and columns as they evolve through the elimination
process.
The function takes a matrix A(of type Matrix{Float64}) and an integer k, repre-
senting the current step of the Gaussian elimination process. It updates the matrix
A to reflect the transformation into A(k+1). The function should not perform any
row exchanges (no pivoting). Your function should operate in-place (modifying the
matrix directly).
Given an upper triangular matrix UinRnn and a vector binRn, write a Julia
function to solve the system of equations Ux=b using backward substitution. The
function must have the following signature:
function backward_substitution(U::Matrix{Float64}, b::Vector{Float64})
and it must return a vector.
In question 1, you defined the function gaussian_step!, which performs a single
step of Gaussian elimination on a matrix without pivoting. Use this function to
implement full Gaussian Elimination and use the function you defined in question
2 to solve a system of linear equations Ax=b. The function signature is
function gaussian_elimination(A::Matrix{Float64}, b::Vector{Float64})
The function returns the solution x.
Given a lower triangular matrix LinRnn and a vector binRn, write a Julia
function to solve the system of equations Ly=b using forward substitution. The
function must have the following signature:
function forward_substitution(L::Matrix{Float64}, b::Vector{Float64})
and it must return a vector.
In this assignment, you are required to write a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!