2.2 - Figur - Områdena 3x + 2y ≥ 2 och 3x + 2y ≤ 4
Förberedande kurs i matematik 1
(Skillnad mellan versioner)
(Ny sida: <noinclude>Detta är en figur som används i teoriavsnitt 2.2 och är ritad i språket [http://en.wikipedia.org/wiki/Metapost Metapost]. Du kan redigera bilden geno...) |
(Fixat till felaktig lutning (som uppstod p.g.a. dx istället för 2dx på några ställen)) |
||
Rad 90: | Rad 90: | ||
vardef solve_x(expr y) = (2/3)*(1-y/(2dy)) enddef; | vardef solve_x(expr y) = (2/3)*(1-y/(2dy)) enddef; | ||
vardef solve_y(expr x) = 1-(3/2)*(x/(2dx)) enddef; | vardef solve_y(expr x) = 1-(3/2)*(x/(2dx)) enddef; | ||
- | p_solid := (wiggle (solve_x(-Ly_lwr+2bp/sqrt(2))* | + | p_solid := (wiggle (solve_x(-Ly_lwr+2bp/sqrt(2))*2dx,-Ly_lwr+2bp/sqrt(2)) |
-- (Lx_rt-2bp,-Ly_lwr+2bp/sqrt(2))) | -- (Lx_rt-2bp,-Ly_lwr+2bp/sqrt(2))) | ||
& (wiggle (Lx_rt-2bp,-Ly_lwr+2bp/sqrt(2)) | & (wiggle (Lx_rt-2bp,-Ly_lwr+2bp/sqrt(2)) | ||
-- (Lx_rt-2bp,Ly_upr-2bp/sqrt(2))) | -- (Lx_rt-2bp,Ly_upr-2bp/sqrt(2))) | ||
& (wiggle (Lx_rt-2bp,Ly_upr-2bp/sqrt(2)) | & (wiggle (Lx_rt-2bp,Ly_upr-2bp/sqrt(2)) | ||
- | -- (solve_x(Ly_upr-2bp/sqrt(2))* | + | -- (solve_x(Ly_upr-2bp/sqrt(2))*2dx,Ly_upr-2bp/sqrt(2))) |
--cycle; | --cycle; | ||
pickup nullpen; | pickup nullpen; | ||
Rad 147: | Rad 147: | ||
% The straight line | % The straight line | ||
path p_line; | path p_line; | ||
- | p_line := (solve_x(-Ly_lwr)* | + | p_line := (solve_x(-Ly_lwr)*2dx,-Ly_lwr) |
- | --(solve_x(Ly_upr)* | + | --(solve_x(Ly_upr)*2dx,Ly_upr); |
drawoptions(withcolor lightblue withpen pencircle scaled 0.6pt); | drawoptions(withcolor lightblue withpen pencircle scaled 0.6pt); | ||
linecap:=butt; | linecap:=butt; | ||
Rad 164: | Rad 164: | ||
vardef solve_x(expr y) = 4/3-(2/3)*y/(2dy) enddef; | vardef solve_x(expr y) = 4/3-(2/3)*y/(2dy) enddef; | ||
vardef solve_y(expr x) = 2-(3/2)*(x/(2dx)) enddef; | vardef solve_y(expr x) = 2-(3/2)*(x/(2dx)) enddef; | ||
- | p_solid := (wiggle (solve_x(-Ly_lwr+2bp/sqrt(2))* | + | p_solid := (wiggle (solve_x(-Ly_lwr+2bp/sqrt(2))*2dx,-Ly_lwr+2bp/sqrt(2)) |
-- (-Lx_lft+2bp,-Ly_lwr+2bp/sqrt(2))) | -- (-Lx_lft+2bp,-Ly_lwr+2bp/sqrt(2))) | ||
& (wiggle (-Lx_lft+2bp,-Ly_lwr+2bp/sqrt(2)) | & (wiggle (-Lx_lft+2bp,-Ly_lwr+2bp/sqrt(2)) | ||
-- (-Lx_lft+2bp,Ly_upr-2bp/sqrt(2))) | -- (-Lx_lft+2bp,Ly_upr-2bp/sqrt(2))) | ||
& (wiggle (-Lx_lft+2bp,Ly_upr-2bp/sqrt(2)) | & (wiggle (-Lx_lft+2bp,Ly_upr-2bp/sqrt(2)) | ||
- | -- (solve_x(Ly_upr-2bp/sqrt(2))* | + | -- (solve_x(Ly_upr-2bp/sqrt(2))*2dx,Ly_upr-2bp/sqrt(2))) |
--cycle; | --cycle; | ||
pickup nullpen; | pickup nullpen; | ||
Rad 221: | Rad 221: | ||
% The straight line | % The straight line | ||
path p_line; | path p_line; | ||
- | p_line := (solve_x(-Ly_lwr)* | + | p_line := (solve_x(-Ly_lwr)*2dx,-Ly_lwr) |
- | --(solve_x(Ly_upr)* | + | --(solve_x(Ly_upr)*2dx,Ly_upr); |
drawoptions(withcolor lightblue withpen pencircle scaled 0.6pt); | drawoptions(withcolor lightblue withpen pencircle scaled 0.6pt); | ||
linecap:=butt; | linecap:=butt; |
Nuvarande version
Detta är en figur som används i teoriavsnitt 2.2 och är ritad i språket Metapost. Du kan redigera bilden genom att klicka på redigera-fliken.