Unformatted text preview: list enclose by () after function name, such as myFunction(f, a, N, tol), myOne(a,b). Notice the function argument is optional, you can deﬁne a function with out argument as myFunction(). The function body implements the step section of an algorithm and the output statement. In Mathcad the function body is on the right side of := with vertical bars as grouping symbol. The entire function body is considered as a group, inside, it might has many subgroups. For the algorithm of ﬁnding f ( x ) = 0, there is an subgroup that contains step three and four, as shown in the following screen shot, the screen shot also shows how to get the programming toolbar from the math toolbar. Figure 1. mySolver and Programming toolbar...
View Full Document
- Spring '11
- Numerical Analysis, Subroutine, Return statement