Archive for: November, 2015

Importing data

Although you can use Mathcad as a tool for working with variable and function definitions, you can also use Mathcad to perform calculations on data. In order to do so, you first need to import the data into a Mathcad worksheet using either the File ReadlWrite component or the Input Table component. For a general discussion of components see…

Read More →

Data Management

Many of Mathcad’s built-in functions and operators are useful for manipulating sets of data. Mathcad therefore provides special mechanisms for importing various types of data into a Mathcad worksheet. And, once you’ve worked with the data, Mathcad allows you to export the results you’ve generated. This chapter also discusses a group of Mathcad functions for reading and writing ASCII text…

Read More →

Programming examples

With only ten buttons on the Programming Palette, Mathcad’s programming environment is easy to use. Nevertheless, this simplicity conceals a surprising amount of programming power. When combined with Mathcad’s rich numerical and symbolic functionality and used in conjunction with the abstract data structures provided by Mathcad’s nested arrays, these ten operators enable you to write sophisticated programs in Mathcad. The…

Read More →

Programs within programs

The examples in previous sections have been chosen more for their simplicity than their power. This section shows some examples of more complicated programs capable of performing tasks that would be difficult if not impossible without the availability of these programming features. Much of the flexibility inherent in programming arises from the ability to embed programming structures inside one…

Read More →

Controlling program execution

The Programming Palette in Mathcad Professional includes three statements for controlling program execution: • Use the break statement within the body of the program to halt execution of the program upon the occurrence of a particular condition. Use break also within a for or while loop to stop the loop and move execution to the next statement outside the…

Read More →

Conditional statements

In general, Mathcad evaluates each statement in your program from the top down. There may be times, however, when you want Mathcad to evaluate a statement only when a particular condition is met. You can do this by including an if statement in your program. Note that the if statement in a Mathcad program is not the same…

Read More →

Programming

With Mathcad Professional, you can write your own programs using specialized programming operators. A Mathcad program has many attributes associated with programming languages including conditional branching, looping constructs, local scoping of variables, error handling, the ability to use other programs as subroutines, and the ability to call itself recursively. Mathcad programs make it easy to do tasks that…

Read More →

Limits to Symbolic Processing

As you work with the symbolic processor, you will undoubtedly discover two things: • many problems can only be solved numerically, and • many more problems yield such lengthy expressions that you’ll wish you had solved them numerically. For a computer, symbolic operations are, in general, much more difficult than the corresponding numerical operations. In fact, if…

Read More →

Using Functions and Variables

Mathcad’s symbolic processor does not treat functions and variables in exactly the same way as its numerical processor. These differences revolve around the answers to the following question: • Does the symbolic processor “know” that a function or variable is defined elsewhere? The answer to this depends on two things: • Is the function or variable built-in…

Read More →

Symbolic Optimization

In general, Mathcad’s symbolic processor and Mathcad’s numerical processor don’t communicate with one another. Because of this, it’s possible to set up a complicated numerical calculation without knowing that you could have reduced it to an equivalent but much simpler problem by judicious use of the symbolic processor. You can, however, make the numerical processor ask the symbolic…

Read More →

Back to Top