Ok, your matrix looks like this:
The first line
3 means that you have three countries to trade currencies between.
The next line
1.2 .89 means if you have 1 unit of country A$'s currency then you can get 1.2 units of country B$'s currency. Moreover, you can get .89 of country C$'s currency from 1 unit of country A$'s currency
The next line
.88 5.1 means that if you have 1 unit of country B$'s currency (B$ because we are on row two of the matrix or on the second countries exchange rates) then you can get .88 units of country A$'s currency, also you can get 5.1 units of country C$'s currency from 1 unit of country B$'s currency
Finally, the last line
1.1 0.15 means that if you have 1 unit of country C$'s currency (C$ because we are now on the third row of our matrix) you can get 1.1 units of country A$'s currency, and you can get .15 units of country B$'s currency for just 1 unit of country C$'s
The matrix has been minimized to save basic or assumed rates. These assumed rates are for trading from country A$'s currency to country A$'s currency. Obviously you can't just give the bank $100 and expect to get anything else but $100 back from them. These exchanges are removed from the input matrix, but you can insert them again to make the exchanges a little bit more clear. The matrix would then look like this:
These added 1's are are just for changing from A$'s currency to A$'s currency.
You can also view the matrix like an adjacency list from a graph. Where the rows represent the starting currency and the columns represent the ending currency. Like so:
Code: Select all
To -> | Country A$ Country B$ Country C$
___________|___________________________
From |
Country A$ | 1 .88 1.2
Country B$ | .89 1 5.1
Country C$ | 1.1 .15 1
This is the same exact matrix as you will notice just a little bit different way of looking at it. So... if I want to get from country C$'s currency to country B$'s currency, I would, go down the rows until I got to country C$'s row, and then I would go across to get to country B$'s column. I am now at the exchange rate to exchange 1 unit of country C$'s currency to country B$'s currency. This exchange rate is .15... meaning for $1 of C$ currency I get $0.15 of B$'s currency.