Студопедия
Случайная страница | ТОМ-1 | ТОМ-2 | ТОМ-3
АвтомобилиАстрономияБиологияГеографияДом и садДругие языкиДругоеИнформатика
ИсторияКультураЛитератураЛогикаМатематикаМедицинаМеталлургияМеханика
ОбразованиеОхрана трудаПедагогикаПолитикаПравоПсихологияРелигияРиторика
СоциологияСпортСтроительствоТехнологияТуризмФизикаФилософияФинансы
ХимияЧерчениеЭкологияЭкономикаЭлектроника

Creating a vector or matrix

Читайте также:
  1. Calculations in Calc. Creating and Coping Formulas
  2. Creating a master-detail form
  3. Creating an Example Diagram
  4. CREATING COMPETENT COMMUNICATION PLANS
  5. Creating Connectors with Oblique Segments
  6. Creating Connectors with Oblique Segments

To create a vector or matrix in Mathcad, follow these steps:

1. Choose Matrix from the Insert menu or click on the Matrix toolbar. The dialog box shown on the

right appears.

2. Enter a number of rows and a number of columns in the appropriate boxes. In this example, there are two

rows and three columns. Then click “OK.” Mathcad inserts a matrix of placeholders.

3. Fill in the placeholders to complete the matrix. Press [ Tab ] to move from placeholder to placeholder. You can use this matrix in equations, just as you would a number.

Defining and Evaluating Functions

You define a function in much the same way you define a variable. The name goes on the left, a definition symbol goes in the middle, and an expression goes on the right.

The main difference is that the name includes an argument list. The example below shows how to define a function called dist (x, y) that returns the distance between the point (x, y) and the origin.

To type such a function definition:

1. Type the function name.

2. Type a left parenthesis followed by one or more names separated by commas. Complete this argument list by typing a right parenthesis.

- Press the colon (:) key, or click on the Calculator toolbar. You see the definition symbol (:=).

- Type an expression to define the function. In this example, the expression involves only the names in the argument list. In general though, the expression can contain any previously defined functions and variables as well.

Once you have defined a function, you can use it anywhere below and to the right of the definition, just as you would use a variable.

 

Formatting Results

The way that Mathcad displays numbers (the number of decimal places, whether to use i or j for imaginary numbers, and so on) is called the result format. You can set the result format for a single calculated result or for an entire worksheet.


Дата добавления: 2015-10-26; просмотров: 155 | Нарушение авторских прав


Читайте в этой же книге: Work with Project Manager | Laboratory work № 1.2 | Лабораторная работа № 2 | A Simple Calculation | Playing a Previously Saved Animation | Exercise 3. To display on a screen the value of system constantpand to set the maximal format of her displaying locally. | Finding Roots | Linear/ Nonlinear System Solving Solve Blocks | Symbolic calculations. | PART I. USING THE OPTION ADD TRENDLINE |
<== предыдущая страница | следующая страница ==>
Defining a Function| Setting the format of a single result

mybiblioteka.su - 2015-2024 год. (0.005 сек.)