Добавил:
kostikboritski@gmail.com Выполнение курсовых, РГР технических предметов Механического факультета. Так же чертежи по инженерной графике для МФ, УПП. Писать на почту. Дипломы по кафедре Вагоны Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
39
Добавлен:
12.08.2017
Размер:
2.3 Mб
Скачать

Examples of Symbolic Calculation / 153

Mathcad inserts the result to the right of the “.” Note that if the variable was squared in the original equation, you may get two results back, displayed in a vector.

Figure 13-10 shows an example.

Figure 13-10: Solving equations and finding roots. You don’t need to set the expression equal to 0 when finding roots.

Tip Another way to solve for a variable is to click on the variable you want to solve for and choose

Variable > Solve from the Symbolics menu.

Solving a System of Equations Symbolically: “Solve” Keyword

One way to symbolically solve a system of equations is to use the same solve keyword used to solve one equation in one unknown. To solve a system of n equations for n unknowns:

1.Type [Ctrl] M to create a vector having n rows and 1 column.

2.Fill in each placeholder of the vector with one of the n equations making up the system. Make sure you type [Ctrl] [=] to enter the Boolean equal sign.

3.Type [Ctrl] [Shift] [.] (period).

4.Type solve followed by a comma in the placeholder to the left of the symbolic equal sign, “.”

5.Type [Ctrl] M to create a vector having n rows and 1 column. Then enter the variables you are solving for.

6.Press [Enter].

Mathcad displays the n solutions to the system of equations to the right of the symbolic equal sign. Figure 13-11 shows an example.

154 / Chapter 13 Symbolic Calculation

Use the solve keyword by pressing [Ctrl] [Shift] [.] (period)

Using a solve block. (Use [Ctrl] [=] to type the equal sign.)

Figure 13-11: Two methods for solving a system of equations symbolically.

Solving a System of Equations Symbolically: Solve Block

Another way to solve a system of equations symbolically is to use a solve block, similar to numeric solve blocks:

1.Type the word Given in a math region, stating that what follows is a system of equations. You can type Given in any combination of upperand lowercase letters and in any font.

2.Enter the equations below the word Given. Make sure to type [Ctrl] [=] for the Boolean equal sign.

3.Enter the Find function with arguments appropriate for your system of equations. This function is described in “Linear/Nonlinear System Solving and Optimization” on page 104.

4.Press [Ctrl] [.] (period). Mathcad displays the symbolic equal sign, “.”

5.Press [Enter].

Mathcad displays the solutions to the system of equations to the right of the symbolic equal sign. Figure 13-11 shows an example.

Most of the guidelines for numeric solve blocks described earlier apply to the symbolic solution of systems of equations. The main difference is that when you solve equations symbolically, you do not enter guess values for the solutions.

Symbolic Matrix Manipulation

You can use Mathcad to find the symbolic transpose, inverse, or determinant of a matrix using a built-in operator and the symbolic equal sign. To find the transpose of a matrix, for example:

1.Place the entire matrix between the two editing lines by clicking [Space] one or more times.

2.Press [Ctrl] 1 to insert the matrix transpose operator.

Examples of Symbolic Calculation / 155

3.Press [Ctrl] [.] (period) for the symbolic equal sign, “→.

4.Press [Enter].

Mathcad returns the result to the right of the “→.” Figure 13-12 shows some examples.

Figure 13-12: Symbolic matrix operations: transposing a matrix, finding the inverse, and finding the determinant.

You can also find the transpose, inverse, or determinant of a matrix by using the Matrix commands on the Symbolics menu.

Соседние файлы в папке doc