Hi everyone, can someone help to solved this question

Thank you

Attachments
2
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by NormR1

What is the question?

ok....but the equation will be change...

here is the question :

Find x value in for loop structure:
A x = b
4x1 + x2 - x3 + x4 = -2
X1 + 4x2 – x3 - x4 = -1
-x 1 – x2 +5x3 +x4 = 0
X1 - x2 + x3 +3x4 =1

X i = (bi - ∑_█(j=1@j≠i)^4▒〖 a〗 ij xj , 1≤ i ≤ 4)/aii

In order to this structure
While (true)
{
For (i=0 ; i <n ; i++)
{
X_n1 =b;
For (j=0 ; j<=i-1 ; j++)
{
X_n1 =(x_n1 –A [j] * x_n[j]) ;
}
For ( j = i+1; j<n ; j++)
{
X_n = (n_x1 –A [j] * x_n[j] );
}
X_n1 = x_n1 / A [j];

What is your java programming question?
Do you have an algorithm for the solving the problem?

You need to go to some math or academic site and get an algorithm and then convert that to a design for writing java code.

Good luck.

Edited by NormR1: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.