0% found this document useful (0 votes)
53 views

Programming With Mathcad Prime 10

The document provides steps to calculate the average (mean) of values in a list using a for loop in Mathcad. It instructs the user to: 1) Define a for loop that sums the terms in a list matrix using a local assignment operator. 2) Create a new line after the for loop to calculate the mean by dividing the sum by the number of terms using a local assignment operator. 3) Define a 5x1 matrix variable containing numerical values to apply the averaging calculation to.

Uploaded by

Jay Cee
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Programming With Mathcad Prime 10

The document provides steps to calculate the average (mean) of values in a list using a for loop in Mathcad. It instructs the user to: 1) Define a for loop that sums the terms in a list matrix using a local assignment operator. 2) Create a new line after the for loop to calculate the mean by dividing the sum by the number of terms using a local assignment operator. 3) Define a 5x1 matrix variable containing numerical values to apply the averaging calculation to.

Uploaded by

Jay Cee
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Step 6: Enter the expression to sum the terms in the List matrix as a line in the body of the for

loop

Type sum in the placeholder of the body of the for loop

Insert a Local Assignment operator

Type sum+List[count to complete the definition of sum

Step 7: Calculate the average (mean) as the sum divided by the number of terms

Use the right arrow key to move the blue cursor to the right until it extends to the full height of the for
loop template. You should only need to hit it twice. If necessary, you can place the cursor outside of the
for loop with your mouse.

Hit the Enter key to create a new line in the function


definition

In the placeholder type Mean

Insert a Local Assignment Operator

Type Sum/Terms in the open placeholder

Click in the worksheet outside the Averaginator region

Step 8: In the main body of the Mathcad worksheet define a variable containing a 5x1 matrix

Type DataList:

Left-Click on the Matrices/Tables tab

Left-Click on the Insert Matrix icon and drag select a 5x1 matrix

Type 5 numerical values into the matrix placeholders

Programming with Mathcad Prime | pg. 8

You might also like