diff --git a/assets/a-2/exp1-result.dat b/assets/a-2/exp1-result.dat new file mode 100644 index 0000000..00e3226 --- /dev/null +++ b/assets/a-2/exp1-result.dat @@ -0,0 +1,3 @@ +3.003, 0.00303, 3.005, 0.00138, 3.003, 0.00092 +6.007, 0.00607, 6.004, 0.00276, 6.008, 0.00184 +9.004, 0.00911, 9.003, 0.00414, 9.003, 0.00276 diff --git a/assets/a-2/exp1-theory.dat b/assets/a-2/exp1-theory.dat new file mode 100644 index 0000000..4a0b391 --- /dev/null +++ b/assets/a-2/exp1-theory.dat @@ -0,0 +1,4 @@ +3.000, 0.003000, 0.00285, 0.00315, 3.000, 0.001363, 0.001295, 0.001432, 3.000, 0.0009090, 0.0008636, 0.0009545 +6.000, 0.006000, 0.0057, 0.0063, 6.000, 0.002727, 0.002591, 0.002864, 6.000, 0.001818, 0.001727, 0.001909 +9.000, 0.009000, 0.008545, 0.00945, 9.000, 0.004090, 0.003886, 0.004295, 9.000, 0.002727, 0.002591, 0.002864 + diff --git a/assets/a-2/exp1.dat b/assets/a-2/exp1.dat deleted file mode 100644 index e49f9bd..0000000 --- a/assets/a-2/exp1.dat +++ /dev/null @@ -1,3 +0,0 @@ -3.003, 3.03m, 3.005, 1.38m, 3.003, 0.92m -6.007, 6.07m, 6.004, 2.76m, 6.008, 1.84m -9.004, 9.11m, 9.003, 4.14m, 9.003, 2.76m diff --git a/assets/a-2/exp1.eps b/assets/a-2/exp1.eps new file mode 100644 index 0000000..a52f157 --- /dev/null +++ b/assets/a-2/exp1.eps @@ -0,0 +1,1452 @@ +%!PS-Adobe-2.0 EPSF-2.0 +%%Title: exp1.tex +%%Creator: gnuplot 6.0 patchlevel 4 +%%CreationDate: Tue May 12 14:46:35 2026 +%%DocumentFonts: +%%BoundingBox: 50 50 503 333 +%%EndComments +%%BeginProlog +/gnudict 256 dict def +gnudict begin +% +% The following true/false flags may be edited by hand if desired. +% The unit line width and grayscale image gamma correction may also be changed. +% +/Color true def +/Blacktext true def +/Solid false def +/Dashlength 1 def +/Landscape false def +/Level1 false def +/Level3 false def +/Rounded false def +/ClipToBoundingBox false def +/SuppressPDFMark false def +/TransparentPatterns false def +/gnulinewidth 5.000 def +/userlinewidth gnulinewidth def +/Gamma 1.0 def +/BackgroundColor {-1.000 -1.000 -1.000} def +% +/vshift -80 def +/dl1 { + 10.0 Dashlength userlinewidth gnulinewidth div mul mul mul + Rounded { currentlinewidth 0.75 mul sub dup 0 le { pop 0.01 } if } if +} def +/dl2 { + 10.0 Dashlength userlinewidth gnulinewidth div mul mul mul + Rounded { currentlinewidth 0.75 mul add } if +} def +/hpt_ 31.5 def +/vpt_ 31.5 def +/hpt hpt_ def +/vpt vpt_ def +/doclip { + ClipToBoundingBox { + newpath 50 50 moveto 503 50 lineto 503 333 lineto 50 333 lineto closepath + clip + } if +} def +% +% Gnuplot Prolog Version 5.2 (Dec 2017) +% +%/SuppressPDFMark true def +% +/M {moveto} bind def +/L {lineto} bind def +/R {rmoveto} bind def +/V {rlineto} bind def +/N {newpath moveto} bind def +/Z {closepath} bind def +/C {setrgbcolor} bind def +/f {rlineto fill} bind def +/g {setgray} bind def +/Gshow {show} def % May be redefined later in the file to support UTF-8 +/vpt2 vpt 2 mul def +/hpt2 hpt 2 mul def +/Lshow {currentpoint stroke M 0 vshift R + Blacktext {gsave 0 setgray textshow grestore} {textshow} ifelse} def +/Rshow {currentpoint stroke M dup stringwidth pop neg vshift R + Blacktext {gsave 0 setgray textshow grestore} {textshow} ifelse} def +/Cshow {currentpoint stroke M dup stringwidth pop -2 div vshift R + Blacktext {gsave 0 setgray textshow grestore} {textshow} ifelse} def +/UP {dup vpt_ mul /vpt exch def hpt_ mul /hpt exch def + /hpt2 hpt 2 mul def /vpt2 vpt 2 mul def} def +/DL {Color {setrgbcolor Solid {pop []} if 0 setdash} + {pop pop pop 0 setgray Solid {pop []} if 0 setdash} ifelse} def +/BL {stroke userlinewidth 2 mul setlinewidth + Rounded {1 setlinejoin 1 setlinecap} if} def +/AL {stroke userlinewidth 2 div setlinewidth + Rounded {1 setlinejoin 1 setlinecap} if} def +/UL {dup gnulinewidth mul /userlinewidth exch def + dup 1 lt {pop 1} if 10 mul /udl exch def} def +/PL {stroke userlinewidth setlinewidth + Rounded {1 setlinejoin 1 setlinecap} if} def +3.8 setmiterlimit +% Classic Line colors (version 5.0) +/LCw {1 1 1} def +/LCb {0 0 0} def +/LCa {0 0 0} def +/LC0 {1 0 0} def +/LC1 {0 1 0} def +/LC2 {0 0 1} def +/LC3 {1 0 1} def +/LC4 {0 1 1} def +/LC5 {1 1 0} def +/LC6 {0 0 0} def +/LC7 {1 0.3 0} def +/LC8 {0.5 0.5 0.5} def +% Default dash patterns (version 5.0) +/LTB {BL [] LCb DL} def +/LTw {PL [] 1 setgray} def +/LTb {PL [] LCb DL} def +/LTa {AL [1 udl mul 2 udl mul] 0 setdash LCa setrgbcolor} def +/LT0 {PL [] LC0 DL} def +/LT1 {PL [2 dl1 3 dl2] LC1 DL} def +/LT2 {PL [1 dl1 1.5 dl2] LC2 DL} def +/LT3 {PL [6 dl1 2 dl2 1 dl1 2 dl2] LC3 DL} def +/LT4 {PL [1 dl1 2 dl2 6 dl1 2 dl2 1 dl1 2 dl2] LC4 DL} def +/LT5 {PL [4 dl1 2 dl2] LC5 DL} def +/LT6 {PL [1.5 dl1 1.5 dl2 1.5 dl1 1.5 dl2 1.5 dl1 6 dl2] LC6 DL} def +/LT7 {PL [3 dl1 3 dl2 1 dl1 3 dl2] LC7 DL} def +/LT8 {PL [2 dl1 2 dl2 2 dl1 6 dl2] LC8 DL} def +/SL {[] 0 setdash} def +/Pnt {stroke [] 0 setdash gsave 1 setlinecap M 0 0 V stroke grestore} def +/Dia {stroke [] 0 setdash 2 copy vpt add M + hpt neg vpt neg V hpt vpt neg V + hpt vpt V hpt neg vpt V closepath stroke + Pnt} def +/Pls {stroke [] 0 setdash vpt sub M 0 vpt2 V + currentpoint stroke M + hpt neg vpt neg R hpt2 0 V stroke + } def +/Box {stroke [] 0 setdash 2 copy exch hpt sub exch vpt add M + 0 vpt2 neg V hpt2 0 V 0 vpt2 V + hpt2 neg 0 V closepath stroke + Pnt} def +/Crs {stroke [] 0 setdash exch hpt sub exch vpt add M + hpt2 vpt2 neg V currentpoint stroke M + hpt2 neg 0 R hpt2 vpt2 V stroke} def +/TriU {stroke [] 0 setdash 2 copy vpt 1.12 mul add M + hpt neg vpt -1.62 mul V + hpt 2 mul 0 V + hpt neg vpt 1.62 mul V closepath stroke + Pnt} def +/Star {2 copy Pls Crs} def +/BoxF {stroke [] 0 setdash exch hpt sub exch vpt add M + 0 vpt2 neg V hpt2 0 V 0 vpt2 V + hpt2 neg 0 V closepath fill} def +/TriUF {stroke [] 0 setdash vpt 1.12 mul add M + hpt neg vpt -1.62 mul V + hpt 2 mul 0 V + hpt neg vpt 1.62 mul V closepath fill} def +/TriD {stroke [] 0 setdash 2 copy vpt 1.12 mul sub M + hpt neg vpt 1.62 mul V + hpt 2 mul 0 V + hpt neg vpt -1.62 mul V closepath stroke + Pnt} def +/TriDF {stroke [] 0 setdash vpt 1.12 mul sub M + hpt neg vpt 1.62 mul V + hpt 2 mul 0 V + hpt neg vpt -1.62 mul V closepath fill} def +/DiaF {stroke [] 0 setdash vpt add M + hpt neg vpt neg V hpt vpt neg V + hpt vpt V hpt neg vpt V closepath fill} def +/Pent {stroke [] 0 setdash 2 copy gsave + translate 0 hpt M 4 {72 rotate 0 hpt L} repeat + closepath stroke grestore Pnt} def +/PentF {stroke [] 0 setdash gsave + translate 0 hpt M 4 {72 rotate 0 hpt L} repeat + closepath fill grestore} def +/Circle {stroke [] 0 setdash 2 copy + hpt 0 360 arc stroke Pnt} def +/CircleF {stroke [] 0 setdash hpt 0 360 arc fill} def +/C0 {BL [] 0 setdash 2 copy moveto vpt 90 450 arc} bind def +/C1 {BL [] 0 setdash 2 copy moveto + 2 copy vpt 0 90 arc closepath fill + vpt 0 360 arc closepath} bind def +/C2 {BL [] 0 setdash 2 copy moveto + 2 copy vpt 90 180 arc closepath fill + vpt 0 360 arc closepath} bind def +/C3 {BL [] 0 setdash 2 copy moveto + 2 copy vpt 0 180 arc closepath fill + vpt 0 360 arc closepath} bind def +/C4 {BL [] 0 setdash 2 copy moveto + 2 copy vpt 180 270 arc closepath fill + vpt 0 360 arc closepath} bind def +/C5 {BL [] 0 setdash 2 copy moveto + 2 copy vpt 0 90 arc + 2 copy moveto + 2 copy vpt 180 270 arc closepath fill + vpt 0 360 arc} bind def +/C6 {BL [] 0 setdash 2 copy moveto + 2 copy vpt 90 270 arc closepath fill + vpt 0 360 arc closepath} bind def +/C7 {BL [] 0 setdash 2 copy moveto + 2 copy vpt 0 270 arc closepath fill + vpt 0 360 arc closepath} bind def +/C8 {BL [] 0 setdash 2 copy moveto + 2 copy vpt 270 360 arc closepath fill + vpt 0 360 arc closepath} bind def +/C9 {BL [] 0 setdash 2 copy moveto + 2 copy vpt 270 450 arc closepath fill + vpt 0 360 arc closepath} bind def +/C10 {BL [] 0 setdash 2 copy 2 copy moveto vpt 270 360 arc closepath fill + 2 copy moveto + 2 copy vpt 90 180 arc closepath fill + vpt 0 360 arc closepath} bind def +/C11 {BL [] 0 setdash 2 copy moveto + 2 copy vpt 0 180 arc closepath fill + 2 copy moveto + 2 copy vpt 270 360 arc closepath fill + vpt 0 360 arc closepath} bind def +/C12 {BL [] 0 setdash 2 copy moveto + 2 copy vpt 180 360 arc closepath fill + vpt 0 360 arc closepath} bind def +/C13 {BL [] 0 setdash 2 copy moveto + 2 copy vpt 0 90 arc closepath fill + 2 copy moveto + 2 copy vpt 180 360 arc closepath fill + vpt 0 360 arc closepath} bind def +/C14 {BL [] 0 setdash 2 copy moveto + 2 copy vpt 90 360 arc closepath fill + vpt 0 360 arc} bind def +/C15 {BL [] 0 setdash 2 copy vpt 0 360 arc closepath fill + vpt 0 360 arc closepath} bind def +/Rec {newpath 4 2 roll moveto 1 index 0 rlineto 0 exch rlineto + neg 0 rlineto closepath} bind def +/Square {dup Rec} bind def +/Bsquare {vpt sub exch vpt sub exch vpt2 Square} bind def +/S0 {BL [] 0 setdash 2 copy moveto 0 vpt rlineto BL Bsquare} bind def +/S1 {BL [] 0 setdash 2 copy vpt Square fill Bsquare} bind def +/S2 {BL [] 0 setdash 2 copy exch vpt sub exch vpt Square fill Bsquare} bind def +/S3 {BL [] 0 setdash 2 copy exch vpt sub exch vpt2 vpt Rec fill Bsquare} bind def +/S4 {BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt Square fill Bsquare} bind def +/S5 {BL [] 0 setdash 2 copy 2 copy vpt Square fill + exch vpt sub exch vpt sub vpt Square fill Bsquare} bind def +/S6 {BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt vpt2 Rec fill Bsquare} bind def +/S7 {BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt vpt2 Rec fill + 2 copy vpt Square fill Bsquare} bind def +/S8 {BL [] 0 setdash 2 copy vpt sub vpt Square fill Bsquare} bind def +/S9 {BL [] 0 setdash 2 copy vpt sub vpt vpt2 Rec fill Bsquare} bind def +/S10 {BL [] 0 setdash 2 copy vpt sub vpt Square fill 2 copy exch vpt sub exch vpt Square fill + Bsquare} bind def +/S11 {BL [] 0 setdash 2 copy vpt sub vpt Square fill 2 copy exch vpt sub exch vpt2 vpt Rec fill + Bsquare} bind def +/S12 {BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt2 vpt Rec fill Bsquare} bind def +/S13 {BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt2 vpt Rec fill + 2 copy vpt Square fill Bsquare} bind def +/S14 {BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt2 vpt Rec fill + 2 copy exch vpt sub exch vpt Square fill Bsquare} bind def +/S15 {BL [] 0 setdash 2 copy Bsquare fill Bsquare} bind def +/D0 {gsave translate 45 rotate 0 0 S0 stroke grestore} bind def +/D1 {gsave translate 45 rotate 0 0 S1 stroke grestore} bind def +/D2 {gsave translate 45 rotate 0 0 S2 stroke grestore} bind def +/D3 {gsave translate 45 rotate 0 0 S3 stroke grestore} bind def +/D4 {gsave translate 45 rotate 0 0 S4 stroke grestore} bind def +/D5 {gsave translate 45 rotate 0 0 S5 stroke grestore} bind def +/D6 {gsave translate 45 rotate 0 0 S6 stroke grestore} bind def +/D7 {gsave translate 45 rotate 0 0 S7 stroke grestore} bind def +/D8 {gsave translate 45 rotate 0 0 S8 stroke grestore} bind def +/D9 {gsave translate 45 rotate 0 0 S9 stroke grestore} bind def +/D10 {gsave translate 45 rotate 0 0 S10 stroke grestore} bind def +/D11 {gsave translate 45 rotate 0 0 S11 stroke grestore} bind def +/D12 {gsave translate 45 rotate 0 0 S12 stroke grestore} bind def +/D13 {gsave translate 45 rotate 0 0 S13 stroke grestore} bind def +/D14 {gsave translate 45 rotate 0 0 S14 stroke grestore} bind def +/D15 {gsave translate 45 rotate 0 0 S15 stroke grestore} bind def +/DiaE {stroke [] 0 setdash vpt add M + hpt neg vpt neg V hpt vpt neg V + hpt vpt V hpt neg vpt V closepath stroke} def +/BoxE {stroke [] 0 setdash exch hpt sub exch vpt add M + 0 vpt2 neg V hpt2 0 V 0 vpt2 V + hpt2 neg 0 V closepath stroke} def +/TriUE {stroke [] 0 setdash vpt 1.12 mul add M + hpt neg vpt -1.62 mul V + hpt 2 mul 0 V + hpt neg vpt 1.62 mul V closepath stroke} def +/TriDE {stroke [] 0 setdash vpt 1.12 mul sub M + hpt neg vpt 1.62 mul V + hpt 2 mul 0 V + hpt neg vpt -1.62 mul V closepath stroke} def +/PentE {stroke [] 0 setdash gsave + translate 0 hpt M 4 {72 rotate 0 hpt L} repeat + closepath stroke grestore} def +/CircE {stroke [] 0 setdash + hpt 0 360 arc stroke} def +/Opaque {gsave closepath 1 setgray fill grestore 0 setgray closepath} def +/DiaW {stroke [] 0 setdash vpt add M + hpt neg vpt neg V hpt vpt neg V + hpt vpt V hpt neg vpt V Opaque stroke} def +/BoxW {stroke [] 0 setdash exch hpt sub exch vpt add M + 0 vpt2 neg V hpt2 0 V 0 vpt2 V + hpt2 neg 0 V Opaque stroke} def +/TriUW {stroke [] 0 setdash vpt 1.12 mul add M + hpt neg vpt -1.62 mul V + hpt 2 mul 0 V + hpt neg vpt 1.62 mul V Opaque stroke} def +/TriDW {stroke [] 0 setdash vpt 1.12 mul sub M + hpt neg vpt 1.62 mul V + hpt 2 mul 0 V + hpt neg vpt -1.62 mul V Opaque stroke} def +/PentW {stroke [] 0 setdash gsave + translate 0 hpt M 4 {72 rotate 0 hpt L} repeat + Opaque stroke grestore} def +/CircW {stroke [] 0 setdash + hpt 0 360 arc Opaque stroke} def +/BoxFill {gsave Rec 1 setgray fill grestore} def +/Density { + /Fillden exch def + currentrgbcolor + /ColB exch def /ColG exch def /ColR exch def + /ColR ColR Fillden mul Fillden sub 1 add def + /ColG ColG Fillden mul Fillden sub 1 add def + /ColB ColB Fillden mul Fillden sub 1 add def + ColR ColG ColB setrgbcolor} def +/BoxColFill {gsave Rec PolyFill} def +/PolyFill {gsave Density fill grestore grestore} def +/h {rlineto rlineto rlineto closepath gsave fill grestore stroke} bind def +% +% PostScript Level 1 Pattern Fill routine for rectangles +% Usage: x y w h s a XX PatternFill +% x,y = lower left corner of box to be filled +% w,h = width and height of box +% a = angle in degrees between lines and x-axis +% XX = 0/1 for no/yes cross-hatch +% +/PatternFill {gsave /PFa [ 9 2 roll ] def + PFa 0 get PFa 2 get 2 div add PFa 1 get PFa 3 get 2 div add translate + PFa 2 get -2 div PFa 3 get -2 div PFa 2 get PFa 3 get Rec + TransparentPatterns {} {gsave 1 setgray fill grestore} ifelse + clip + currentlinewidth 0.5 mul setlinewidth + /PFs PFa 2 get dup mul PFa 3 get dup mul add sqrt def + 0 0 M PFa 5 get rotate PFs -2 div dup translate + 0 1 PFs PFa 4 get div 1 add floor cvi + {PFa 4 get mul 0 M 0 PFs V} for + 0 PFa 6 get ne { + 0 1 PFs PFa 4 get div 1 add floor cvi + {PFa 4 get mul 0 2 1 roll M PFs 0 V} for + } if + stroke grestore} def +% +/languagelevel where + {pop languagelevel} {1} ifelse +dup 2 lt + {/InterpretLevel1 true def + /InterpretLevel3 false def} + {/InterpretLevel1 Level1 def + 2 gt + {/InterpretLevel3 Level3 def} + {/InterpretLevel3 false def} + ifelse } + ifelse +% +% PostScript level 2 pattern fill definitions +% +/Level2PatternFill { +/Tile8x8 {/PaintType 2 /PatternType 1 /TilingType 1 /BBox [0 0 8 8] /XStep 8 /YStep 8} + bind def +/KeepColor {currentrgbcolor [/Pattern /DeviceRGB] setcolorspace} bind def +<< Tile8x8 + /PaintProc {0.5 setlinewidth pop 0 0 M 8 8 L 0 8 M 8 0 L stroke} +>> matrix makepattern +/Pat1 exch def +<< Tile8x8 + /PaintProc {0.5 setlinewidth pop 0 0 M 8 8 L 0 8 M 8 0 L stroke + 0 4 M 4 8 L 8 4 L 4 0 L 0 4 L stroke} +>> matrix makepattern +/Pat2 exch def +<< Tile8x8 + /PaintProc {0.5 setlinewidth pop 0 0 M 0 8 L + 8 8 L 8 0 L 0 0 L fill} +>> matrix makepattern +/Pat3 exch def +<< Tile8x8 + /PaintProc {0.5 setlinewidth pop -4 8 M 8 -4 L + 0 12 M 12 0 L stroke} +>> matrix makepattern +/Pat4 exch def +<< Tile8x8 + /PaintProc {0.5 setlinewidth pop -4 0 M 8 12 L + 0 -4 M 12 8 L stroke} +>> matrix makepattern +/Pat5 exch def +<< Tile8x8 + /PaintProc {0.5 setlinewidth pop -2 8 M 4 -4 L + 0 12 M 8 -4 L 4 12 M 10 0 L stroke} +>> matrix makepattern +/Pat6 exch def +<< Tile8x8 + /PaintProc {0.5 setlinewidth pop -2 0 M 4 12 L + 0 -4 M 8 12 L 4 -4 M 10 8 L stroke} +>> matrix makepattern +/Pat7 exch def +<< Tile8x8 + /PaintProc {0.5 setlinewidth pop 8 -2 M -4 4 L + 12 0 M -4 8 L 12 4 M 0 10 L stroke} +>> matrix makepattern +/Pat8 exch def +<< Tile8x8 + /PaintProc {0.5 setlinewidth pop 0 -2 M 12 4 L + -4 0 M 12 8 L -4 4 M 8 10 L stroke} +>> matrix makepattern +/Pat9 exch def +/Pattern1 {PatternBgnd KeepColor Pat1 setpattern} bind def +/Pattern2 {PatternBgnd KeepColor Pat2 setpattern} bind def +/Pattern3 {PatternBgnd KeepColor Pat3 setpattern} bind def +/Pattern4 {PatternBgnd KeepColor Landscape {Pat5} {Pat4} ifelse setpattern} bind def +/Pattern5 {PatternBgnd KeepColor Landscape {Pat4} {Pat5} ifelse setpattern} bind def +/Pattern6 {PatternBgnd KeepColor Landscape {Pat9} {Pat6} ifelse setpattern} bind def +/Pattern7 {PatternBgnd KeepColor Landscape {Pat8} {Pat7} ifelse setpattern} bind def +} def +% +% +%End of PostScript Level 2 code +% +/PatternBgnd { + TransparentPatterns {} {gsave 1 setgray fill grestore} ifelse +} def +% +% Substitute for Level 2 pattern fill codes with +% grayscale if Level 2 support is not selected. +% +/Level1PatternFill { +/Pattern1 {0.250 Density} bind def +/Pattern2 {0.500 Density} bind def +/Pattern3 {0.750 Density} bind def +/Pattern4 {0.125 Density} bind def +/Pattern5 {0.375 Density} bind def +/Pattern6 {0.625 Density} bind def +/Pattern7 {0.875 Density} bind def +} def +% +% Now test for support of Level 2 code +% +Level1 {Level1PatternFill} {Level2PatternFill} ifelse +% +/Symbol-Oblique /Symbol findfont [1 0 .167 1 0 0] makefont +dup length dict begin {1 index /FID eq {pop pop} {def} ifelse} forall +currentdict end definefont pop +% +Level1 SuppressPDFMark or +{} { +/SDict 10 dict def +systemdict /pdfmark known not { + userdict /pdfmark systemdict /cleartomark get put +} if +SDict begin [ + /Title (exp1.tex) + /Subject (gnuplot plot) + /Creator (gnuplot 6.0 patchlevel 4) +% /Producer (gnuplot) +% /Keywords () + /CreationDate (Tue May 12 14:46:35 2026) + /DOCINFO pdfmark +end +} ifelse +% +% Support for boxed text - Ethan A Merritt Sep 2016 +% +/InitTextBox { userdict /TBy2 3 -1 roll put userdict /TBx2 3 -1 roll put + userdict /TBy1 3 -1 roll put userdict /TBx1 3 -1 roll put + /Boxing true def } def +/ExtendTextBox { dup type /stringtype eq + { Boxing { gsave dup false charpath pathbbox + dup TBy2 gt {userdict /TBy2 3 -1 roll put} {pop} ifelse + dup TBx2 gt {userdict /TBx2 3 -1 roll put} {pop} ifelse + dup TBy1 lt {userdict /TBy1 3 -1 roll put} {pop} ifelse + dup TBx1 lt {userdict /TBx1 3 -1 roll put} {pop} ifelse + grestore } if } + {} ifelse} def +/PopTextBox { newpath TBx1 TBxmargin sub TBy1 TBymargin sub M + TBx1 TBxmargin sub TBy2 TBymargin add L + TBx2 TBxmargin add TBy2 TBymargin add L + TBx2 TBxmargin add TBy1 TBymargin sub L closepath } def +/DrawTextBox { PL PopTextBox stroke /Boxing false def} def +/FillTextBox { gsave PopTextBox fill grestore /Boxing false def} def +0 0 0 0 InitTextBox +/TBxmargin 20 def +/TBymargin 20 def +/Boxing false def +/textshow { ExtendTextBox Gshow } def +% +end +%%EndProlog +%%Page: 1 1 +gnudict begin +gsave +doclip +50 50 translate +0.050 0.050 scale +0 setgray +newpath +1.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +0.500 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.20 0.20 0.20 C +888 768 M +7749 0 V +stroke +1.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +888 768 M +63 0 V +7686 0 R +-63 0 V +stroke +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +0.500 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.20 0.20 0.20 C +888 1700 M +7749 0 V +stroke +1.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +888 1700 M +63 0 V +7686 0 R +-63 0 V +stroke +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +0.500 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.20 0.20 0.20 C +888 2632 M +7749 0 V +stroke +1.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +888 2632 M +63 0 V +7686 0 R +-63 0 V +stroke +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +0.500 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.20 0.20 0.20 C +888 3563 M +7749 0 V +stroke +1.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +888 3563 M +63 0 V +7686 0 R +-63 0 V +stroke +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +0.500 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.20 0.20 0.20 C +888 4495 M +144 0 V +3375 0 R +4230 0 V +stroke +1.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +888 4495 M +63 0 V +7686 0 R +-63 0 V +stroke +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +0.500 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.20 0.20 0.20 C +888 5427 M +7749 0 V +stroke +1.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +888 5427 M +63 0 V +7686 0 R +-63 0 V +stroke +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +0.500 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.20 0.20 0.20 C +888 768 M +0 4659 V +stroke +1.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +888 768 M +0 63 V +0 4596 R +0 -63 V +stroke +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +0.500 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.20 0.20 0.20 C +3213 768 M +0 3156 V +0 1440 R +0 63 V +stroke +1.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +3213 768 M +0 63 V +0 4596 R +0 -63 V +stroke +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +0.500 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.20 0.20 0.20 C +5537 768 M +0 4659 V +stroke +1.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +5537 768 M +0 63 V +0 4596 R +0 -63 V +stroke +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +0.500 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.20 0.20 0.20 C +7862 768 M +0 4659 V +stroke +1.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +7862 768 M +0 63 V +0 4596 R +0 -63 V +stroke +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +1.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +888 5427 N +888 768 L +7749 0 V +0 4659 V +-7749 0 V +Z stroke +1.000 UP +1.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.00 0.00 C +% Begin plot #1 +1.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.58 0.00 0.83 C +888 768 M +78 47 V +79 47 V +78 47 V +78 47 V +78 47 V +79 47 V +78 47 V +78 47 V +78 48 V +79 47 V +78 47 V +78 47 V +79 47 V +78 47 V +78 47 V +78 47 V +79 47 V +78 47 V +78 47 V +78 47 V +79 47 V +78 47 V +78 47 V +79 47 V +78 48 V +78 47 V +78 47 V +79 47 V +78 47 V +78 47 V +78 47 V +79 47 V +78 47 V +78 47 V +79 47 V +78 47 V +78 47 V +78 47 V +79 47 V +78 47 V +78 47 V +78 48 V +79 47 V +78 47 V +78 47 V +79 47 V +78 47 V +78 47 V +78 47 V +79 47 V +78 47 V +78 47 V +78 47 V +79 47 V +78 47 V +78 47 V +79 47 V +78 48 V +78 47 V +78 47 V +79 47 V +78 47 V +78 47 V +78 47 V +79 47 V +78 47 V +78 47 V +79 47 V +78 47 V +78 47 V +78 47 V +79 47 V +78 47 V +78 47 V +78 48 V +79 47 V +78 47 V +78 47 V +79 47 V +78 47 V +78 47 V +78 47 V +79 47 V +78 47 V +78 47 V +78 47 V +79 47 V +78 47 V +78 47 V +79 47 V +78 48 V +78 47 V +78 47 V +79 47 V +78 47 V +78 47 V +78 47 V +79 47 V +78 47 V +stroke +LTw +% End plot #1 +% Begin plot #2 +1.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.62 0.45 C +888 768 M +78 21 V +79 22 V +78 21 V +78 22 V +78 21 V +79 21 V +78 22 V +78 21 V +78 22 V +79 21 V +78 21 V +78 22 V +79 21 V +78 21 V +78 22 V +78 21 V +79 22 V +78 21 V +78 21 V +78 22 V +79 21 V +78 22 V +78 21 V +79 21 V +78 22 V +78 21 V +78 22 V +79 21 V +78 21 V +78 22 V +78 21 V +79 22 V +78 21 V +78 21 V +79 22 V +78 21 V +78 21 V +78 22 V +79 21 V +78 22 V +78 21 V +78 21 V +79 22 V +78 21 V +78 22 V +79 21 V +78 21 V +78 22 V +78 21 V +79 22 V +78 21 V +78 21 V +78 22 V +79 21 V +78 22 V +78 21 V +79 21 V +78 22 V +78 21 V +78 21 V +79 22 V +78 21 V +78 22 V +78 21 V +79 21 V +78 22 V +78 21 V +79 22 V +78 21 V +78 21 V +78 22 V +79 21 V +78 22 V +78 21 V +78 21 V +79 22 V +78 21 V +78 22 V +79 21 V +78 21 V +78 22 V +78 21 V +79 21 V +78 22 V +78 21 V +78 22 V +79 21 V +78 21 V +78 22 V +79 21 V +78 22 V +78 21 V +78 21 V +79 22 V +78 21 V +78 22 V +78 21 V +79 21 V +78 22 V +stroke +LTw +% End plot #2 +% Begin plot #3 +1.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.34 0.71 0.91 C +888 768 M +78 14 V +79 15 V +78 14 V +78 14 V +78 14 V +79 15 V +78 14 V +78 14 V +78 14 V +79 15 V +78 14 V +78 14 V +79 14 V +78 15 V +78 14 V +78 14 V +79 14 V +78 15 V +78 14 V +78 14 V +79 14 V +78 15 V +78 14 V +79 14 V +78 15 V +78 14 V +78 14 V +79 14 V +78 15 V +78 14 V +78 14 V +79 14 V +78 15 V +78 14 V +79 14 V +78 14 V +78 15 V +78 14 V +79 14 V +78 14 V +78 15 V +78 14 V +79 14 V +78 14 V +78 15 V +79 14 V +78 14 V +78 15 V +78 14 V +79 14 V +78 14 V +78 15 V +78 14 V +79 14 V +78 14 V +78 15 V +79 14 V +78 14 V +78 14 V +78 15 V +79 14 V +78 14 V +78 14 V +78 15 V +79 14 V +78 14 V +78 14 V +79 15 V +78 14 V +78 14 V +78 15 V +79 14 V +78 14 V +78 14 V +78 15 V +79 14 V +78 14 V +78 14 V +79 15 V +78 14 V +78 14 V +78 14 V +79 15 V +78 14 V +78 14 V +78 14 V +79 15 V +78 14 V +78 14 V +79 14 V +78 15 V +78 14 V +78 14 V +79 15 V +78 14 V +78 14 V +78 14 V +79 15 V +78 14 V +stroke +LTw +% End plot #3 +% Begin plot #4 +1.000 UP +2.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.58 0.00 0.83 C +LCb setrgbcolor +1.000 UP +2.000 UL +LTb +0.58 0.00 0.83 C +2.000 UL +[] 0 setdash +1176 5244 M +639 0 V +stroke +[] 0 setdash +1176 5275 M +0 -62 V +639 62 R +0 -62 V +1.000 UP +stroke +LTb +LCb setrgbcolor +[] 0 setdash +0.58 0.00 0.83 C +2.000 UL +[] 0 setdash +3213 2096 M +0 140 V +stroke +[] 0 setdash +3120 2096 M +186 0 V +-186 140 R +186 0 V +stroke +[] 0 setdash +5537 3424 M +0 279 V +stroke +[] 0 setdash +5444 3424 M +186 0 V +-186 279 R +186 0 V +stroke +[] 0 setdash +7862 4749 M +0 422 V +stroke +[] 0 setdash +7769 4749 M +186 0 V +-186 422 R +186 0 V +1.000 UP +stroke +LTb +LCb setrgbcolor +[] 0 setdash +0.58 0.00 0.83 C +LCw setrgbcolor +1.000 UP +3213 2166 CircleF +1.000 UP +2.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.58 0.00 0.83 C +3213 2166 Pls +LCw setrgbcolor +1.000 UP +5537 3563 CircleF +1.000 UP +2.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.58 0.00 0.83 C +5537 3563 Pls +LCw setrgbcolor +1.000 UP +7862 4961 CircleF +1.000 UP +2.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.58 0.00 0.83 C +7862 4961 Pls +LCw setrgbcolor +1.000 UP +1496 5244 CircleF +1.000 UP +2.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.58 0.00 0.83 C +1496 5244 Pls +LTw +% End plot #4 +% Begin plot #5 +1.000 UP +1.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.94 0.89 0.26 C +LCb setrgbcolor +1.000 UP +1.000 UL +LTb +0.94 0.89 0.26 C +3215 2180 BoxF +5543 3596 BoxF +7865 5012 BoxF +1496 5004 BoxF +LTw +% End plot #5 +% Begin plot #6 +1.000 UP +2.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.62 0.45 C +LCb setrgbcolor +1.000 UP +2.000 UL +LTb +0.00 0.62 0.45 C +2.000 UL +[] 0 setdash +1176 4764 M +639 0 V +stroke +[] 0 setdash +1176 4795 M +0 -62 V +639 62 R +0 -62 V +1.000 UP +stroke +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.62 0.45 C +2.000 UL +[] 0 setdash +3213 1371 M +0 64 V +stroke +[] 0 setdash +3120 1371 M +186 0 V +-186 64 R +186 0 V +stroke +[] 0 setdash +5537 1975 M +0 127 V +stroke +[] 0 setdash +5444 1975 M +186 0 V +-186 127 R +186 0 V +stroke +[] 0 setdash +7862 2578 M +0 191 V +stroke +[] 0 setdash +7769 2578 M +186 0 V +-186 191 R +186 0 V +1.000 UP +stroke +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.62 0.45 C +LCw setrgbcolor +1.000 UP +3213 1403 CircleF +1.000 UP +2.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.62 0.45 C +3213 1403 Crs +LCw setrgbcolor +1.000 UP +5537 2039 CircleF +1.000 UP +2.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.62 0.45 C +5537 2039 Crs +LCw setrgbcolor +1.000 UP +7862 2674 CircleF +1.000 UP +2.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.62 0.45 C +7862 2674 Crs +LCw setrgbcolor +1.000 UP +1496 4764 CircleF +1.000 UP +2.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.00 0.62 0.45 C +1496 4764 Crs +LTw +% End plot #6 +% Begin plot #7 +1.000 UP +1.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.90 0.12 0.06 C +LCb setrgbcolor +1.000 UP +1.000 UL +LTb +0.90 0.12 0.06 C +3217 1411 CircleF +5540 2054 CircleF +7864 2697 CircleF +1496 4524 CircleF +LTw +% End plot #7 +% Begin plot #8 +1.000 UP +2.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.34 0.71 0.91 C +LCb setrgbcolor +1.000 UP +2.000 UL +LTb +0.34 0.71 0.91 C +2.000 UL +[] 0 setdash +1176 4284 M +639 0 V +stroke +[] 0 setdash +1176 4315 M +0 -62 V +639 62 R +0 -62 V +1.000 UP +stroke +LTb +LCb setrgbcolor +[] 0 setdash +0.34 0.71 0.91 C +2.000 UL +[] 0 setdash +3213 1170 M +0 43 V +stroke +[] 0 setdash +3120 1170 M +186 0 V +-186 43 R +186 0 V +stroke +[] 0 setdash +5537 1573 M +0 84 V +stroke +[] 0 setdash +5444 1573 M +186 0 V +-186 84 R +186 0 V +stroke +[] 0 setdash +7862 1975 M +0 127 V +stroke +[] 0 setdash +7769 1975 M +186 0 V +-186 127 R +186 0 V +1.000 UP +stroke +LTb +LCb setrgbcolor +[] 0 setdash +0.34 0.71 0.91 C +LCw setrgbcolor +1.000 UP +3213 1192 CircleF +1.000 UP +2.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.34 0.71 0.91 C +3213 1192 Star +LCw setrgbcolor +1.000 UP +5537 1615 CircleF +1.000 UP +2.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.34 0.71 0.91 C +5537 1615 Star +LCw setrgbcolor +1.000 UP +7862 2039 CircleF +1.000 UP +2.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.34 0.71 0.91 C +7862 2039 Star +LCw setrgbcolor +1.000 UP +1496 4284 CircleF +1.000 UP +2.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.34 0.71 0.91 C +1496 4284 Star +LTw +% End plot #8 +% Begin plot #9 +1.000 UP +1.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +0.58 0.00 0.83 C +LCb setrgbcolor +1.000 UP +1.000 UL +LTb +0.58 0.00 0.83 C +3215 1197 TriUF +5544 1625 TriUF +7864 2054 TriUF +1496 4044 TriUF +LTw +% End plot #9 +2.000 UL +LTb +LCb setrgbcolor +[] 0 setdash +1.000 UL +LTb +0.00 0.00 0.00 C +888 5427 N +888 768 L +7749 0 V +0 4659 V +-7749 0 V +Z stroke +LCb setrgbcolor +LTb +1.000 UP +1.000 UL +LTb +0.00 0.00 0.00 C +stroke +grestore +end +showpage +%%Trailer diff --git a/assets/a-2/exp1.gnuplot b/assets/a-2/exp1.gnuplot new file mode 100644 index 0000000..7db29cc --- /dev/null +++ b/assets/a-2/exp1.gnuplot @@ -0,0 +1,56 @@ +set output "exp1.tex" +set encoding utf8 +set terminal epslatex color font "Arial,12" fontscale 1.0 size 16cm,10cm +set style data lines +set style line 1 linetype 1 linewidth 1 linecolor rgb "magenta" +set style line 2 linetype 1 linewidth 1 linecolor rgb "blue" +set style line 3 linetype 3 linewidth 1 linecolor rgb "green" +set style line 91 linetype 1 linewidth 1 linecolor rgb "black" +set style line 92 linetype 1 linewidth 0.5 linecolor rgb "gray20" +set style line 93 linetype 1 linewidth 0.5 linecolor rgb "gray60" +set style textbox 2 opaque fc "light-blue" + +set border ls 91 +set grid xtics ls 92, ls 93 +set grid ytics ls 92, ls 93 +set xtics 0, 3, 10 +set xrange [0:10] +set yrange [0:10] + +set key top left Left reverse + +set xlabel "Supply Voltage (V)" +set ylabel "Current (mA)" offset 1.0 +set errorbars 3 front linewidth 2 + +plot \ +x linetype 1 title "", \ +x / 2.2 linetype 2 title "", \ +x / 3.3 linetype 3 title "", \ +'exp1-theory.dat' using 1:($2 * 1000):($3 * 1000):($4 * 1000) linetype 1 linewidth 2 title "Theory (1.0k Ohm)" with yerrorbars, \ +'exp1-result.dat' using 1:($2 * 1000) title "Result (1.0k Ohm)" with points, \ +'exp1-theory.dat' using 5:($6 * 1000):($7 * 1000):($8 * 1000) linetype 2 linewidth 2 title "Theory (2.2k Ohm)" with yerrorbars, \ +'exp1-result.dat' using 3:($4 * 1000) title "Result (2.2k Ohm)" with points, \ +'exp1-theory.dat' using 9:($10 * 1000):($11 * 1000):($12 * 1000) linetype 3 linewidth 2 title "Theory (3.3k Ohm)" with yerrorbars, \ +'exp1-result.dat' using 5:($6 * 1000) title "Result (3.3k Ohm)" with points + + +#set multiplot layout 2,2 rowsfirst spacing 0.05 +# +#set xlabel "Supply Voltage (V)" +#set ylabel "Current (mA)" offset 1.0 +# +#set label "1.0k Ohm" at graph 0.05,0.9 left boxed bs 2 front +#plot 'exp1-theory.dat' using 1:($2 * 1000):($3 * 1000):($4 * 1000) linetype 1 title "Theory" with yerrorlines, \ +#'exp1-result.dat' using 1:($2 * 1000) title "Result" with points +#unset label +#set label "2.2k Ohm" at graph 0.05,0.9 left boxed bs 2 front +#plot 'exp1-theory.dat' using 5:($6 * 1000):($7 * 1000):($8 * 1000) linetype 1 title "Theory" with yerrorlines, \ +#'exp1-result.dat' using 3:($4 * 1000) title "Result" with points +#set origin 0.2,0 +#unset label +#set label "3.3k Ohm" at graph 0.05,0.9 left boxed bs 2 front +#plot 'exp1-theory.dat' using 9:($10 * 1000):($11 * 1000):($12 * 1000) linetype 1 title "Theory" with yerrorlines, \ +#'exp1-result.dat' using 5:($6 * 1000) title "Result" with points +# +#unset multiplot diff --git a/assets/a-2/exp1.tex b/assets/a-2/exp1.tex new file mode 100644 index 0000000..b713c76 --- /dev/null +++ b/assets/a-2/exp1.tex @@ -0,0 +1,129 @@ +% GNUPLOT: LaTeX picture with Postscript +\begingroup + \fontfamily{Arial}% + \selectfont + \makeatletter + \providecommand\color[2][]{% + \GenericError{(gnuplot) \space\space\space\@spaces}{% + Package color not loaded in conjunction with + terminal option `colourtext'% + }{See the gnuplot documentation for explanation.% + }{Either use 'blacktext' in gnuplot or load the package + color.sty in LaTeX.}% + \renewcommand\color[2][]{}% + }% + \providecommand\includegraphics[2][]{% + \GenericError{(gnuplot) \space\space\space\@spaces}{% + Package graphicx or graphics not loaded% + }{See the gnuplot documentation for explanation.% + }{The gnuplot epslatex terminal needs graphicx.sty or graphics.sty.}% + \renewcommand\includegraphics[2][]{}% + }% + \providecommand\rotatebox[2]{#2}% + \@ifundefined{ifGPcolor}{% + \newif\ifGPcolor + \GPcolortrue + }{}% + \@ifundefined{ifGPblacktext}{% + \newif\ifGPblacktext + \GPblacktexttrue + }{}% + % define a \g@addto@macro without @ in the name: + \let\gplgaddtomacro\g@addto@macro + % define empty templates for all commands taking text: + \gdef\gplbacktext{}% + \gdef\gplfronttext{}% + \makeatother + \ifGPblacktext + % no textcolor at all + \def\colorrgb#1{}% + \def\colorgray#1{}% + \else + % gray or color? + \ifGPcolor + \def\colorrgb#1{\color[rgb]{#1}}% + \def\colorgray#1{\color[gray]{#1}}% + \expandafter\def\csname LTw\endcsname{\color{white}}% + \expandafter\def\csname LTb\endcsname{\color{black}}% + \expandafter\def\csname LTa\endcsname{\color{black}}% + \expandafter\def\csname LT0\endcsname{\color[rgb]{1,0,0}}% + \expandafter\def\csname LT1\endcsname{\color[rgb]{0,1,0}}% + \expandafter\def\csname LT2\endcsname{\color[rgb]{0,0,1}}% + \expandafter\def\csname LT3\endcsname{\color[rgb]{1,0,1}}% + \expandafter\def\csname LT4\endcsname{\color[rgb]{0,1,1}}% + \expandafter\def\csname LT5\endcsname{\color[rgb]{1,1,0}}% + \expandafter\def\csname LT6\endcsname{\color[rgb]{0,0,0}}% + \expandafter\def\csname LT7\endcsname{\color[rgb]{1,0.3,0}}% + \expandafter\def\csname LT8\endcsname{\color[rgb]{0.5,0.5,0.5}}% + \else + % gray + \def\colorrgb#1{\color{black}}% + \def\colorgray#1{\color[gray]{#1}}% + \expandafter\def\csname LTw\endcsname{\color{white}}% + \expandafter\def\csname LTb\endcsname{\color{black}}% + \expandafter\def\csname LTa\endcsname{\color{black}}% + \expandafter\def\csname LT0\endcsname{\color{black}}% + \expandafter\def\csname LT1\endcsname{\color{black}}% + \expandafter\def\csname LT2\endcsname{\color{black}}% + \expandafter\def\csname LT3\endcsname{\color{black}}% + \expandafter\def\csname LT4\endcsname{\color{black}}% + \expandafter\def\csname LT5\endcsname{\color{black}}% + \expandafter\def\csname LT6\endcsname{\color{black}}% + \expandafter\def\csname LT7\endcsname{\color{black}}% + \expandafter\def\csname LT8\endcsname{\color{black}}% + \fi + \fi + \setlength{\unitlength}{0.0500bp}% + \ifx\gptboxheight\undefined% + \newlength{\gptboxheight}% + \newlength{\gptboxwidth}% + \newsavebox{\gptboxtext}% + \fi% + \setlength{\fboxrule}{0.5pt}% + \setlength{\fboxsep}{1pt}% + \definecolor{tbcol}{rgb}{1,1,1}% +\begin{picture}(9070.00,5668.00)% + \gplgaddtomacro\gplbacktext{% + \colorrgb{0.00,0.00,0.00}%% + \put(744,768){\makebox(0,0)[r]{\strut{}$0$}}% + \colorrgb{0.00,0.00,0.00}%% + \put(744,1700){\makebox(0,0)[r]{\strut{}$2$}}% + \colorrgb{0.00,0.00,0.00}%% + \put(744,2632){\makebox(0,0)[r]{\strut{}$4$}}% + \colorrgb{0.00,0.00,0.00}%% + \put(744,3563){\makebox(0,0)[r]{\strut{}$6$}}% + \colorrgb{0.00,0.00,0.00}%% + \put(744,4495){\makebox(0,0)[r]{\strut{}$8$}}% + \colorrgb{0.00,0.00,0.00}%% + \put(744,5427){\makebox(0,0)[r]{\strut{}$10$}}% + \colorrgb{0.00,0.00,0.00}%% + \put(888,528){\makebox(0,0){\strut{}$0$}}% + \colorrgb{0.00,0.00,0.00}%% + \put(3213,528){\makebox(0,0){\strut{}$3$}}% + \colorrgb{0.00,0.00,0.00}%% + \put(5537,528){\makebox(0,0){\strut{}$6$}}% + \colorrgb{0.00,0.00,0.00}%% + \put(7862,528){\makebox(0,0){\strut{}$9$}}% + }% + \gplgaddtomacro\gplfronttext{% + \csname LTb\endcsname%% + \put(1959,5244){\makebox(0,0)[l]{\strut{}Theory (1.0k Ohm)}}% + \csname LTb\endcsname%% + \put(1959,5004){\makebox(0,0)[l]{\strut{}Result (1.0k Ohm)}}% + \csname LTb\endcsname%% + \put(1959,4764){\makebox(0,0)[l]{\strut{}Theory (2.2k Ohm)}}% + \csname LTb\endcsname%% + \put(1959,4524){\makebox(0,0)[l]{\strut{}Result (2.2k Ohm)}}% + \csname LTb\endcsname%% + \put(1959,4284){\makebox(0,0)[l]{\strut{}Theory (3.3k Ohm)}}% + \csname LTb\endcsname%% + \put(1959,4044){\makebox(0,0)[l]{\strut{}Result (3.3k Ohm)}}% + \csname LTb\endcsname%% + \put(372,3097){\rotatebox{-270.00}{\makebox(0,0){\strut{}Current (mA)}}}% + \put(4762,168){\makebox(0,0){\strut{}Supply Voltage (V)}}% + }% + \gplbacktext + \put(0,0){\includegraphics[width={453.50bp},height={283.40bp}]{./assets/a-2/exp1}}% + \gplfronttext + \end{picture}% +\endgroup diff --git a/assets/a-2/patch-exp1.sed b/assets/a-2/patch-exp1.sed new file mode 100644 index 0000000..8326549 --- /dev/null +++ b/assets/a-2/patch-exp1.sed @@ -0,0 +1 @@ +s/exp1/.\/assets\/a-2\/exp1/g; diff --git a/out/report_a-2.pdf b/out/report_a-2.pdf index 98188c7..09ba1be 100644 Binary files a/out/report_a-2.pdf and b/out/report_a-2.pdf differ diff --git a/out/report_a-2.synctex.gz b/out/report_a-2.synctex.gz index 320b066..9167cbc 100644 Binary files a/out/report_a-2.synctex.gz and b/out/report_a-2.synctex.gz differ diff --git a/report_a-2.tex b/report_a-2.tex index deaec9a..3e157e2 100644 --- a/report_a-2.tex +++ b/report_a-2.tex @@ -7,6 +7,9 @@ \usepackage{cleveref} \usepackage{multirow} \usepackage{pgf} +\usepackage{pgffor} +\usepackage{circuitikz} +\usepackage{subcaption} \usepackage{tex/depD-bib} \renewcommand\figurename{Fig. } @@ -53,6 +56,18 @@ 今回の実験では,電気回路の基本的な法則が現実の回路でも成り立つかを確認するために行った. + \input{sections/a-2/theory} + \resetrefcounter + + \input{sections/a-2/exp-detail} + \resetrefcounter + + \input{sections/a-2/exp-result} + \resetrefcounter + + \input{sections/a-2/reflection} + \resetrefcounter + \section{まとめ} 今回の実験より以下の事が分かった: diff --git a/sections/a-2/exp-detail.tex b/sections/a-2/exp-detail.tex index e69de29..c24d5fa 100644 --- a/sections/a-2/exp-detail.tex +++ b/sections/a-2/exp-detail.tex @@ -0,0 +1,123 @@ +\section{実験条件・手順} + +\subsection{実験器具} + +今回の実験では以下の器具を用いた: + +\begin{itemize} + \item{ブレッドボード Sunhayato SHR-74} + \item{デジタルマルチメータ SANWA PC700} + \item{直流安定化電源 KENWOOD PR18-1.2A} + \item{抵抗器 $1.0 \ \text{k}\Omega \pm 5\%$, 1/4 W} + \item{抵抗器 $2.2 \ \text{k}\Omega \pm 5\%$, 1/4 W} + \item{抵抗器 $3.3 \ \text{k}\Omega \pm 5\%$, 1/4 W} +\end{itemize} + +\subsection{実験1} + +\begin{enumerate} + \item{\cref{fig:cd-exp1}の回路をブレッドボード上で作成する} + \item{3種類の抵抗$(R = 1.0 \ \text{k}\Omega, 2.2 \ \text{k}\Omega, 3.3 \ \text{k}\Omega)$について,3つの電源電圧$(E = 3 \ \text{V}, 6 \ \text{V}, 9 \ \text{V})$}における\\電流を測定する +\end{enumerate} + +\begin{figure}[tbh] + \centering + \begin{circuitikz} + \draw (0,3) to [cvsourceAM, l=$E$] (0,0); + \draw (0,3) to [rmeterwa, t=A] (3,3) to [R, l=$R$] (3,0) -- (0,0); + \draw (3,3) to [short, *-] ++(2,0) to [rmeterwa, t=V, straight instruments] ++(0,-3) to [short, -*] ++(-2,0); + \draw (0,0) node[ground]{} ++(0,-0.5); + \end{circuitikz} + \caption{Circuit Diagram of Experiment \# 1} + \label{fig:cd-exp1} +\end{figure} + +\subsection{実験2} + +\begin{enumerate} + \item{\cref{fig:cd-exp2-a}の回路を作成し,電流$I_1, I_2, I_3$,抵抗$R_1, R_2, R_3$の端子間電圧$V_1, V_2, V_3$および電源電圧$E_1, E_2$を測定する} + \item{\cref{fig:cd-exp2-b}の回路を作成し,1. 同様に測定する} +\end{enumerate} + +\begin{figure}[tbh] + \centering + \begin{minipage}[h]{0.90\linewidth} + \centering + \begin{circuitikz} + \draw (0,3) node[above]{a} to [cvsourceAM, l_={$E_1=15 \ \text{V}$}] (0,0) node[left]{f}; + \draw (0,3) to [R, l={$R_1$}, a={$3.3 \ \text{k}\Omega$}, i_={$I_1$}] ++(3,0) node[above]{b}; + + \draw (6,3) node[above]{c} to [cvsourceAM, l={$E_2=3 \ \text{V}$}] (6,0) node[right]{d}; + \draw (6,3) to [R, l_={$R_2$}, a^={$1.0 \ \text{k}\Omega$}, i={$I_2$}] ++(-3,0); + + \draw (3,3) node[circ]{} to [R, l={$R_3$}, a={$2.2 \ \text{k}\Omega$}, i={$I_3$}] ++(0,-3) node[circ]{} node[below]{e}; + \draw (6,0) to [short,-*] (0,0); + \draw (0,0) node[ground]{} ++(0,-0.5); + \end{circuitikz} + \subcaption{Circuit (a)} + \label{fig:cd-exp2-a} + \end{minipage} + \begin{minipage}[h]{0.90\linewidth} + \centering + \begin{circuitikz} + \draw (0,3) node[above]{a} to [cvsourceAM, l_={$E_1=15 \ \text{V}$}] (0,0) node[left]{f}; + \draw (0,3) to [R, l={$R_1$}, a={$3.3 \ \text{k}\Omega$}, i_={$I_1$}] ++(3,0) node[above]{b}; + + \draw (6,0) node[right]{d} to [cvsourceAM, l_={$E_2=3 \ \text{V}$}] (6,3) node[above]{c}; + \draw (6,3) to [R, l_={$R_2$}, a^={$1.0 \ \text{k}\Omega$}, i={$I_2$}] ++(-3,0); + + \draw (3,3) node[circ]{} to [R, l={$R_3$}, a={$2.2 \ \text{k}\Omega$}, i={$I_3$}] ++(0,-3) node[circ]{} node[below]{e}; + \draw (6,0) to [short,-*] (0,0); + \draw (0,0) node[ground]{} ++(0,-0.5); + \end{circuitikz} + \subcaption{Circuit (b)} + \label{fig:cd-exp2-b} + \end{minipage} + \caption{Circuit Diagrams of Experiment \# 2} + \label{fig:cd-exp2} +\end{figure} + +\subsection{実験3} + +\begin{enumerate} + \item{\cref{fig:cd-exp2-a}の回路を作成し,電流$I_1, I_2, I_3$,抵抗$R_1, R_2, R_3$の端子間電圧$V_1, V_2, V_3$および電源電圧$E_1, E_2$を測定する.この時,$E_2$を取り外し,短絡させる} + \item{$E_2$を戻し,$E_1$を取り外し,短絡させ,1. 同様に測定する} + \item{$E_1$を戻し,$E_1, E_2$同時に印加させ,1. 同様に測定する} +\end{enumerate} + +なお今回の実験の手順3では実験2の手順1の結果を使用する. + +\subsection{実験4} + +\begin{enumerate} + \item{\cref{fig:cd-exp4-oc}を\cref{fig:cd-exp4-ec}の等価回路で表す時,$V_t$と$R_t$を理論的に求める} + \item{\cref{fig:cd-exp4-oc}の回路を作成し,負荷抵抗$R_L$の端子間電圧とそれに流れ込む電流を測定する} + \item{\cref{fig:cd-exp4-ec}の回路を作成し,2. 同様に測定する.なお$R_t$には$10 \ \text{k}\Omega$の可変抵抗を使い,電源電圧も理論値$V_t$に設定する} +\end{enumerate} + +\begin{figure}[tbh] + \centering + \begin{minipage}[h]{0.45\linewidth} + \centering + \begin{circuitikz} + \draw (0,3) to [cvsourceAM, l_={$E_1 = 15 \ \text{V}$}] (0,0); + \draw (0,3) to [R={$R_1$}, a={$3.3 \ \text{k}\Omega$}] ++(2,0) to [R={$R_2$}, a={$2.2 \ \text{k}\Omega$}] ++(0,-3) to [short, *-*] ++(-2,0); + \draw (2,3) to [short, *-o] ++(1,0) node[above]{A} -- ++(1,0) to [R={$R_L$}, a={$1 \ \text{k}\Omega$}] ++(0,-3) -- ++(-1,0) node[above]{B} to [short, o-] ++(-1,0); + \draw (0,0) to node[ground]{} ++(0,-0.5); + \end{circuitikz} + \subcaption{Original Circuit} + \label{fig:cd-exp4-oc} + \end{minipage} + \begin{minipage}[h]{0.45\linewidth} + \centering + \begin{circuitikz} + \draw (0,3) to [cvsourceAM, l={$V_t$}] (0,0); + \draw (0,3) to [R={$R_t$}] ++(2,0) to [short, -o] ++(1,0) node[above]{A} -- ++(1,0) to [R={$R_L$}, a={$1 \ \text{k}\Omega$}] ++(0,-3) -- ++(-1,0) node[above]{B} to [short, o-*] ++(-3,0); + \draw (0,0) to node[ground]{} ++(0,-0.5); + \end{circuitikz} + \subcaption{Equivalent Circuit} + \label{fig:cd-exp4-ec} + \end{minipage} + \caption{Circuit Diagrams of Experiment \# 4} + \label{fig:cd-exp4} +\end{figure} diff --git a/sections/a-2/exp-result.tex b/sections/a-2/exp-result.tex index 6a349e8..0868de7 100644 --- a/sections/a-2/exp-result.tex +++ b/sections/a-2/exp-result.tex @@ -2,49 +2,132 @@ \subsection{実験1} +それぞれの抵抗の理論値と実測値を\cref{fig:v-i-r}に示す.なお,理論値には$\pm 5\%$の誤差の範囲も同時に表示している. +\begin{figure}[tbh] + \centering + \input{assets/a-2/exp1} + \caption{Voltage v.s. Current of Differenct Resistors with Theoretical Values and Error Ranges} + \label{fig:v-i-r} +\end{figure} + +\newpage \subsection{実験2} -\subsubsection{回路1} +\subsubsection{回路(a)} -At E1 = 15.000, E2 = 3.005 +$E_1 = 15.000 \ \text{V}, \ E_2 = 3.005 \ \text{V}$の時,各抵抗での電流・電圧は\cref{tab:exp2-res1}となった: -I1 = -3.28m, V1 = 10.69 -I2 = 1.31m, V2 = 1.296 -I3 = 1.98m, V3 = 4.297 +%I1 = -3.28m, V1 = 10.69 +%I2 = 1.31m, V2 = 1.296 +%I3 = 1.98m, V3 = 4.297 -\subsubsection{回路2} +\begin{table}[ht] + \centering + \caption{Result of Experiment \# 2 with Circuit (a)} + \label{tab:exp2-res1} + \begin{tabular}{c|c|c} + \hline + Resistor & Voltage $[\text{V}]$ & Current $[\text{mA}]$ \\ + \hline + $R_1$ & 10.69 & -3.28 \\ + $R_2$ & 1.30 & 1.31 \\ + $R_3$ & 4.30 & 1.98 \\ + \hline + \end{tabular} +\end{table} -At E1 = 15.000, E2 = -3.007 +\subsubsection{回路(b)} -I1 = 4.33m, V1 = 14.10 -I2 = -3.93m, V2 = -3.891 -I3 = -0.40m, V3 = 0.890 +$E_1 = 15.000 \ \text{V}, \ E_2 = -3.007 \ \text{V}$の時,各抵抗での電流・電圧は\cref{tab:exp2-res2}となった: + +%I1 = 4.33m, V1 = 14.10 +%I2 = -3.93m, V2 = -3.891 +%I3 = -0.40m, V3 = 0.890 + +\begin{table}[ht] + \centering + \caption{Result of Experiment \# 2 with Circuit (b)} + \label{tab:exp2-res2} + \begin{tabular}{c|c|c} + \hline + Resistor & Voltage $[\text{V}]$ & Current $[\text{mA}]$ \\ + \hline + $R_1$ & 14.10 & 4.33 \\ + $R_2$ & -3.89 & -3.93 \\ + $R_3$ & 0.89 & 0.40 \\ + \hline + \end{tabular} +\end{table} \subsection{実験3} -\subsubsection{E1 only} +\subsubsection{$E_1$のみ} -At E1 = 15.000 +$E_1 = 15.000 \ \text{V}$での各抵抗にかかった電流・電圧は\cref{tab:exp3-res1}となった: -I1 = 3.81m, V1 = 12.40 -I2 = 2.61m, V2 = 2.596 -I3 = 1.19m, V3 = 2.593 +%I1 = 3.81m +%I2 = 2.61m +%I3 = 1.19m +%V1 = 12.40 +%V2 = 2.596 +%V3 = 2.593 -\subsubsection{E2 only} +\begin{table}[ht] + \centering + \caption{Result of Experiment \# 3 with $E_1$ as Voltage Source} + \label{tab:exp3-res1} + \begin{tabular}{c|c|c} + \hline + Resistor & Voltage $[\text{V}]$ & Current $[\text{mA}]$ \\ + \hline + $R_1$ & 12.40 & 3.81 \\ + $R_2$ & 2.61 & 2.61 \\ + $R_3$ & 2.59 & 1.19 \\ + \hline + \end{tabular} +\end{table} -At E2 = 3.004 +\subsubsection{$E_2$のみ} -I1 = 0.52m, V1 = -1.705 -I2 = 1.31m, V2 = -1.294 -I3 = 0.78m, V3 = 1.704 +$E_2 = 3.004 \ \text{V}$での各抵抗にかかった電流・電圧は\cref{tab:exp3-res2}となった: +\begin{table}[ht] + \centering + \caption{Result of Experiment \# 3 with $E_2$ as Voltage Source} + \label{tab:exp3-res2} + \begin{tabular}{c|c|c} + \hline + Resistor & Voltage $[\text{V}]$ & Current $[\text{mA}]$ \\ + \hline + $R_1$ & 1.71 & 0.52 \\ + $R_2$ & 1.29 & 1.32 \\ + $R_3$ & 1.70 & 0.78 \\ + \hline + \end{tabular} +\end{table} \subsection{実験4} -Calculated value: R_t = \frac{R_{1} R_{2}}{R_1 + R_2} = 1320, V_t = \frac{R_{2}E_{1}}{R_1 + R_2} = 6 +%Calculated value: R_t = \frac{R_{1} R_{2}}{R_1 + R_2} = 1320, V_t = \frac{R_{2}E_{1}}{R_1 + R_2} = 6 -without vr: 2.595V, 2.62mA -with vr: +等価回路でのパラメータの値は$V_{t} = 6 \ \text{V}, \ R_{t} = 1320 \ \Omega$となった.これらの値に元にした実験の結果を\cref{tab:exp4-res}にまとめる. + +\begin{table}[htb] + \centering + \caption{Voltage and Current of Load} + \label{tab:exp4-res} + \begin{tabular}{c|c|c} + \hline + Circuit & Voltage $[\text{V}]$ & Current $[\text{mA}]$ \\ + \hline + Original Circuit & 2.595 & 2.62 \\ + Replaced with Variable Resistor & 2.576 & 2.61 \\ + \hline + \end{tabular} +\end{table} + +%without vr: 2.595V, 2.62mA +%with vr: 2.576V, 2.61mA diff --git a/sections/a-2/reflection.tex b/sections/a-2/reflection.tex index e69de29..b857faf 100644 --- a/sections/a-2/reflection.tex +++ b/sections/a-2/reflection.tex @@ -0,0 +1 @@ +\section{考察} diff --git a/sections/a-2/theory.tex b/sections/a-2/theory.tex index e69de29..24bd4b2 100644 --- a/sections/a-2/theory.tex +++ b/sections/a-2/theory.tex @@ -0,0 +1,50 @@ +\section{理論} + +\subsection{オームの法則} + +ある抵抗値を持つ抵抗器$R \ [\Omega]$に対し電圧$V \ [\text{V}]$を印加すると抵抗に電流$I \ [\text{A}]$が流れる. +この時,$V, R, I$には次の関係式が成り立つ. + +\begin{equation}\label{equ:ohm} + V = RI +\end{equation} + +\cref{equ:ohm}で表されるこの関係をオームの法則という. + +電圧は電流に比例するのでV-I図は\cref{fig:v-i-example}のようになる. + +\begin{figure}[tbh] + \centering + \begin{tikzpicture}[domain=0:4] + \draw[->] (0,0) -- (4.5,0); + \draw[->] (0,0) -- (0,4.5); + + \foreach \x in {0,...,4} { + \draw (\x, 0) node[below]{\x} -- (\x, 0.1); + \draw (0, \x) node[left]{\x} -- (0.1, \x); + } + + \draw plot (\x, \x) node[left=5pt]{$R = 1 \ \text{k}\Omega$}; + \draw plot (\x, {\x/2}) node[below=10pt]{$R = 2 \ \text{k}\Omega$}; + \node at (2.25,-0.4) [below] {Voltage [V]}; + \node[rotate=90] at (-0.3,2.25) [above] {Current [mA]}; + \end{tikzpicture} + \caption{Ohm's Law on Graph} + \label{fig:v-i-example} +\end{figure} + +\subsection{キルヒホッフの法則} + +複数の抵抗・電源からなる複雑な回路はオームの法則だけでは回路を解くことはできない. +キルヒホッフの法則はそのような回路網を計算する際に用いられる. + +この法則には2つの性質が定義されている. + +第一法則は電流則とも呼ばれ,回路中の接点の電流の入出流の関係が定義されている. + +第二法則は電圧則とも呼ばれ, + +\subsection{重ね合わせの理} + +\subsection{テブナンの定理} +