Skip to main content
add explicit result
Source Link
Alan
  • 13.8k
  • 21
  • 41

The result from the loop is correct. You are using two different sets of numbers. Here is the loop computation without loops.

x = {4/5,31/39}
y = {2/5, 145/357}
A = {62243/100000, 3239/6250, 17631/25000}
A[[3]] - A[[1]]*x - A[[2]]*y  (* {0, -(261/154700000)} *)

The result from the loop is correct. You are using two different sets of numbers. Here is the loop computation without loops.

x = {4/5,31/39}
y = {2/5, 145/357}
A = {62243/100000, 3239/6250, 17631/25000}
A[[3]] - A[[1]]*x - A[[2]]*y

The result from the loop is correct. You are using two different sets of numbers. Here is the loop computation without loops.

x = {4/5,31/39}
y = {2/5, 145/357}
A = {62243/100000, 3239/6250, 17631/25000}
A[[3]] - A[[1]]*x - A[[2]]*y  (* {0, -(261/154700000)} *)
elaborate in response to comment
Source Link
Alan
  • 13.8k
  • 21
  • 41

The result from the loop is correct. You are using two different sets of numbers. Here is the loop computation without loops.

x = {4/5,31/39}
y = {2/5, 145/357}
A = {62243/100000, 3239/6250, 17631/25000}
A[[3]] - A[[1]]*x - A[[2]]*y
x = {4/5,31/39}
y = {2/5, 145/357}
A = {62243/100000, 3239/6250, 17631/25000}
A[[3]] - A[[1]]*x - A[[2]]*y

The result from the loop is correct. You are using two different sets of numbers. Here is the loop computation without loops.

x = {4/5,31/39}
y = {2/5, 145/357}
A = {62243/100000, 3239/6250, 17631/25000}
A[[3]] - A[[1]]*x - A[[2]]*y
Source Link
Alan
  • 13.8k
  • 21
  • 41

x = {4/5,31/39}
y = {2/5, 145/357}
A = {62243/100000, 3239/6250, 17631/25000}
A[[3]] - A[[1]]*x - A[[2]]*y