Question: There are four spring serially connected. The force - balance equations for these spring system are given below: where are the spring constants of four
There are four spring serially connected. The forcebalance equations for these spring system are given below:
where are the spring constants of four springs which are respectively.
N is the force applied on the springs.
Calculate x values by solving these equations using the Thomas Algorithm.
For this purpose, first modify the equations such that you have a tridiagonal matrix system you can do this by hand no need to show your hand calculations
Enter the tridiagonal system you obtained into MATLAB as a matrix of A for coefficients of unknowns and a vector of b for constants on the right hand side.
A matrix should be x tridiagonal matrix, b vector should be x matrix such as bbbbb
Then, write a script which accepts inputs of A and b for the Thomas Algorithm steps of a Decomposition b Forward substutition c Back Substutition.
Use "while" loop for the loops of these steps
The outputs should be in a x vector defined as x vector in MATLAB such as xxxxx
Do NOT use backslash operator or any other MATLAB solver functions to compute the output.
A simple test case has been provided to test your solution before submitting.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
