Skip to Main Content
Essential PTC® Mathcad Prime® 3.0
book

Essential PTC® Mathcad Prime® 3.0

by Brent Maxfield
October 2013
Beginner to intermediate content levelBeginner to intermediate
584 pages
11h 50m
English
Academic Press
Content preview from Essential PTC® Mathcad Prime® 3.0
Chapter 12

Advanced Programming

Abstract

Looping was the main concept covered in this chapter. This concept, combined with the logical programming discussed in Chapter 9 can make some very powerful programs.

There are two types of loops: for loops and while loops. The for loop loops a specific number of times and is controlled by an iteration variable. The while loop will loop until a specific condition is met. If the condition is never met, the loop will go indefinitely.

The break and continue operators are used to control when and how a program loops. The break operator stops the execution when a specific condition is met. The continue operator allows PTC Mathcad to skip over a portion of a loop and move back to the beginning of the loop.

The ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Solving Transport Problems

Solving Transport Problems

Walid Besbes, Diala Dhouib, Niaz Wassan, Emna Marrekchi
Microwave and Radar Engineering

Microwave and Radar Engineering

Gottapu Sasibhushana Rao

Publisher Resources

ISBN: 9780124104105