Design: 06.01.01/P04

This is an abstract, language-independent design. Grim details may be found in the corresponding source code. You may return to the documentation for the module containing this program design, or to the entire hierarchical table of topics covered by the PVT.


PROGRAM 4: Behavior of matrix composition

CHARACTERISTICS: nnnn

OPERATOR SCRIPT: passive test.

DESIGN:

TEST: #SR 1 2 11
      "The matrix returned by <compose matrix 3> should perform
       the same 3D transformation as that resulting from the
       multiplication of the two specified matrices."

Initialize array A4 to: | -2.2       3.3   4.4   5.5   |
                        |  0.0023 -727.12  2.09 33.33  |
                        |  0        34    54.1  -0.045 |
                        |  7         6     5     4     |

Initialize array B4:
inc = 0
do i=1,4
do j=1,4
  b(i,j) = tan(-1.56 + inc)
  inc = inc + 3.0/16.0
next j
next i

<Compose matrix 3> using A4 and B4 returns act4x4 = actual array
Compute exp4x4 = expected array
pass/fail depending on (act4x4 represents same transformation as exp4x4)

TEST: #SR 1 2 12
      "The matrix returned by <compose matrix> should perform
       the same 2D transformation as that resulting from the
       multiplication of the two specified matrices."

Initialize array A3 to: | -2.2       3.3    5.5   |
                        |  0.0023 -727.12  33.33  |
                        |  0        34     -0.045 |

Initialize array B3:
inc = 0
do i=1,3
do j=1,3
  b(i,j) = tan(-1.56 + inc)
  inc = inc + 3.0/9.0
next j
next i

<Compose matrix> using A3 and B3 returns act3x3 = actual array
Compute exp3x3 = expected array
pass/fail depending on (act3x3 represents same transformation as exp3x3)

END PROGRAM 4