Category Archive for: Range Variables

Vector or subscript notation

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…

Read More →

Seeded iteration

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…

Read More →

Iterative calculations

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…

Read More →

Entering a table of numbers

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…

Read More →

Output tables

Whenever you type “=” after an expression involving range variables, Mathcad shows the computed values in an output table. Figure 11-2 shows the values of several range variables displayed as output tables. Figure 11-3 shows some output tables for slightly more complicated expressions involving range variables To create the three tables in Figure 11-3, first define the range…

Read More →

Range Variables

A range variable is a variable that takes on a range of values each time you use it. This chapter describes range variables and shows how to use them to perform iterative calculations, display tables of numbers, and facilitate the entry of many data values into a table. The following sections make up this chapter. Range variables How…

Read More →

Back to Top