ⓘ This web page is about the old AlgoSim 2 software. Perhaps you are looking for the new Algosim 3 application?
AlgoSim
Homepage | Screenshots | Gallery of Visualisation | User's Guide | Function Reference | Download | FAQ | Support | Bugs and Solutions | Donate

Reference: computeMatrix

computeMatrix(m, n, expr, vars) computes a m×n matrix from a function expr of the matrix element's indices, vars, a comma-separated list of valid identifiers.

Example: Computes a 10 by 10 multiplication table
         computeMatrix(10, 10, "m⋅n", "m, n")

         Computes a list of the 100 first prime numbers
         computeMatrix(100, 1, "prime(m)", "m, n")

         Computes a list of the 100 first prime numbers, and their 5 first powers
         computeMatrix(100, 5, "prime(m)^n", "m, n")