Algorithm to invert an array

Monty, what do you mean by "inverse" ? If you are talking about

mathematical inverse for a 2x2 matrix, then somthing like

det = 1/ ( a(0,0) * a(1,1) - a(0,1)*a(1,0))

temp = a(0,0)

a(0,0) = a(1,1)

a(1,1) = temp

a(0,0) = - a(0,0)

a(0,1) = - a(0,1)

For i = 0 to 1

a(0,i) = det * a(0,i)

a(1,i) = det * a(1,i)

Next i

Quote:

> I have to write an algorithm to computer the inverse of a 2x2 array. I

have

> no clue. Can anyone help me?

> Thanks

> Monty