Question

Write a program which can be used to solve any system of equation using the Scaled...

Write a program which can be used to solve any system of equation using the Scaled Pivoting GE method

Homework Answers

Answer #1

The code for the problem is:

clc;clear all
format short
A=[0.003 12.34;0.4321 1];
B=[12.343;5.321];
ans1=Gauss(A,B)

function x=Gauss(A,B)
AB=[A,B];
[r c]=size(AB);
x=ones(r,1);
for(i=1:r-1)
for(j=i+1:r)
AB(j,i:c)=AB(j,i:c)-(AB(j,i)/AB(i,i))*AB(i,i:c);
end
end
x(r)=AB(r,c)/AB(r,r);
for(i=r-1:-1:1)
x(i)=(AB(i,c)-AB(i,c-1:-1:i+1)*x(c-1:-1:i+1,1))/AB(i,i);
end
end

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
write a program to solve the hartree-fock equation used in full strip cryocooler genetic engineering to...
write a program to solve the hartree-fock equation used in full strip cryocooler genetic engineering to feeling the approximate atomic system with electrons 11 is 2S and 2P shells to begin the iterative procedure normalised hydrogen acquire functions than subroutine hydrogen and their energies bulletin energies are calculated the viral theorem is to be used to determine the variation of parameters that star which in turn is used to calculate optimal scaled hydrogen nikli wave functions and their energy strictly...
Can you solve this C program by using Function? Q1. Write a C program to ring...
Can you solve this C program by using Function? Q1. Write a C program to ring the computer bell at any number of times you specify. Use the system clock as a delay, you need to include the time header file.
Using C++ code, write a program named q5.cpp to solve the equation 2n = 14.27 for...
Using C++ code, write a program named q5.cpp to solve the equation 2n = 14.27 for n.
Solve the following system of equations using LU factorization with partial pivoting: 2x1 − 6x2 −...
Solve the following system of equations using LU factorization with partial pivoting: 2x1 − 6x2 − x3 = −38 −3x1 − x2 + 7x3 = −34 −8x1 + x2 − 2x3 = −40 I would like to write a matlab code to solve the problem without using loops or if statements. All i want is a code to swap the rows. I can solve the rest. Thank you in advance.
Q) Write a computer program to test the stability of any continuous-time LTI system.( using Matlab)...
Q) Write a computer program to test the stability of any continuous-time LTI system.( using Matlab) Test your program on the impulse response.   h(t)= e^(-2t) u(t) Attached the program (Matlab) file and a screen shot of the results.
using matlab Write your own routine for Gaussian elimination without any pivoting. Input for the routine...
using matlab Write your own routine for Gaussian elimination without any pivoting. Input for the routine should consist of the number (n) of equations and the augmented matrix. Output should be the vector solution of the system. Test your code by using it to solve the following two problems: a) x + y + w + z = 10, 2x + 3y + w + 5z = 31, −x + y − 5w + 3z = −2, 3x + y...
Write the second order differential equation as a system of two linear differential equations then solve...
Write the second order differential equation as a system of two linear differential equations then solve it. x''-6x'+13x=0 x(0)= -1  x'(0)=1
solve the classical wave equation using Heun's method.
solve the classical wave equation using Heun's method.
write a chemical equation for cleaning supplies used in household items. any one would work
write a chemical equation for cleaning supplies used in household items. any one would work
Numerical PDE write a matlab program  to solve this equation numerically. Don't use MATLAB'S built-in functions please....
Numerical PDE write a matlab program  to solve this equation numerically. Don't use MATLAB'S built-in functions please. dy/dt = e ^ y − αy, y(0) = 0 where α > 0 is a parameter. Discuss the equilibrium points, the values when e^y = αy and the case when α = 0
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT