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

Chapter 4

Working with Math

Inserting Math

Building Expressions

Editing Expressions

Math Styles

Inserting Math

You can place math expressions anywhere you want in a Mathcad worksheet.

1. Click to place the crosshair.

2.Type numbers, letters, and math operators, or insert them by clicking buttons on Mathcad’s math toolbars, to create a math region.

Mathcad by default understands anything you type at the crosshair cursor as math. If you want to create a text region instead, see Chapter 6, “Working with Text.”

You can also type math expressions in any math placeholder that appears.

Numbers and Complex Numbers

A single number in Mathcad is called a scalar. To enter groups of numbers in arrays, see “Inserting an Operator” on page 26.

Types of Numbers

Anything beginning with a digit is interpreted as a number by Mathcad. As a general rule, you enter numbers by simply typing the digits from the keyboard, using a period as the decimal point.

Note When you enter numbers greater than 999, do not use either a comma or a period to separate digits into groups of three. Simply type the digits one after another. For example, to enter ten thousand, type 10000.

Imaginary and Complex Numbers

To enter an imaginary number, follow it with i or j, as in 1i or 2.5j.

Note You cannot use i or j alone to represent the imaginary unit. You must always type 1i or 1j. Otherwise, Mathcad thinks you are referring to a variable named either i or j. When the cursor is outside an equation that contains 1i or 1j, however, Mathcad hides the 1.

Mathcad normally displays imaginary numbers followed by i. To have Mathcad display imaginary numbers with j, choose Result from the Format menu, click on the Display Options tab, and set “Imaginary value” to j(J).” See “Formatting Results” on page 93 for a full description.

25

26 / Chapter 4 Working with Math

Mathcad accepts complex numbers of the form a + bi (or a + bj), where a and b are ordinary numbers.

Exponential Notation

To enter very large or very small numbers in exponential notation, just multiply a number by a power of 10. For example, to represent the number 3 108 , type 3*10^8.

Greek Letters

There are two ways to enter a Greek letter:

 

 

• Click the letter on the Greek toolbar. Click

 

on the Math toolbar or choose

 

Toolbars > Greek from the View menu.

 

 

 

 

Type the Roman equivalent of the Greek symbol and then press [Ctrl] G. For example, to enter φ, press f [Ctrl] G.

Note Although many uppercase Greek letters look like ordinary capital letters, they are not the same. Mathcad distinguishes between Greek and Roman letters, even if they appear the same.

Tip The Greek letter π can also be typed by pressing [Ctrl] [Shift] P.

Inserting an Operator

Operators are symbols like “+” and “” that link variables and numbers together to form expressions. The variables and numbers linked together by operators are called operands. For example, in an expression like:

ax + y

the operands for the “+” are x and y.

You can use standard keystrokes like [*] and [+] to insert operators or insert operators from the math toolbars. For example, you can insert a derivative operator by clicking

on the Calculus toolbar or by typing [?]. Choose Toolbars from the View menu to open the math toolbars. Online Help contains a complete listing of operators, their keystrokes, and descriptions.

Tip You can find the keyboard shortcut for an operator by hovering the mouse pointer over a button in a math toolbar and reading the tooltip.

When you insert a Mathcad operator into a blank space, a mathematical symbol with empty placeholders appears. You must enter a valid math expression in each placeholder of an operator in order to calculate a result.

Here is a simple example:

1. Click in a blank space and click

 

on the Calculator toolbar or

simply type [+]. The addition operator with two placeholders appears.

2. Enter 2 in the first placeholder.

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