ⓘ 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: numberVector

If v is a N-dimensional vector and a an integer, then numberVector(v, a) returns a N×2 matrix where the first element of the nth row (indexed from 0) is n + a and the second element is v_(n + 1).

numberVector(v) = numberVector(v, 0).

Example: primes ≔ sieveOfEratosthenes(10)
         numberVector(primes)