Big Chemical Encyclopedia

Chemical substances, components, reactions, process design ...

Articles Figures Tables About

Arithmetic operations MATLAB

Once in the ALATLAB environment, you can assign values to a variable or define the elements of a matrix. For example, as shown in F%ure 15.2, to ass a value of 5 to the variable X, in the Command Window after the prompt sign you simply type x = 5. The basic MATLAB scalar (arithmetic) operations are shown in Table 15.1. [Pg.421]

As we have said before, en eers use formulas that represent physical and chemical laws governing our surroundings to analyze various problems. You can use MATLAB to input engineering formulas and compute the results. When typing your formula, use parentheses to dictate the order of operation. For example, in MATLAB s Command Window, if you were to type count=100+5 2, MATLAB will perform the muldplication first, which results in a value of 10, and then this result is added to 100, which yields an overall value of 110 for the variable count. If, however, you wanted MATLAB to add the 100 to 5 fiist and then multiply the resulting 105 by 2, you should have placed parentheses around the 100 and 5 in the following manner count=(100+5) 2, which results in a value of 210. The basic MATLAB arithmetic operations are shown in Table 15.3. [Pg.425]

Emphasis in Chapter 3 is placed on elementary methods, mostly used in arithmetic operations. Basic applications with many examples are presented, using MATLAB and Excel. We may call this is the fundamental part in numerical analysis. [Pg.33]

The four elementary arithmetic operations in MATLAB are done by the operators +,, ... [Pg.532]

Almost all operations in MATLAB are performed in double-precision arithmetic conforming to IEEE Standard 754 (double precision calls for 52 mantissa bits). This represents the highest degree of resolution by which MATLAB can see two very close numbers as two different entities. The following examples illustrate the concept of floating point-related computational problems. [Pg.87]


See other pages where Arithmetic operations MATLAB is mentioned: [Pg.425]    [Pg.425]    [Pg.47]    [Pg.73]    [Pg.425]    [Pg.18]    [Pg.74]   
See also in sourсe #XX -- [ Pg.421 , Pg.425 ]




SEARCH



Arithmetic

Arithmetic operations

Arithmetic operator

MATLAB

MATLAB arithmetic operators

MATLAB arithmetic operators

© 2024 chempedia.info