Mathcad Solve Block |
A "Solve Block" refers to a group of Mathcad commands used to solve a system of linear, differential or partial differential equations, an optimization problem, or a linear programming problem. Solve blocks allow you to set up these problems in natural math notation, so the constraints, functions, and initial values are easier to identify, both for you, and for someone else reading your document. The steps for these kinds of solving differ slightly, but each Solve Block involves the keyword Given, a set of constraints, a set of equations, and a solving function.
Parts of a solve block:
A set of equations and/or inequalities representing the constraints. Use the following operators to create these constraints:
These operators are available on the Boolean toolbar.
A solving function:
| Solving methods and algorithms |
Solve blocks can be solved either numerically, or, in the case of Find, symbolically. Symbolic evaluation is not available for differential equations or max/min problems. System solving and optimization functions can use a variety of algorithms, depending on the class of problem in the solve block. There are also several ordinary differential equation and partial differential equation algorithms.
Solve blocks first evaluate their constraints using the guess values to check for errors and determine the domain of the solution. This can dictate whether real or complex solutions are returned. If the problem is treated as real and complex results are encountered during the solution then absolute values are taken. If the type is complex, then complex results are carried out as is.
As with all numerical solution techniques, nonlinear problems are highly sensitive to guess values. The notes on choosing and modifying guess values for the root function apply here as well.
| Solve Block restrictions |
Solve blocks should not contain the following:
Note that when solving equations numerically, other definitions may be necessary before using a Solve Block: