Question: Need a javascript or similar program for a Nave Gauss Elimination and Gauss-Jordan problem. Please use the following instructions: As a personal preference I don't
Need a javascript or similar program for a Nave Gauss Elimination and Gauss-Jordan problem. Please use the following instructions:
As a personal preference I don't like the idea of Gauss elimination with back substitution. So I'm not going to make any of you go through that pain either. basically I want you to write a program that takes a set of linear equations like this: 5w+2x+2y+3z = 15 -11w-3x+5y-7z = -2 2w+4x-6y = -21 w+2y+2z = 4 Although I will probably not give you any more than ten equations in ten unknowns your program has to be able to solve any simultaneous set of linear equations. start the program out by giving it the coefficient matrix c=[[5,2,2,3,15],[-11,-3,5,-7,-2],[2,4,-6,0,-21],[1,0,2,2,4]] and have it print out the solution vector in the form: [5, -2.5, 3.5, -4] remember to try testing the program with various input. for example, what if you wanted to solve: 3x=12 input [[3,12]] output [4]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
