Create a function M-file in MATLAB to solve the system of nonlinear equations (1) using the
0.5+ cos( x)tanh( y )=0
There are many solutions. Your code must find all of the real solutions with x lying between 0 and
2pi and y being positive. As well as the usual requirements of function M-files you will need to pay
particular attention to termination conditions.
Create a function M-file in MATLAB to solve an arbitrary system of linear equations by Gaussian
elimination with partial pivoting. Apply the resulting M-file to solve the system of linear equations
(2). Is it possible to solve this system using Gaussian elimination without pivoting? Check your
results by re-solving the equations using built-in MATLAB commands. The section on matrices in
experiment MS0_1 offered two ways for you to solve a system of linear equations using built-in
MATLAB commands. Be aware that in this case, and for obvious reasons, the bulk of the marks
will be assigned to your MATLAB code implementing the required Gaussian elimination with
partial pivoting algorithm.
−2.1x1+ 2.2x2+ 7.5x3−1.9x4+ x5=−2.5
10x1+ 3x2+ 1.2x4+ 5.5x5=−7
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.