LaTeX - Practice 7-15-10

• Jul 15th 2010, 08:23 PM
DeanSchlarbaum
LaTeX - Practice 7-15-10

de Moivre's Theorem --

$\displaystyle z = r(cos{\theta} + i sin{\theta})$

$\displaystyle z^2 = r\cdot{r}(cos(\theta + \theta) + i sin(\theta + \theta))$

$\displaystyle z^2 = r^2(cos 2{\theta} + i sin 2{\theta})$

$\displaystyle z^3 = r^3(cos 3{\theta} + i sin 3{\theta})$

$\displaystyle z^4 = r^4(cos 4{\theta} + i sin 4{\theta})$

$\displaystyle z^n = r^n(cos n{\theta} + i sin n{\theta})$

Question: What is the method for inserting spaces between items?
• Jul 15th 2010, 09:10 PM
pickslides
$\displaystyle z^n= r^n(\cos n\theta+ i \sin n\theta)$

Trig functions look better like this, double click to see my code.

Leave a space... you can use '~'

$\displaystyle \int f(x)~dx$
• Jul 15th 2010, 11:37 PM
Opalg
Quote:

Originally Posted by DeanSchlarbaum
Question: What is the method for inserting spaces between items?

TeX has four types of spaces available in math mode. They are \, (thin space), \: (medium space), \; (thick space) and \! (thin negative space). In practice, there are not many occasions when you need to use these spacings. The spacing provided automatically by TeX is usually optimal. The only times when I use manual spacing are in integrals and in modular arithmetic.

Compare $\displaystyle \displaystyle \int f(x)dx$ and $\displaystyle \displaystyle \int \!\! f(x) \, dx$. Also $\displaystyle x \equiv 1\pmod{p}$ and $\displaystyle x \equiv 1 \!\! \pmod{p}$.
• Jul 16th 2010, 04:54 AM
Soroban
Hello, DeanSchlarbaum!

Quote:

DeMoivre's Theorem --

$\displaystyle z = r(cos{\theta} + i sin{\theta})$

$\displaystyle z^2 = r\cdot{r}(cos(\theta + \theta) + i sin(\theta + \theta))$

$\displaystyle z^2 = r^2(cos 2{\theta} + i sin 2{\theta})$

$\displaystyle z^3 = r^3(cos 3{\theta} + i sin 3{\theta})$

Question: What is the method for inserting spaces between items?

Trig functions (and others) look "nicer" if you precede them with a blackslash.

. . Compare: . $\displaystyle \begin{array}{cc} sin x & \sin x \\ cos x & \cos x \\ ln x ^& \ln x \\ arcsin x & \arcsin x \end{array}$

There are different-sized spaces that can be used:

. . . . . *\,* . . . . . . . . . . . $\displaystyle *\,*$

. . . . . *\:* . . . . . . . . . . . $\displaystyle *\:*$

. . . . . *\;* . . . . . . . . . . . $\displaystyle *\;*$

. . . *\quad* . . . . . . . . . .$\displaystyle *\quad*$

. . . *\qquad* . . . . . . . . $\displaystyle *\qquad*$

\phantom{xxxxxxx} . . $\displaystyle *\phantom{xxxxxxx}*$