Using Google Collab, build and solve question your own matrix to solve certain matrices

Job Description:


(a) Implement a tridiagonal solver in Python. The function to implement must be called tri_solver,

with input/output as described in the template.

A tri-diagonal solver is a simplified Gaussian elemination solver that makes use of the banded

nature of the matrix to reduce the amount of storage and computation required. We give you

the following pseudo-code to get started:

% Inpu t :

% l ( 0 :N−1) −− a r ra y o f s i z e N c o n t ai ni n g low e r di a g o n al

% u ( 0 :N−1) −− a r ra y o f s i z e N c o n t ai ni n g upper di a g o n al

% d ( 0 :N) −− a r ra y o f s i z e N+1 c o n t ai ni n g main di a g o n al

% b ( 0 :N) −− a r ra y o f s i z e N+1 c o n t ai ni n g the r i g h t hand s i d e .


% Output : a r ra y b i s o v e r w ri t t e n with s o l u t i o n .

% Forward e l i m i n a t i o n s

f o r i from 0 to N−1 do

% Compute m u l t i p l i e r

mult = l ( i )/ d ( i )

% Per form row r e d u c ti o n

d ( i +1) = d ( i +1) −mult∗u ( i )

% Reduce r i g h t hand s i d e

b ( i +1) = b ( i +1) − mult∗b ( i )

end f o r

% Back s u b s t i t u t i o n s

b (N) = b (N)/ d (N)

f o r i from N−1 to 0 do

b ( i ) = ( b ( i ) − u ( i )∗b ( i +1))/d ( i )

end f o r

(b) Implement a function called compute_derivative that computes the derivative using 4th-order

compact finite-differences. Refer to the template for details on input/output of this function.

This function will use tri_solver coded in part (a) to solve the system (⋆).

(c) Consider the test function

f(x) = sin(5x) for 0 ≤ x ≤ 3.

Compute the derivatives of f using your function from 4b) on a grid with N = 16 segments

(x0 = 0, x1 = 3/16, x2 = 2 × 3/16, ..., x16 = 3). On the same figure, plot your numerically

obtained derivative alongside the exact derivative of f evaluated at the nodes x0,..., x16.

(d) Plot the numerical solution with N = 32, 64, and 128. How does the agreement with the

analytical solution change?

(e) Conduct a performance study of your function compute_derivative by timing the code execution with N = 10, 100, 1000, 5000, 10000. Plot mesh size versus time. Briefly discuss your


Habilidades: Python, Arquitetura de software, Matemática, Algoritmo, Matlab and Mathematica

Sobre o Cliente:
( 2 comentários ) Lubbock, United States

ID do Projeto: #35925494

15 freelancers estão ofertando em média $110 nesse trabalho


Hello! I am an expert Software software engineer with skills including Mathematics, Software Architecture, Algorithm, Matlab and Mathematica and Python. I have read your all given information in description and i am r Mais

$150 USD in 6 dias
(28 Comentários)

Hi, I am a professional programmer and trader and will give you the best work I have innovative tech mind with 10 years of experience working as a computer programmer. Capable of working with a variety of technology an Mais

$50 USD in 3 dias
(37 Comentários)

Hey there! I'm a professional engineer having more than 4 years of experience in python and Google Colab. I'll be waiting to hear back from you

$30 USD em 1 dia
(32 Comentários)

Hi, Dear Employer, I have read your job post carefully. I can write clean validated Machine Learning code and make a device-supported M. File. I have over seven-plus years of experience at the /Machine Learning (ML) Mais

$20 USD em 1 dia
(33 Comentários)

Hi In my current Profession -I perfom the DBA and Developer duties in high traffic OLTP environment -Data Mining ,Data Science,Machine Learning -Python programing -data analysis using python and R -Data Scraping u Mais

$30 USD in 7 dias
(29 Comentários)

This can be done all parts *** Academic Expertise***** Essays; Research Papers; Term Papers; Coursework Help; Literature Reviews; Numerical Problems in Science & Engineering etc. Quality will be absolutely great and f Mais

$120 USD in 4 dias
(12 Comentários)

Hello, I'am python and mathematic expert, Ihave read your asseignement and i can do it in a hours and i have experience with working with colab. If you're intersted please contact me def tri_solver(l, u, d, b): N = Mais

$20 USD em 1 dia
(6 Comentários)

Hi There, I saw your assignment and I'm ready to delivre it in less than 3 hours, I will make the code that implements a tri-diagonal solver and a function called "compute_derivative" that uses this tri-diagonal solv Mais

$30 USD em 1 dia
(2 Comentários)

Hello, Nice meet you! I have read your project requirements and then I am sure I can complete that project. I can help you. Thank you.

$20 USD in 7 dias
(1 Comentário)

Hi there,I am excited to share my expertise and skills in Programming using python and Mathematics, as well as problem solving, which I have acquired over the past 10 years. I am confident that I can meet your requirem Mais

$99 USD in 2 dias
(2 Comentários)

Hello there Adam S., Good afternoon! I’ve carefully checked your requirements and really interested in this job. I’m full stack node.js developer working at large-scale apps as a lead developer with U.S. and European Mais

$10 USD in 3 dias
(0 Comentários)

I think your assignment can be broken into following milestones: 1- Implementing a tridiagonal solver in Python. The solver is to be implemented as a function called tri_solver with specific input/output requirements. Mais

$30 USD in 2 dias
(0 Comentários)

I have made the code for this program. I have learned python and other languages in one of the most reputed institute of India which select its candidates through JEE Advanced exam. I am also learning many courses in U Mais

$20 USD em 1 dia
(0 Comentários)