# Category Archive for: Range Variables

This chapter has shown many examples using subscript notation and range variables, Chapter 10, “Vectors and Matrices,” showed many examples using vector notation without subscripts. This distinction is important. If you use subscripts when they are not required, or vice versa, you probably won’t get the answer you’re looking for. Subscripts refer to individual array elements. When you…

Seeded iteration is a recursive technique for solving difference equations such as those that arise in compound interest problems, Markov processes, and many state variable equations. It can also be used for obtaining approximate solutions for certain differential equations. In a seeded iteration, you specify the first element of an array and then compute successive elements based on the…

This section shows how to use range variables to perform iteration Iteration over a range The simplest kind of iteration in Mathcad is just a generalization of scalar calculations. Any calculation you can perform once, you can perform over a range of values. For example, suppose you want to create a list of x and y…

When you enter a table of numbers, you are actually assigning elements to a vector. This section discusses how to do this using input tables and range variables. To enter an input table, enter a definition with a subscripted variable on one side and a sequence of values separated by commas on the other. For example: • To…