| 1 |
% f1aula05.mp |
| 2 |
% L. Nobre G. |
| 3 |
% 2007 |
| 4 |
|
| 5 |
verbatimtex |
| 6 |
\documentclass{beamer} |
| 7 |
\usepackage{amsmath,amssymb} |
| 8 |
\usepackage[squaren]{SIunits} |
| 9 |
\usepackage[latin1]{inputenc} |
| 10 |
\usepackage[portuges]{babel} |
| 11 |
\newcommand{\veri}{\ensuremath{\hat{\text{i}}}} |
| 12 |
\newcommand{\verj}{\ensuremath{\hat{\text{j}}}} |
| 13 |
\newcommand{\verk}{\ensuremath{\hat{\text{k}}}} |
| 14 |
\newcommand{\veru}{\ensuremath{\hat{\text{u}}}} |
| 15 |
\newcommand{\emf}{\ensuremath{\mathcal{E}}} |
| 16 |
\newcommand{\vecnorm}[1]{\left|\left|\vec{#1}\right|\right|} |
| 17 |
\renewcommand{\arraystretch}{1.45} |
| 18 |
\begin{document} |
| 19 |
\frame{ |
| 20 |
etex |
| 21 |
|
| 22 |
ahangle := 29; |
| 23 |
ahlength := 4.7mm; |
| 24 |
labeloffset := 3.5mm; |
| 25 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% {} [] |
| 26 |
beginfig(1); |
| 27 |
pen basepen, vecpen; |
| 28 |
basepen = pencircle scaled 0.5mm; |
| 29 |
vecpen = pencircle scaled 1.15mm; |
| 30 |
numeric ray, lscale, ang, stepang, rang, actang; |
| 31 |
ray = 5cm; |
| 32 |
lscale = 2.5; |
| 33 |
rang = -9; |
| 34 |
stepang = 18; |
| 35 |
path thearc; |
| 36 |
thearc = halfcircle scaled 2ray rotated rang; |
| 37 |
for ang=0 step stepang until 180+rang: |
| 38 |
drawarrow origin--(ray*dir(ang)) withpen vecpen; |
| 39 |
actang := ang; |
| 40 |
endfor; |
| 41 |
draw thearc withpen basepen withcolor red; |
| 42 |
label.llft( btex $\vec{r}$ etex scaled lscale, 0.5*ray*dir(actang) ); |
| 43 |
for ang=0 step stepang until 180+rang: |
| 44 |
drawarrow (ray,0)--(ray*dir(ang)) withpen vecpen withcolor blue; |
| 45 |
endfor; |
| 46 |
label.bot( btex $\vec{r}_0$ etex scaled lscale, (0.5ray,0) ); |
| 47 |
picture colabel; |
| 48 |
colabel = thelabel.urt( |
| 49 |
btex $\Delta\vec{r}\rightarrow d\vec{r}\parallel\vec{v}\perp\vec{r}_0$ etex |
| 50 |
scaled lscale, (ray,0) ); |
| 51 |
draw colabel withcolor blue; |
| 52 |
endfig; |
| 53 |
|
| 54 |
beginfig(2); |
| 55 |
pen basepen, vecpen; |
| 56 |
basepen = pencircle scaled 0.5mm; |
| 57 |
vecpen = pencircle scaled 1.15mm; |
| 58 |
numeric ray, lscale, ang, stepang, rang, actang, fac; |
| 59 |
ray = 5cm; |
| 60 |
lscale = 2.5; |
| 61 |
rang = -9; |
| 62 |
stepang = 18; |
| 63 |
fac = 0.7; |
| 64 |
path thearc, actv; |
| 65 |
thearc = halfcircle scaled 2ray rotated rang; |
| 66 |
for ang=0 step stepang until 180+rang: |
| 67 |
drawarrow (ray,0)--((ray,0)+fac*ray*dir(ang+90)) withpen vecpen |
| 68 |
withcolor green; |
| 69 |
actv := ((ray*dir(ang))--(ray*(dir(ang)+fac*dir(ang+90)))); |
| 70 |
drawarrow actv withpen basepen; |
| 71 |
actang := ang; |
| 72 |
endfor; |
| 73 |
draw thearc withpen basepen withcolor red; |
| 74 |
label.lrt( btex $\vec{v}$ etex scaled lscale, point 0.5 of actv ); |
| 75 |
for ang=0 step stepang until 180+rang: |
| 76 |
drawarrow (ray,fac*ray)--((ray,0)+fac*ray*dir(ang+90)) withpen vecpen |
| 77 |
withcolor blue; |
| 78 |
endfor; |
| 79 |
label.rt( btex $\vec{v}_0$ etex scaled lscale, (ray,0.5*fac*ray) ); |
| 80 |
picture colabel, relabel; |
| 81 |
colabel = thelabel.rt( |
| 82 |
btex $\Delta\vec{v}\rightarrow d\vec{v}\parallel\vec{a}\perp\vec{v}_0$ etex |
| 83 |
scaled lscale, (ray,fac*ray) ); |
| 84 |
draw colabel withcolor blue; |
| 85 |
% drawarrow ((0,fac*ray)--(fac*ray*dir(stepang+90))) shifted (ray,-fac*ray) |
| 86 |
% withpen vecpen withcolor blue+green; |
| 87 |
% relabel = thelabel.rt( |
| 88 |
% btex $\Delta\vec{v}\parallel\vec{a}$ etex scaled lscale, (ray,0) ); |
| 89 |
% draw relabel withcolor blue+green; |
| 90 |
endfig; |
| 91 |
|
| 92 |
|
| 93 |
verbatimtex |
| 94 |
} |
| 95 |
\end{document} |
| 96 |
etex |
| 97 |
|
| 98 |
end. |