4.2 - Figur - Enhetscirkeln med vinkeln -40° och linjen med riktningskoefficient tan -40°
Förberedande kurs i matematik 1
(Skillnad mellan versioner)
Rad 101: | Rad 101: | ||
drawarrow (0,-Ly_lwr)--(0,Ly_upr); | drawarrow (0,-Ly_lwr)--(0,Ly_upr); | ||
label.top(btex \small\strut $y$ etex, (0,Ly_upr)); | label.top(btex \small\strut $y$ etex, (0,Ly_upr)); | ||
+ | |||
+ | % Angle label | ||
+ | r := 1.2; | ||
+ | picture p_label; | ||
+ | p_label := thelabel.lrt(btex $-40^{\circ}$ etex, origin); | ||
+ | p_label := p_label scaled 0.7 shifted (1.2*r*dx*(dir -5)+(-2pt,0)); | ||
% The circle | % The circle | ||
Rad 111: | Rad 117: | ||
..cycle; | ..cycle; | ||
pickup pencircle scaled 0.6pt; | pickup pencircle scaled 0.6pt; | ||
- | draw p_circle withcolor lightblue; | + | s := xpart (p_circle intersectiontimes subpath(0,1) of bbox p_label); |
+ | t := xpart (p_circle intersectiontimes subpath(2,3) of bbox p_label); | ||
+ | draw subpath(0,s) of p_circle withcolor lightblue; | ||
+ | draw subpath(s,t) of p_circle withcolor backgroundblue; | ||
+ | draw subpath(t,length p_circle) of p_circle withcolor lightblue; | ||
% The dashed line | % The dashed line | ||
Rad 119: | Rad 129: | ||
draw 2.5pt*(dir (-40+180))--Lx_lft*(dir (-40+180)) | draw 2.5pt*(dir (-40+180))--Lx_lft*(dir (-40+180)) | ||
dashed evenly scaled 0.5; | dashed evenly scaled 0.5; | ||
- | picture p_label; | + | %picture p_label; |
- | p_label := thelabel.bot(btex lutning etex, origin); | + | %p_label := thelabel.bot(btex lutning etex, origin); |
%draw p_label scaled 0.7 shifted ((R+5pt/dx)*dx*(dir -40)+(5pt,-3pt)); | %draw p_label scaled 0.7 shifted ((R+5pt/dx)*dx*(dir -40)+(5pt,-3pt)); | ||
- | p_label := thelabel.bot(btex ${}=\tan (-40^{\circ})$ etex, origin); | + | %p_label := thelabel.bot(btex ${}=\tan (-40^{\circ})$ etex, origin); |
%draw p_label scaled 0.7 shifted ((R+5pt/dx)*dx*(dir -40)+(-1pt,-10pt)); | %draw p_label scaled 0.7 shifted ((R+5pt/dx)*dx*(dir -40)+(-1pt,-10pt)); | ||
Rad 143: | Rad 153: | ||
drawarrow endshy p_angle; | drawarrow endshy p_angle; | ||
- | + | draw p_label; | |
- | + | ||
- | draw p_label | + | |
% The point on the circle | % The point on the circle |
Nuvarande version
Detta är en figur som används i teoriavsnitt 4.2 och är ritad i språket Metapost. Du kan redigera bilden genom att klicka på redigera-fliken.