posted 6 years ago

Dear all,

i have a problem to write the equation in java code , i want to make it in for loop and i also want to count the number

how do i do?

please me!!!

example:

(1) f[1][1]=5.4;

(2) f[2][1]=5.0;

(3) f[3][1]=1.5;

so this is the formula

for k[1][1]=|f[1][1]-f[2][1]|+|f[1][1]-f[3][1]|;

for k[2][1]=|f[2][1]-f[1][1]|+|f[2][1]-f[3][1]|;

for k[3][1]=|f[3][1]-f[1][1]|+|f[3][1]-f[2][1]|;

i have a problem to write the equation in java code , i want to make it in for loop and i also want to count the number

how do i do?

please me!!!

example:

(1) f[1][1]=5.4;

(2) f[2][1]=5.0;

(3) f[3][1]=1.5;

so this is the formula

for k[1][1]=|f[1][1]-f[2][1]|+|f[1][1]-f[3][1]|;

for k[2][1]=|f[2][1]-f[1][1]|+|f[2][1]-f[3][1]|;

for k[3][1]=|f[3][1]-f[1][1]|+|f[3][1]-f[2][1]|;