Arithmetic operations

7.4.1 Arithmetic operations

The arithmetic operations are typed pretty much as you would expect. To get a + b,

a − b, −a, a/b, and ab, type $a + b$, $a - b$, $-a$, $a / b$, $a b$

158 Chapter 7 Typing math

There are two other forms of multiplication and one of division: a · b, a × b, and

a ÷ b. They are typed as follows: $a \cdot b$, $a \times b$, $a \div b$ In displayed formulas, fractions are usually typed with the \frac command. To

\frac{1 + 2x}{x + y + xy} \]

You can use display-style fractions inline with \dfrac, and inline-style frac- 3+a 2

tions in displayed math environments with \tfrac; for example, is typed as 4+b $\dfrac{3 + a^{2}}{4 + b}$ and

3+a 2 4+b

is typed as \[

\tfrac{3 + a^{2}}{4 + b} \]

The \dfrac command is often used in matrices whose entries would look too small with the \frac command. See Formula 20 in the Formula Gallery (Section 7.9) for an example, and Section 8.6.1 for other fraction variants.

Subscripts and superscripts Subscripts are typed with _ and superscripts with ^. Remember to enclose the sub-

scripted or superscripted expression in braces: \[

a_{1},\ a_{i_{1}},\ a^{2},\ a^{b^{c}},\ a^{i_{1}},\ a_{i} + 1,\ a_{i + 1},\ a_{1}^{2},\ a^{2}_{1}

\] typesets as

1 ,a 2 1 For a b c , type $a^{b^{c}}$, not $a^{b}^{c}$. If you type the latter, you get the error message

2 b a c 1 ,a i 1 ,a ,a ,a i 1 ,a i + 1, a i+1 ,a 2

7.4 Basic constructs 159

! Double superscript.

Similarly, a b c is typed as $a_{b_{c}}$, not as $a_{b}_{c}$. In many instances, the braces for the subscripts and superscripts could be omitted, but you should type them anyway.

Tip You may safely omit the braces for a subscript or superscript that is a single digit or letter, as in $a_1$ and $(a + b)^x$, which are typeset as a 1 and (a + b) x . Be careful, however. If you have to edit $a_1$ to make it a 12 , then the braces can no longer be omitted, you must type $a_{12}$ to obtain a 12 because $a_12$ typesets as a 1 2.

There is one symbol that is automatically superscripted in math mode, the prime, that is, ’. To get f ′ (x), type $f’(x)$. However, to get f ′2 you must type

$f^{\prime 2}$ Typing ${f’}^{2}$ results in f ′2 , with the 2 too high; typing it as $f’^{2}$ causes

a double superscript error. Sometimes you may want a symbol to appear superscripted or subscripted by itself, as in the phrase

use the symbol † to indicate the dualspace typed as

use the symbol ${}^{\dagger}$ to indicate the dualspace where { } is the empty group. The empty group can be used to separate symbols, to

terminate commands, or as the base for subscripting and superscripting. The \sb and \sp commands also typeset subscripts and superscripts, respectively, as in

$a\sb{1} - a\sp{x + y}$ which produces a 1 −a x+y . These commands are seldom used, however, except in the

alltt environment (see Section 12.3) and in the Mathematical Reviews of the AMS. For multiline subscripts and superscripts, see Section 7.6.5.

Dokumen yang terkait

c. Bridging Teknik memanjat pada celah vertikal yang lebih besar (gullies). Caranya dengan menggunakan kedua tangan dan kaki sebagai pegangan pada kedua celah tersebut. Posisi badan mengangkang kaki sebagai tumpuan dibantu juga tangan sebagai penjaga kese

0 1 10

2. Marah: adalah kunci setiap kejahatan. Nabi saw. telah berpesan pada seseorang untuk menjauhi sikap marah dengan sabda beliau: "Janganlah engkau marah". Beliau mengulanginya berkali-kali. (H.R Bukhari). - Kebersihan Hati

2 5 14

Object Oriented Programming dengan Delphi (

1 4 75

E volusi dan aplikasi sistem informasi berbasis komputer

1 8 18

b. Data Manipulation Language (DML) : Digunakan untuk memanipulasi data dengan menggunakan perintah : select, - SISTEM BASIS DATA 1.rar (7,386Kb)

1 3 15

Hubungan Pola Asuh Orang Tua dan Kesiapan Psikologis Anak dengan Kebersihan Toilet Traning pada Anak Usia Prasekolah di Paud Ab-Arisalah Kota Lubuklinggau

0 1 8

Hubungan Pengetahuan dsn Sikap dengan Tindakan Hygiene Penjual makanan Jajanan di Lingkungan Sekolah Dasar Kaamatan Baturaja Timur Kabupaten Ogan Komering UIU Tahun 2013 A. Gani

1 3 14

Faktor faktor yang berhubungan dengan manfaatan Posyandu lansia oleh kelompok usia lanjut didesa Kemalara dalam wilayah kerja Puskesmas Kemalaraja OKU Tahun 2013. Saprianto, M.Kes

3 3 21

Korelasi umur, pekerjaan, dan keberadaan kontainer dengan kejadian penyakit malaria di desa simpang Martapura wilayah Kabupaten Ogan Komering Ulu Selatan tahun 2014 – A. Gani

0 0 18

Pengaruh Ekstrak Daun Jambu Biji (Psidiu Guajava Linn) dan Ekstrak daun Teh Hijau (Camelia Sinensis) terhadap Pertumbuhan Escherichia Coli In Vitro dan Perbandingannya dengan Kotrimoksazol

2 16 20