Linear Algebra: Traffic Problem with Systems of Equations

5 ビュー (過去 30 日間)
Christian Diaz
Christian Diaz 2019 年 5 月 11 日
コメント済み: Christian Diaz 2019 年 5 月 11 日
  7 件のコメント
Walter Roberson
Walter Roberson 2019 年 5 月 11 日
rref(A,B) uses B as the tolerence in the calculation. As in two values are to be considered to be the same if the are within B of each other. A typical value there might be something like 20*eps
Consider for example
[1/49*49 3;
2 6]
Examined algebraically this appears to be [1 3; 2 6] which is immediately recognizable as being rank 1 because the second row is 2 * the first row.
However, in the world of floating point numbers, 1/49*49 is not exactly 1: it is about 1.11e-16 less than 1. If you did bitwise comparisons between (1/49*49)*2 and 2, they would not be bit-for-bit equal, and you would decide that the matrix has rank 2. The tolerance parameter is there to permit you to take that kind of floating point round-off into account, so that you do not accidentally consider two values to be different due to floating point round-off when algebraically they should be the same.
Christian Diaz
Christian Diaz 2019 年 5 月 11 日
I’m not getting any closer to solving the problem lol the code above is what I have and I dont know what it needs

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeOperators and Elementary Operations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by