diploma-1.2.11/0000755000000000000000000000000011645066213010113 5ustar diploma-1.2.11/diploma_3/0000755000000000000000000000000011645065065011766 5ustar diploma-1.2.11/diploma_3/logo-50.jpg0000700000000000000000000000762207065265672013661 0ustar JFIFHHPhotoshop 3.08BIMxHH(FG(HH(d'`8BIMHH8BIM x8BIM8BIM 8BIM' 8BIMH/fflff/ff2Z5-8BIMp8BIM@@8BIM8BIM 2=$8JFIFHHAdobed            =2"?   3!1AQa"q2B#$Rb34rC%Scs5&DTdE£t6UeuF'Vfv7GWgw5!1AQaq"2B#R3$brCScs4%&5DTdEU6teuFVfv'7GWgw ?U}eX9aƌ4᧺/Y]ӾÊVnQ-=A-u}oY_UmYfZCم?@:\-͟E,]r羧&ӹh'm};bbM7-E<{obbS^=S>M ld|-8|C2/63Vbw:Oxi|ڝO/={ sC2?AU;^e2޾c9ͥ~%pX`0s>Ȓ$\=з߬]oϼ`q/Kg1}ץ.'[m7/kdq6Oqv|Ƕ4(CM ld|-8|C2/63Vbw:Oxi|ڝO/={ sC2?AU;^e2޾c9ͥ~%pX`0s>Ȓ$\=з߬]oϼ`q/Kg1}ץ.'[m7/kdq6Oqv|Ƕ4(C #include #include int main() { FILE *f; /* The unit of length is 25.4/72 mm. */ double x0,y0; /* Coordinates of the lower-left corner of logo-50.eps */ double x1,y1; /* Coordinates of the upper-right corner of logo-50.eps */ double w,h; /* Width and Heigth of logo-50.eps */ /* Coordinates of the lower-left corner of galaxy.eps */ double x0f = 100.0; double y0f = 100.0; /* Coordinates of the upper-right corner of galaxy.eps */ double x1f = 400.0; double y1f = 400.0; /* Coordinates of the lower-left corner of the first inclusion of logo-50.eps. */ double x0a = 100.0; double y0a = 160.0; /* Coordinates of the upper-right corner of the first inclusion of logo-50.eps. x1a will be computed from the aspect ratio of logo-50.eps. */ double x1a; double y1a = 400.0; /* Coordinates of the lower-left corner of the second inclusion of logo-50.eps. */ double x0b = 150.0; double y0b = 100.0; /* Coordinates of the upper-right corner of the second inclusion of logo-50.eps. */ double x1b = 400.0; double y1b = 240.0; /* Coordinates of the lower-left corner of the second inclusion of logo-50.eps inside of the original image. These are in relative to the original image. Thus, the lower-left corner of the original image would be (0.0,0.0) and the upper-right corner (1.0,1.0).*/ double xc = 0.59; double yc = 0.39; /* This is the scale factor of the second inclusion relative to the first inclusion. */ double sf = 5.0; /* This is the anti-clockwise rotation angle of the second inclusion. */ double ra = -30.0; /* The same in radian. */ double rar = ra*atan(1)/45.0; /* These are the coordinates of the corners of the magnified area. */ double xm0,ym0,xm1,ym1,xm2,ym2,xm3,ym3; /* At first, we need to know the coordinates of the lower-left und upper-right corner of the bounding box of logo-50.eps. */ system("grep %%BoundingBox logo-50.eps > logo-50.eps.BoundingBox"); f = fopen("logo-50.eps.BoundingBox","r"); fscanf(f,"%%%%BoundingBox:%lf%lf%lf%lf",&x0,&y0,&x1,&y1); fclose(f); /* Now, we can compute the width and heigth of logo-50.eps. */ w = x1-x0; h = y1-y0; /* The x-coordinate of the upper-right corner of the first inclusion is determined. */ x1a = x0a+(y1a-y0a)/h*w; /* Now, we start to write the image. */ f = fopen("galaxy.eps","w"); /* The first line indicates that its an eps-file. */ fprintf(f,"%%!PS-Adobe-3.0 EPSF-3.0\n"); /* The bounding box of the new image is slightly larger then the nominal drawing area because of the linethickness of the frames. */ fprintf(f,"%%%%BoundingBox: %f %f %f %f\n",x0f-2,y0f-2,x1f+2,y1f+2); /* We want to be able to just send galaxy.eps to a printer, so we save the current state of the virtual memory and redefine "showpage" to an empty procedure to disable any "showpage"-commands in the included eps-files. */ fprintf(f,"save /showpage {} def\n"); /* Now, we include logo-50.eps the first time. We save the state. */ fprintf(f,"save\n"); /* The image is translated. */ fprintf(f,"%f %f translate\n",x0a,y0a); /* The image is scaled. */ fprintf(f,"%f dup scale\n",(y1a-y0a)/(y1-y0)); /* In case, the lower left corner of logo-50.eps in not at (0.0,0.0), it is now. */ fprintf(f,"%f %f translate\n",-x0,-y0); fclose(f); /* We mask the BoundingBox lines of the inserted image. */ system( "sed -e's/BoundingBox/MaskedBoundingBox/' logo-50.eps.temp"); system("cat galaxy.eps logo-50.eps.temp > galaxy.eps.temp"); system("mv galaxy.eps.temp galaxy.eps"); f = fopen("galaxy.eps","a"); /* We restore the state. */ fprintf(f,"restore\n"); /* Now, we draw a frame with a line width of 2 points around the included image. */ /* The graphics state is saved. */ fprintf(f,"gsave\n"); /* The linewidth is set to 2 points. */ fprintf(f,"2 setlinewidth\n"); /* We define the path of the frame. */ fprintf(f,"newpath %f %f moveto\n",x0a,y0a); fprintf(f,"%f %f lineto\n",x1a,y0a); fprintf(f,"%f %f lineto\n",x1a,y1a); fprintf(f,"%f %f lineto closepath\n",x0a,y1a); /* This draws the box. */ fprintf(f,"stroke\n"); /* Finally, the graphics state is restored. */ fprintf(f,"grestore\n"); /* Now, we draw a frame with a line width of 2 points around the area which is selected for magnification. */ /* The position of the corners are computed. */ xm0 = xc*(x1a-x0a)+x0a; ym0 = yc*(y1a-y0a)+y0a; xm1 = xm0+cos(rar)*(x1b-x0b)/sf; ym1 = ym0-sin(rar)*(x1b-x0b)/sf; xm3 = xm0+sin(rar)*(y1b-y0b)/sf; ym3 = ym0+cos(rar)*(y1b-y0b)/sf; xm2 = xm3-xm0+xm1; ym2 = ym3-ym0+ym1; /* The graphics state is saved. */ fprintf(f,"gsave\n"); /* The linewidth is set to 2 points. */ fprintf(f,"2 setlinewidth\n"); /* We define the path of the frame in the coordinates of the final image. */ fprintf(f,"newpath %f %f moveto\n",xm0,ym0); fprintf(f,"%f %f lineto\n",xm1,ym1); fprintf(f,"%f %f lineto\n",xm2,ym2); fprintf(f,"%f %f lineto closepath\n",xm3,ym3); /* This draws the box. */ fprintf(f,"stroke\n"); /* These means rounded linecaps. */ fprintf(f,"2 setlinecap\n"); /* Four additional lines are drawn to connect the related corners. */ fprintf(f,"newpath %f %f moveto\n",x0b,y0b); fprintf(f,"%f %f lineto stroke\n",xm0,ym0); fprintf(f,"newpath %f %f moveto\n",x1b,y0b); fprintf(f,"%f %f lineto stroke\n",xm1,ym1); fprintf(f,"newpath %f %f moveto\n",x1b,y1b); fprintf(f,"%f %f lineto stroke\n",xm2,ym2); fprintf(f,"newpath %f %f moveto\n",x0b,y1b); fprintf(f,"%f %f lineto stroke\n",xm3,ym3); /* Finally, the graphics state is restored. */ fprintf(f,"grestore\n"); /* Now, we include logo-50.eps the second time. We save the state. */ fprintf(f,"save\n"); /* Now, we draw a rectangle and reduce the drawing area to this rectangle. */ /* We define the path of the frame. */ fprintf(f,"newpath %f %f moveto\n",x0b,y0b); fprintf(f,"%f %f lineto\n",x1b,y0b); fprintf(f,"%f %f lineto\n",x1b,y1b); fprintf(f,"%f %f lineto closepath\n",x0b,y1b); /* This command reduces the drawing area to the area of the box. */ fprintf(f,"clip\n"); /* The image is translated. */ fprintf(f,"%f %f translate\n",x0b,y0b); /* The image is rotated. */ fprintf(f,"%f rotate\n",ra); /* The image is scaled. */ fprintf(f,"%f dup scale\n",(y1a-y0a)/(y1-y0)*sf); /* The image is translated so that the lower-left point of the second inclusion gets into the origin. Thats necessary, because we want to rotate through this point. */ fprintf(f,"%f %f translate\n",-xc*w,-yc*h); /* In case, the lower left corner of logo-50.eps in not at (0.0,0.0), it is now. */ fprintf(f,"%f %f translate\n",-x0,-y0); fclose(f); system("cat galaxy.eps logo-50.eps.temp > galaxy.eps.temp"); system("mv galaxy.eps.temp galaxy.eps"); f = fopen("galaxy.eps","a"); /* We restore the state. */ fprintf(f,"restore\n"); /* Now, we draw a frame with a line width of 2 points around the included image. */ /* The graphics state is saved. */ fprintf(f,"gsave\n"); /* The linewidth is set to 2 points. */ fprintf(f,"2 setlinewidth\n"); /* We define the path of the frame. */ fprintf(f,"newpath %f %f moveto\n",x0b,y0b); fprintf(f,"%f %f lineto\n",x1b,y0b); fprintf(f,"%f %f lineto\n",x1b,y1b); fprintf(f,"%f %f lineto closepath\n",x0b,y1b); /* This draws the box. */ fprintf(f,"stroke\n"); /* Finally, the graphics state is restored. */ fprintf(f,"grestore\n"); /* We restore the state of the virtual memory. "showpage" does work again. */ fprintf(f,"restore showpage\n"); fclose(f); return 0; /* This is necessary to report success to "make"! */ } diploma-1.2.11/diploma_3/Makefile0000644000000000000000000000021207065265672013430 0ustar galaxy.eps : galaxy.c logo-50.eps gcc -Wall -o galaxy galaxy.c -lm ./galaxy logo-50.eps : logo-50.jpg convert logo-50.jpg logo-50.eps diploma-1.2.11/diploma_1/0000755000000000000000000000000011645051061011753 5ustar diploma-1.2.11/diploma_1/src/0000755000000000000000000000000007036505020012540 5ustar diploma-1.2.11/diploma_1/src/XRD.eps0000644000000000000000000000740607036505020013715 0ustar %!PS-Adobe-3.0 EPSF-3.0 %%BoundingBox: 136 255 439 390 % % XRD.eps % % Example 1 of the Debian package diploma % % Copyright (C) 1999 Andreas Franzen % % See the file copyright for details. % This is a schematic drawing of a XRD apparatus. The first line of this % file indicates the file format. The second line gives the % bounding box of the drawing. The bounding box is a rectangle which % encloses the drawing. The first two numbers are the x and y coordinate % of the lower left corner and the second two numbers of the upper % right corner. You can check this easily by displaying this file % with the gv program. The coordinates indicated by gv are just the same. % Ghostscript measures in typographic points. 1 pt = 25.4/72 mm % If you want to measure in mm, you can scale the drawing. % 72 and 25.4 are put on the stack and divided. The result is duplicated, % because we want the same scale factor in x and y direction. 72 25.4 div dup scale % We want the origin of our coordinate system in the upper center % of the sample. When we make paper prints, the origin is the % lower left corner of the sheet. To be able to see our whole % drawing, we translate 100mm up and to the right. 100 100 translate % At first we draw anode and cathode. The incident angle of the x-rays is % 30 degrees in our drawing. Thus we rotate 30 degrees clockwise through % the upper center of the sample. We do this inside of a gsave/grestore % pair to restore the previous drawing mode easily. gsave -30 rotate % Because the x-rays are taken at an angle of 6 degrees from the anode, % we translate to the center of the anode and rotate 6 degrees counter % clockwise. -50 0 translate 6 rotate % Now we draw the anode. First, we set the linewidth to 0.4 mm. 0.4 setlinewidth % Then we start a new drawing path. newpath % We move the current point to x = -8 mm and y = 0 mm. -8 0 moveto % We draw a line to x = -8 mm and y = 6 mm. -8 6 lineto -6 6 lineto -6 2 lineto 6 2 lineto 6 6 lineto 8 6 lineto 8 0 lineto % We close the drawing path. closepath % The we do really draw on the sheet. stroke % The cathode is similar. The arcto command takes 5 arguments. % x1 y1 x2 y2 r arcto % It draws a straight line and then an arc from the current point. % The end of the arc touches the line between the points x1 y1 and x2 y2. % The radius of the arc is r. newpath -2 -10 moveto -2 -2 2 -2 2 arcto 2 -2 2 -10 2 arcto 2 -10 lineto stroke grestore % 30 degrees cclockwise rotation of the detector. gsave 30 rotate 50 0 translate % We draw the detector. 0.4 setlinewidth newpath 0 -3 moveto 0 3 lineto 10 3 lineto 10 -3 lineto closepath stroke grestore % We draw the rays from the center of the anode to the sample. 0.2 setlinewidth newpath 5 0 moveto 30 cos -50 mul 30 sin 50 mul lineto -5 0 lineto stroke % 30 cos -50 mul means -50*cos(30) % Rays from sample to detector follow. 0.2 setlinewidth newpath 5 0 moveto 30 cos 50 mul 30 sin 50 mul lineto -5 0 lineto stroke % Then we draw the sample. 0.4 setlinewidth newpath -7 0 moveto 7 0 lineto 7 -2 lineto -7 -2 lineto closepath stroke % We activate a 5mm high text font. /Helvetica findfont 5 scalefont setfont 0.2 setlinewidth % We draw a line from the anode to the beginning of the word anode. newpath -45 27 moveto -38 34 lineto stroke % Then we move to a position 1 mm to the right and 1 down and draw % the word anode. -37 33 moveto (anode) show % The words cathode, sample, and detector follow. newpath -45 17 moveto -40 7 lineto stroke -39 6 moveto (cathode) show newpath 2 -1 moveto 5 -7 lineto stroke 6 -8 moveto (sample) show newpath 46 27 moveto 37 32 lineto stroke 18 31 moveto (detector) show % The showpage command is necessary to get the file printed on a printer. showpage diploma-1.2.11/diploma_1/src/poisson2gauss.c0000644000000000000000000000075507036505020015532 0ustar /* * poisson2gauss.c * * Example 1 of the Debian package diploma * * Copyright (C) 1999 Andreas Franzen * * See the file copyright for details. * * This program Converts poissonian distributed noise into gaussian * distributed noise. */ #include #include int main() { float w; while (scanf("%f",&w) != EOF) printf("%f\n",2.0*sqrt(w+0.25109)); /* * return(0) tells the make command that this program was successfully * terminated. */ return 0; } diploma-1.2.11/diploma_1/src/table1.c0000644000000000000000000000430407036505020014055 0ustar /* * table1.c * * Example 1 of the Debian package diploma * * Copyright (C) 1999 Andreas Franzen * * See the file copyright for details. * * This program creates the file with the table data which is included * in the TeX text and also the resulting lattice constant in result.tex. */ #include #include /* * We include the definitions of some parameters. */ #include "../inc/salt.h" int main() { /* * These are the step numbers of the peaks in res/salt2.dat. */ int steps[17]={1105,1182,1360,1910,2176,2494,2683,2841,3446,3506, 3892,4026,4604,5055,5884,6479,6714}; /* * These are the corresponding (hkl)s. */ int h[17]={1,2,2,2,2,2,3,2,4,4,3,4,4,5,4,5,4}; int k[17]={1,0,0,2,2,2,1,2,0,2,3,2,2,1,4,3,4}; int l[17]={1,0,0,0,0,2,1,2,0,0,1,0,2,1,0,1,2}; /* * 'a' means Co-Kalpha and 'b' means Co-Kbeta line. */ char t[17]={'a','b','a','b','a','b','a','a','a','b', 'a','a','a','a','a','a','a'}; double diffangles[17],d[17]; int i; FILE *f; double pi; pi=4.0*atan(1.0); /* * We calculate the diffraction angle from the step number. */ for(i=0;i<17;i++) diffangles[i]=(max2theta-min2theta)/(stepnumber-1)*(steps[i]-1)+min2theta; /* * Then, we calculate the lattice plane spacing with the appropriate * wavelength. */ for(i=0;i<17;i++) { if(t[i]=='a') d[i]=lambdaKalpha1/2.0/sin(pi/180.0*diffangles[i]/2.0); else d[i]=lambdaKbeta/2.0/sin(pi/180.0*diffangles[i]/2.0); } /* * We calculate the lattice parameter and write the lines of the * table. */ for(i=0;i<17;i++) if(t[i]=='a') printf("%6.2f&%6.4f&(%d%d%d)&%6.4f&&&\\\\\n",diffangles[i],d[i]*1.0e9, h[i],k[i],l[i],d[i]*sqrt(h[i]*h[i]+k[i]*k[i]+l[i]*l[i])*1.0e9); else printf("%6.2f&&&&%6.4f&(%d%d%d)&%6.4f\\\\\n",diffangles[i],d[i]*1.0e9, h[i],k[i],l[i],d[i]*sqrt(h[i]*h[i]+k[i]*k[i]+l[i]*l[i])*1.0e9); /* * Now, we write res/result.tex. */ f=fopen("res/result.tex","w"); i=16; fprintf(f,"%6.4f\\pm 0.0001\\,\\mathrm{nm}", d[i]*sqrt(h[i]*h[i]+k[i]*k[i]+l[i]*l[i])*1.0e9); fclose(f); /* * return(0) tells the make command that this program was successfully * terminated. */ return(0); } diploma-1.2.11/diploma_1/src/addx.c0000644000000000000000000000114407036505020013624 0ustar /* * addx.c * * Example 1 of the Debian package diploma * * Copyright (C) 1999 Andreas Franzen * * See the file copyright for details. * * This program reads 1-dimensional measurement data from stdin * and writes 2-dimensional measurement data to stdout. */ #include #include "../inc/salt.h" int main() { int i; double x,y; for(i=1;i<=stepnumber;i++) { scanf("%lf",&y); x=(max2theta-min2theta)/(stepnumber-1)*(i-1)+min2theta; printf("%f %f\n",x,y); } /* * return(0) tells the make command that this program was successfully * terminated. */ return(0); } diploma-1.2.11/diploma_1/src/parameters.c0000644000000000000000000000206507036505020015052 0ustar /* * parameters.c * * Example 1 of the Debian package diploma * * Copyright (C) 1999 Andreas Franzen * * See the file copyright for details. * * This program creates the paramter files which are included in the * TeX-text. */ #include #include"../inc/salt.h" int main() { FILE *f; f=fopen("min2theta.tex","w"); fprintf(f,"%4.0f^\\circ",min2theta); fclose(f); f=fopen("max2theta.tex","w"); fprintf(f,"%5.1f^\\circ",max2theta); fclose(f); f=fopen("stepnumber.tex","w"); fprintf(f,"%4d",stepnumber); fclose(f); f=fopen("stepsize.tex","w"); fprintf(f,"%4.2f",(max2theta-min2theta)/stepnumber); fclose(f); f=fopen("lambdaKalpha1.tex","w"); fprintf(f,"%9.7f\\,\\mathrm{nm}",lambdaKalpha1*1.0e9); fclose(f); f=fopen("lambdaKalpha2.tex","w"); fprintf(f,"%9.7f\\,\\mathrm{nm}",lambdaKalpha2*1.0e9); fclose(f); f=fopen("lambdaKbeta.tex","w"); fprintf(f,"%8.6f\\,\\mathrm{nm}",lambdaKbeta*1.0e9); fclose(f); /* * return(0) tells the make command that this program was successfully * terminated. */ return(0); } diploma-1.2.11/diploma_1/diploma_1.tex0000644000000000000000000001673511502232256014355 0ustar % % diploma_1.tex % % Example 1 of the Debian package diploma % % Copyright (C) 1999 Andreas Franzen % % See the file copyright for details. \documentclass[12pt]{article} \usepackage[dvips]{graphicx} \begin{document} \title{A look into the atomic structure of table salt} \author{Andreas Franzen} \maketitle \section{Introduction} From the chemistry lessons at school you may know that the salt which you can find in a kitchen consists of crystals of sodium chloride or NaCl. In these crystals the atoms of sodium and chlorine are arranged in a regular pattern. You may think of the crystal as a stack of cubes where there is a sodium atom at each corner of a cube and also in the center of each surface. Thus, each cube contains 1/8 sodium atom at each of its 8 corners and 1/2 sodium atom at each of its 6 surface squares. That is 4 sodium atoms per unit cell. There are as many chlorine atoms in the crystal. These are located in the middle of each edge of the cube and in the center of the cube. Each cube contains 1/4 chlorine atom at each of its 12 edges and the chlorine atom in its center. This is also a total of 4 chlorine atoms per unit cell. This structure is called face-centered-cubic. What your teacher didn't tell you is how one can verify this. This paper describes a simple way to scan the atomic structure of table salt. The method is called x-ray diffraction or XRD. When an x-ray interacts with the atoms of a crystal it is reflected by lattice planes. A lattice plane is a plane through the crystal which contains many atoms. The possible diffraction angle $2\Theta$ depends on the wavelength $\lambda$ of the radiation and the distance $d$ between the parallel lattice planes. The equation is quite simple. \begin{equation} 2d\sin\Theta=n\lambda \end{equation} $n$ is a positive integer. We assume first order diffraction. That means $n$ is 1. For a structure with cubic symmetry it is easy to calculate the possible distances $d$ \begin{equation} d=\frac{a}{\sqrt{h^2+k^2+l^2}} \end{equation} from the lattice parameter $a$. $a$ is the height of the unit cell. $h$, $k$, and $l$ are small integers. For a face-centered-cubic structure there is an additional requirement. All of the three integers must be odd or all of them must be even. \begin{figure} \begin{center} \includegraphics[width=80mm]{src/XRD.eps} \caption{\label{FigXRD} The XRD apparatus.} \end{center} \end{figure} \section{Experimental arrangement} An XRD apparatus in its basic form is quite simple. \textbf{Figure~\ref{FigXRD}} shows a schematic drawing. The x-ray tube on the left consist of the water cooled anode and the electrically heated tungsten cathode. The electric potential of the cathode is $-40\,\mathrm{kV}$ with respect to the anode which is at ambient potential. Between cathode and anode is high vacuum. Thus, electrons can travel from the heated cathode to the anode. The heating of the cathode is adjusted so that the anode current is 40\,mA. The target area of the anode is made of pure cobalt. It is 1\,mm wide and 10\,mm long. From the sample, this area looks like a rectangle of 0.1\,mm width and 10\,mm length. Half way from the anode to the sample there is a 1\,mm wide and 10\,mm long slit made of lead. The beam is diffracted in the sample and passes a similar slit half way between sample and detector. At the entry of the detector there is a 0.2\,mm wide slit. The radiation of a cobalt anode exited with 40\,keV electrons consists mainly of the Co-K$\alpha_1$ line with a wavelength of $\input{lambdaKalpha1}$ and the Co-K$\alpha_2$ line with a wavelength of $\input{lambdaKalpha2}$ and half of the intensity of the Co-K$\alpha_1$ line. An iron foil between the two lead slits on the detector side reduces the intensity of the weaker Co-K$\beta_{1,3}$ line at $\input{lambdaKbeta}$ relative to the Co-K$\alpha$ lines. There is also continuous background radiation. \cite{Lid95} \begin{figure} \begin{center} \includegraphics[width=\textwidth]{fig/salt.eps} \caption{\label{FigSalt}Raw diffraction pattern of sodium chloride.} \end{center} \end{figure} \begin{figure} \begin{center} \includegraphics[width=\textwidth]{fig/salt2.eps} \caption{\label{FigSalt2}Processed diffraction pattern of sodium chloride.} \end{center} \end{figure} \section{Measurement} The position of the sample and the detector are adjusted so that the intensity of the diffracted radiation can be measured at different diffraction angles. The measurement consisted of $\input{stepnumber}$ single measurements with a step size of $\input{stepsize}$ and a measurement time of 1\,s at each step. The diffraction angle was varied from $\input{min2theta}$ to $\input{max2theta}$. The measured value is the number of counts at each step. The sample material was ordinary table salt obtained from a supermarket. \textbf{Figure~\ref{FigSalt}} shows the result. \begin{table} \begin{center} \renewcommand{\arraystretch}{1.2} \begin{tabular}{|c|c|c|c|c|c|c|} \cline{2-7} \multicolumn{1}{c|}{} & \multicolumn{3}{c|}{Co-K$\alpha_1$} & \multicolumn{3}{c|}{Co-K$\beta_{1,3}$}\\ \hline $2\Theta[^\circ]$&$d[\mathrm{nm}]$&$(hkl)$&$a[\mathrm{nm}]$& $d[\mathrm{nm}]$&$(hkl)$&$a[\mathrm{nm}]$\\\hline \input{res/table1}\hline \end{tabular} \end{center} \caption{\label{tableoflines}Observed diffraction angle $2\Theta$ of each line and the corresponding lattice spacing $d$. Each line is characterized by three small integers $(hkl)$ which are used to calculate the lattice parameter $a$.} \end{table} \section{Processing of the measurement data} We are interested in the positions of the peaks in the diffraction pattern. We can find these much better when we denoise the measurement data. Also, we transform the step number $i$ into the diffraction angle $2\Theta$. \begin{equation} 2\Theta=\frac{\input{max2theta}-\input{min2theta}}{\input{stepnumber}-1} \cdot(i-1)+\input{min2theta} \end{equation} To denoise the pattern, the Poisson distributed noise of the raw counts per step $x_i$ is approximately transformed into Gaussian distributed white noise $y_i$. \begin{equation} y_i=2\sqrt{x_i+0.25109} \end{equation} The resulting diffraction pattern is shown in the first and second part of \textbf{figure~\ref{FigSalt2}}. Then it is denoised with a wavelet denoising method. This is done with the program \texttt{wzip} which is contained in the package \texttt{wzip} in the section \texttt{math} of the Debian GNU/Linux distribution. Hard denoising is used with a scale factor of 4. The third part of figure~\ref{FigSalt2} shows the result. There are 17 peaks visible in figure~\ref{FigSalt2}. Their diffraction angles are shown in \textbf{table~\ref{tableoflines}}. The corresponding lattice spacings $d$ have been calculated with the wavelength of the Co-K$\alpha_1$ line or the Co-K$\beta_{1,3}$ line. All peaks could be successfully indexed with $(hkl)$s. From $d$ and $(hkl)$ the lattice parameter $a$ can be calculated. All 17 measurements of $a$ are in good agreement with each other. Both the geometric accuracy and the resolution of the experimental arrangement rise with the diffraction angle. Thus, the result of our measurement of the lattice parameter of sodium chloride is \begin{equation} a_{\mathrm{NaCl}}=\input{res/result}\quad. \end{equation} \section{Acknowledgement} Many thanks to the Department of Ferrous Metallurgy and Foundry Technology of the Technical University of Clausthal, Clausthal-Zellerfeld, Germany for the permission to use the XRD facility. \begin{thebibliography}{Mmm00} \bibitem[Lid95]{Lid95} Lide, D.R.: CRC Handbook of Chemistry and Physics. Boca Raton 1995 \end{thebibliography} \end{document} diploma-1.2.11/diploma_1/dat/0000755000000000000000000000000007036505020012521 5ustar diploma-1.2.11/diploma_1/dat/salt.dat0000644000000000000000000011146007036505020014161 0ustar 179 163 170 165 154 149 165 169 141 143 169 160 139 160 170 141 158 173 140 153 174 172 166 166 148 156 141 134 117 151 137 129 126 110 121 128 114 94 96 86 92 85 79 70 68 67 51 56 62 67 66 54 50 69 52 57 58 62 65 55 62 61 57 64 76 62 57 78 72 70 59 62 64 59 67 86 67 50 71 66 67 60 75 59 65 69 79 69 58 81 73 59 75 75 71 64 65 86 70 55 79 79 67 70 74 74 66 60 70 64 65 60 90 64 82 59 80 79 76 75 75 61 87 72 63 76 77 63 77 80 74 80 67 55 57 85 74 61 72 83 68 67 69 82 87 67 66 61 73 60 66 72 65 80 74 47 61 43 65 58 76 56 44 55 75 51 49 50 59 45 56 47 49 52 49 48 54 56 46 44 44 45 53 50 48 57 53 53 58 55 50 49 66 53 45 63 58 58 57 49 52 52 55 51 62 55 56 54 65 74 80 61 63 75 73 64 57 48 54 80 56 75 58 70 63 72 55 78 57 70 76 64 63 77 80 71 77 62 70 61 60 78 89 73 82 59 81 74 75 79 74 79 59 65 70 78 74 73 83 79 72 77 85 78 85 72 91 75 69 66 80 75 71 80 58 84 82 71 91 90 75 76 73 88 93 77 85 71 90 83 79 83 69 80 75 91 96 82 92 80 95 92 106 72 75 101 77 92 103 83 92 82 78 87 100 93 75 82 101 94 93 98 83 92 81 107 102 109 93 103 79 91 107 112 103 76 87 102 86 91 97 91 109 91 96 86 74 87 101 91 89 92 100 91 79 94 91 71 77 67 84 84 82 75 72 82 98 97 86 79 89 85 86 76 78 85 103 75 79 96 66 69 82 90 76 81 76 94 88 71 103 89 87 81 86 102 110 88 89 94 105 80 76 88 95 95 100 96 101 101 70 80 99 89 101 86 90 96 94 87 89 106 112 93 94 99 112 84 96 70 90 78 82 93 82 97 83 86 83 74 90 95 75 75 67 68 97 83 90 81 80 103 81 93 93 103 77 95 88 71 88 91 77 103 84 72 92 82 90 84 96 89 75 97 81 111 97 113 109 82 92 100 86 90 86 107 90 92 100 76 82 84 90 82 84 95 73 100 75 75 75 84 90 89 78 86 96 92 80 92 70 81 96 86 74 80 84 83 93 94 78 89 92 79 93 100 86 94 78 83 84 86 92 102 98 81 95 107 94 99 93 98 80 87 76 87 86 90 98 101 109 83 100 104 97 93 82 109 97 78 104 105 100 88 112 96 83 100 93 64 89 87 103 95 82 86 95 76 87 76 81 97 92 79 93 108 82 102 65 84 88 108 85 109 82 91 91 89 80 79 86 93 89 96 87 87 83 90 85 97 99 89 74 85 85 88 77 98 91 100 77 81 91 94 72 62 83 78 84 85 86 85 72 86 86 96 82 80 77 69 77 57 90 63 73 100 87 93 72 67 74 74 70 70 65 68 74 78 74 82 61 62 79 62 84 89 70 69 73 86 72 61 89 84 78 73 62 65 65 72 68 67 79 55 72 71 63 72 68 69 64 74 64 57 64 66 72 74 78 66 67 64 84 63 65 52 68 70 61 57 62 72 64 81 65 65 61 81 68 59 63 64 71 63 75 73 67 73 59 69 54 71 64 58 61 67 62 68 77 68 57 64 67 66 63 61 74 67 67 65 59 73 55 72 65 58 70 54 70 66 76 77 73 69 72 63 67 62 65 74 63 50 62 89 64 67 78 69 66 57 66 73 80 71 83 57 73 58 55 65 58 72 62 87 59 58 80 77 76 69 66 67 74 78 92 60 63 65 65 71 72 45 58 64 68 64 70 63 69 78 72 76 76 74 68 72 78 56 65 66 68 51 59 63 72 57 56 75 59 72 63 60 70 60 64 59 51 59 56 66 62 47 56 56 53 62 63 51 57 51 56 70 56 53 56 67 55 68 73 60 55 47 57 57 52 55 73 40 63 50 58 74 60 44 64 51 57 61 46 50 64 58 58 58 60 50 56 55 59 59 49 77 47 55 53 41 53 64 38 60 63 67 58 44 57 48 48 56 55 48 59 54 57 53 54 62 73 53 59 71 54 44 56 58 55 56 63 67 49 52 61 69 54 72 63 57 67 58 60 75 66 61 72 61 75 59 44 47 75 67 63 52 51 54 58 55 60 63 64 62 71 50 53 65 52 58 50 60 69 46 52 54 53 57 51 47 54 47 57 59 65 62 54 46 64 47 46 59 64 45 59 56 65 51 63 46 55 41 50 58 49 48 54 59 50 59 56 57 61 62 60 57 59 75 52 64 69 71 65 50 64 64 57 64 68 58 51 56 61 46 52 55 49 50 71 58 51 53 53 64 49 55 46 50 71 41 52 59 55 41 54 58 54 41 52 47 45 69 52 56 58 59 54 63 58 48 36 53 54 66 45 57 43 71 76 68 76 65 87 84 84 85 123 137 151 164 192 192 221 223 292 294 341 405 434 413 381 382 344 254 237 181 128 104 97 100 88 72 63 63 68 52 62 47 53 64 48 52 32 38 51 53 49 49 49 55 50 52 45 56 47 45 48 42 46 48 52 36 45 51 48 49 49 48 58 53 51 61 53 46 55 59 67 59 49 56 67 64 59 62 92 89 78 104 116 111 144 158 157 165 166 183 144 126 97 98 74 55 78 56 70 50 47 50 64 59 53 47 41 44 48 46 36 40 42 51 50 54 41 46 65 41 64 47 35 53 56 45 46 42 54 43 59 49 54 58 55 39 47 57 39 47 46 52 57 41 61 53 39 58 54 47 59 62 38 44 32 47 37 55 52 37 34 48 57 36 51 45 39 47 44 48 41 56 49 49 45 47 52 46 49 38 40 57 47 39 53 43 51 58 46 43 53 43 47 48 61 51 45 55 48 42 42 42 49 52 55 51 57 46 42 43 63 46 71 42 48 51 59 53 59 60 59 64 62 70 61 62 68 64 88 52 56 76 64 87 71 68 78 70 81 68 84 96 85 91 118 123 112 153 138 214 198 265 318 380 435 572 658 773 1013 1211 1454 1794 2332 2840 3447 4112 4591 4883 4811 4445 3869 3195 2635 2049 1497 1095 804 569 472 353 312 238 227 177 152 149 113 110 126 135 97 106 80 93 108 75 81 63 61 59 63 51 63 59 54 73 58 57 77 50 78 56 47 64 63 52 60 71 57 60 42 61 62 61 50 57 53 65 55 56 51 37 59 45 57 48 40 41 52 56 45 52 45 53 59 55 35 59 44 50 52 53 46 53 46 46 61 40 68 50 43 49 54 55 35 45 48 60 49 32 47 48 53 66 34 42 41 54 39 38 41 46 40 52 41 38 50 42 49 55 51 40 53 62 48 36 57 48 47 43 32 44 45 49 29 32 47 50 35 53 36 45 50 37 45 47 42 53 38 36 39 39 41 39 48 56 41 39 55 44 46 33 53 37 39 41 34 42 32 44 48 47 35 41 42 42 33 44 35 46 40 42 26 43 45 33 31 44 44 46 49 47 43 40 41 39 39 49 37 33 41 49 41 43 40 51 29 36 46 38 36 35 45 34 49 38 36 51 39 29 35 27 29 45 31 46 35 32 40 37 51 50 48 40 48 37 43 28 36 32 42 41 45 47 36 39 42 61 43 35 40 25 36 37 34 38 38 36 45 37 36 33 38 31 42 34 44 35 37 21 40 31 40 32 43 42 34 28 44 51 43 33 39 39 41 44 40 40 47 27 44 40 42 37 40 37 35 31 35 42 45 30 32 43 28 36 31 30 41 44 43 40 37 45 35 53 40 34 54 38 27 41 38 42 46 39 36 38 35 40 47 30 26 34 32 46 41 35 41 43 42 40 27 29 45 34 36 30 44 45 41 39 29 43 34 35 35 32 42 39 36 40 31 33 39 35 37 36 31 44 30 43 35 43 39 50 32 35 32 39 46 40 39 41 39 35 40 32 26 31 35 44 38 33 36 33 37 27 38 27 29 36 48 39 29 42 38 29 30 43 42 32 23 42 33 25 45 29 34 33 32 37 32 43 36 43 47 38 45 42 35 43 35 24 33 30 51 37 21 30 50 34 32 40 24 21 34 34 28 24 34 28 24 25 38 42 37 51 38 36 42 33 32 24 32 26 38 34 28 42 28 17 31 33 29 40 43 35 27 32 33 35 36 29 31 47 29 34 34 20 33 33 32 36 39 34 36 37 44 28 30 34 33 33 32 25 35 28 31 32 19 32 36 31 25 31 29 43 39 36 42 37 28 34 37 41 33 37 35 41 33 46 38 36 49 61 55 57 47 57 68 63 70 84 69 102 92 81 75 71 71 54 48 51 49 48 48 42 35 38 37 37 38 32 40 32 34 30 39 33 30 38 35 32 43 26 31 29 35 36 28 29 29 32 34 30 30 39 39 32 37 35 40 37 40 38 28 40 26 31 31 32 36 38 31 32 34 38 38 28 33 29 31 36 32 34 33 37 23 38 34 30 36 41 24 22 31 33 27 34 33 32 31 34 29 27 29 32 34 30 32 29 31 36 32 30 27 40 25 28 38 32 30 30 45 32 21 32 32 29 33 34 30 32 24 24 29 37 25 38 31 35 27 31 33 29 34 37 38 32 38 38 32 43 32 33 28 26 42 34 37 31 41 31 31 23 33 41 37 33 33 30 33 36 26 37 38 37 26 38 25 29 40 32 33 32 33 29 29 26 37 27 34 29 44 31 36 29 39 35 30 35 42 33 34 36 36 32 33 28 27 49 33 40 37 36 32 30 33 32 45 37 26 45 39 33 36 39 28 45 56 44 36 41 40 49 38 41 30 36 49 40 40 39 43 46 32 45 36 41 39 52 52 51 55 55 59 71 74 73 72 84 101 102 118 129 151 179 192 237 294 296 359 483 592 700 887 1082 1211 1462 1677 1781 1887 1809 1897 1725 1551 1337 1312 1170 940 791 635 540 419 341 267 221 183 148 132 113 92 119 88 76 74 74 68 65 63 59 54 44 57 51 49 41 57 39 42 47 40 46 39 45 31 37 37 48 39 39 52 41 44 33 37 37 32 42 33 30 35 38 40 36 40 38 48 32 26 35 43 44 33 36 43 28 29 34 34 38 33 27 39 41 31 33 41 46 37 32 32 29 31 46 35 39 31 28 35 34 39 36 36 31 39 29 29 32 21 44 32 33 32 26 27 34 30 42 38 33 34 28 26 37 23 37 41 35 33 40 36 36 37 39 28 51 33 29 31 30 29 37 31 32 29 22 39 33 34 31 20 26 22 43 23 20 29 40 32 25 31 31 24 26 32 34 35 22 27 27 28 32 35 39 30 42 31 22 28 38 32 32 24 38 31 31 20 28 31 38 24 26 22 28 36 36 42 26 26 29 26 29 28 24 39 25 24 30 29 28 25 25 30 23 27 26 26 29 37 25 24 28 39 37 28 30 36 40 29 34 29 30 32 26 36 27 32 28 26 29 31 32 23 27 25 22 29 39 22 33 20 24 31 23 33 19 28 30 24 23 42 35 36 21 27 22 23 24 33 31 22 28 31 23 21 28 27 26 28 36 25 32 27 30 31 29 23 34 29 22 28 31 31 28 23 23 30 34 25 24 33 30 21 23 28 27 29 23 27 26 26 29 29 30 43 39 41 43 53 50 51 46 37 41 36 28 35 28 30 36 34 20 34 23 24 28 28 21 26 27 23 26 19 18 28 21 24 22 23 26 31 26 21 33 33 25 29 34 22 25 34 26 24 25 20 22 30 32 27 33 18 18 23 25 27 26 26 25 22 16 24 22 30 28 35 31 28 35 31 30 35 35 28 35 18 28 29 24 27 26 24 24 20 32 31 25 34 20 30 25 21 26 28 23 20 25 25 25 27 25 27 27 21 28 29 27 24 21 22 24 24 27 26 22 30 22 25 17 35 27 27 34 27 26 25 24 26 29 26 30 18 38 24 22 22 29 23 19 16 23 25 27 22 26 23 28 24 34 24 32 28 31 29 17 24 25 29 18 40 29 28 26 23 16 19 21 23 30 24 28 30 26 27 28 23 31 40 27 40 39 41 53 44 55 83 87 77 97 99 108 96 84 89 94 85 65 77 55 62 65 51 42 41 33 34 30 28 29 26 30 32 31 25 21 27 26 24 18 19 24 21 31 20 21 23 32 28 27 15 18 20 19 28 21 26 26 24 25 27 10 27 23 24 28 19 19 29 26 18 33 22 23 26 22 21 24 26 29 17 19 36 22 24 23 21 28 23 18 37 16 33 25 26 22 39 29 22 26 27 29 27 26 24 31 25 21 16 24 27 32 20 25 30 28 25 38 26 27 33 28 22 22 36 34 31 20 33 20 28 24 30 36 18 23 27 36 26 24 43 35 37 27 38 41 41 40 42 50 53 62 57 66 84 72 87 84 99 143 183 196 249 328 396 539 630 708 731 738 617 610 630 527 554 485 495 446 400 316 285 240 186 167 123 97 96 81 82 56 59 46 53 35 43 31 29 29 32 28 41 26 42 25 34 28 32 25 30 24 23 28 22 36 32 35 24 31 35 21 22 20 28 28 32 24 30 26 21 23 24 37 16 31 23 29 18 21 32 15 22 19 25 19 27 21 30 28 30 22 34 16 24 22 32 25 30 24 19 22 31 19 25 24 29 26 28 19 23 20 24 17 19 22 20 29 29 28 18 27 18 19 20 26 20 15 25 20 15 35 21 33 17 27 28 17 20 23 30 20 24 27 22 18 23 22 20 20 17 12 24 24 17 28 18 22 13 22 18 19 19 21 24 19 20 15 21 20 30 21 23 23 17 16 26 19 20 23 12 25 31 34 24 22 27 14 26 26 24 26 37 26 22 28 20 25 29 14 31 23 23 23 19 22 19 11 14 26 23 18 26 16 16 23 24 18 11 22 13 24 22 22 20 27 24 24 17 22 31 29 26 21 13 18 27 23 26 16 23 21 17 25 19 16 27 26 21 22 28 16 21 29 21 23 19 18 31 30 27 26 16 30 26 25 25 28 20 18 29 28 26 17 17 17 19 22 25 24 21 22 12 20 28 26 22 31 11 9 16 16 19 18 12 12 23 19 24 20 23 21 24 21 21 16 26 16 27 21 30 14 23 25 16 35 21 25 18 16 18 26 21 19 20 26 18 24 27 25 23 22 11 22 31 21 14 17 22 22 19 17 19 13 23 16 28 21 25 27 20 23 15 19 24 14 29 21 24 24 16 24 23 18 20 16 19 20 20 19 15 22 16 25 19 30 24 28 15 15 24 13 16 16 17 20 15 18 19 11 12 25 17 21 25 18 19 26 18 16 14 17 26 15 26 20 17 20 24 12 17 19 24 25 24 16 15 25 23 18 22 21 16 25 14 19 19 17 22 29 23 20 22 23 19 22 19 27 20 21 22 25 17 15 21 13 18 22 23 21 22 23 29 28 27 26 14 17 26 24 21 20 19 19 20 27 17 16 19 15 20 19 16 19 22 17 16 27 26 18 34 22 21 15 19 17 24 18 15 18 26 28 26 27 22 18 27 22 21 16 23 19 18 24 18 14 18 22 26 25 15 17 24 23 15 23 19 16 23 24 18 20 20 24 25 17 27 16 9 22 22 24 21 21 20 23 23 15 23 23 26 16 24 23 20 24 15 17 23 19 21 21 23 24 20 21 18 22 26 22 15 22 31 27 22 28 28 16 22 21 25 20 26 22 23 26 14 24 21 21 29 20 29 26 29 24 18 32 26 28 29 31 23 34 40 33 33 30 36 40 41 36 51 42 72 56 63 105 99 132 174 187 225 238 259 267 256 264 214 200 189 198 190 170 170 180 140 133 140 121 99 79 74 55 54 60 46 45 41 36 38 29 26 28 28 32 24 25 26 27 21 27 27 26 25 22 29 24 22 26 22 25 23 37 31 25 24 26 35 35 22 38 34 40 29 48 31 34 40 44 20 40 29 26 29 22 29 23 27 24 28 22 18 29 23 26 27 27 22 31 17 27 15 14 21 23 26 22 28 26 28 26 19 19 15 18 22 23 21 21 19 21 24 21 28 27 22 16 18 34 15 24 20 20 14 19 23 16 18 15 20 21 24 20 27 24 22 17 19 20 17 29 15 19 15 19 23 24 21 28 11 22 16 24 20 15 26 24 19 25 22 21 23 18 22 21 20 24 22 19 19 21 25 18 19 15 16 15 16 15 21 24 33 18 13 20 32 20 16 18 16 25 20 22 18 21 20 26 19 20 22 21 19 24 25 18 24 19 24 20 15 16 16 18 18 16 18 19 16 22 18 24 17 15 16 15 27 13 17 23 17 20 19 23 21 18 24 15 19 22 23 29 26 13 20 11 27 26 22 22 22 20 17 14 27 20 19 11 22 22 18 19 24 14 22 15 13 18 23 20 19 17 16 19 27 19 17 22 24 19 20 13 11 27 14 30 17 25 18 28 24 25 20 17 24 24 14 16 16 19 21 20 18 17 21 24 25 20 27 21 27 22 20 20 21 25 27 21 22 24 14 21 21 18 11 28 21 21 22 26 28 16 23 18 22 21 26 16 23 20 20 25 24 20 26 25 22 20 28 23 24 18 28 22 16 20 26 21 19 15 33 21 22 24 31 27 15 26 19 14 21 20 24 25 20 22 17 17 19 15 24 27 21 29 16 24 22 31 21 18 32 26 24 19 19 20 24 20 21 19 21 21 12 20 25 14 18 30 13 22 25 18 25 20 19 28 26 16 25 32 20 26 37 25 20 26 25 32 26 36 31 20 34 35 34 38 42 49 44 36 40 41 41 42 42 40 48 42 34 40 43 52 47 44 54 39 27 37 36 30 25 28 25 29 33 31 20 31 17 25 19 23 26 23 26 25 18 30 24 16 22 23 26 19 18 24 33 22 23 26 22 27 38 20 27 21 26 21 20 22 23 31 35 33 41 21 36 29 17 19 21 28 21 20 28 26 26 18 24 26 35 34 28 29 26 32 30 24 34 30 28 31 23 28 30 32 32 36 33 41 37 35 41 52 33 46 49 41 28 31 30 47 41 34 42 49 31 44 47 57 36 57 61 59 59 68 69 82 65 69 91 106 121 132 146 163 199 237 254 300 339 433 482 459 522 540 524 456 507 396 393 375 337 285 354 355 301 337 293 299 244 240 210 178 160 146 120 95 94 74 67 78 61 62 69 57 55 43 43 47 50 32 49 36 44 37 42 26 25 33 27 43 34 24 41 41 30 34 32 37 29 31 30 26 29 33 22 27 25 18 25 35 34 21 24 32 29 30 30 31 31 22 18 22 25 21 26 34 16 21 24 19 27 24 26 27 26 27 29 21 23 22 18 23 15 20 28 17 20 37 26 27 21 22 25 21 16 23 31 30 33 29 24 17 24 30 24 23 27 18 20 19 27 24 19 23 17 19 28 30 19 21 32 24 30 21 30 23 23 22 28 30 30 30 20 27 17 20 21 18 21 35 27 27 22 25 25 17 27 31 26 14 23 23 25 27 20 31 30 24 27 19 23 30 21 23 20 20 21 20 24 18 28 31 23 20 35 25 21 25 19 17 26 26 27 22 28 26 27 13 23 16 27 22 21 18 16 26 26 20 16 22 19 23 16 24 16 17 23 21 18 30 20 31 33 19 16 19 18 19 26 20 24 27 23 20 14 30 29 24 21 19 13 21 18 26 20 20 14 25 29 15 19 22 29 30 17 19 17 25 20 36 14 22 20 22 22 25 20 27 26 21 21 23 27 22 23 25 21 20 20 16 29 21 21 22 27 19 28 17 17 21 25 27 22 24 15 20 24 27 22 13 28 24 31 28 17 21 14 26 28 27 27 19 17 25 22 18 23 24 28 16 19 26 27 20 18 13 20 20 25 25 27 20 28 25 17 22 30 30 18 22 31 19 25 18 17 23 22 21 28 23 22 23 23 27 25 18 27 23 20 18 28 11 28 23 32 20 24 16 27 23 25 19 22 17 17 19 21 21 18 25 16 20 25 20 20 17 27 20 19 20 33 29 22 9 15 25 21 14 25 28 27 22 23 20 27 24 22 20 18 22 19 14 17 25 22 20 19 15 18 22 17 22 15 20 22 24 22 26 18 22 23 21 28 31 24 24 19 21 21 34 27 31 22 15 24 23 23 28 20 24 25 27 19 27 20 28 13 27 24 21 22 24 25 19 25 25 26 19 20 17 16 25 22 30 16 26 22 24 33 23 24 27 24 23 23 23 23 23 25 17 18 24 28 30 29 30 19 23 27 20 21 19 28 27 33 22 19 30 17 29 26 26 26 23 26 31 23 18 32 23 22 33 29 30 31 31 27 34 33 39 30 31 30 30 33 31 29 29 43 28 35 35 32 31 24 41 45 33 42 44 45 56 49 51 64 94 68 91 72 95 113 124 140 164 176 211 218 230 278 253 336 354 322 345 311 322 304 295 288 273 264 245 232 218 238 249 222 229 243 213 205 165 146 166 121 129 105 91 83 76 91 76 61 58 56 48 48 48 56 47 41 51 41 37 38 31 37 29 44 33 34 24 24 25 34 39 31 23 28 30 25 16 27 29 26 26 29 29 25 32 28 40 22 32 15 27 37 22 29 27 34 31 18 40 28 21 30 28 25 29 30 17 25 31 24 34 33 23 24 26 14 26 29 27 25 44 27 21 20 29 23 19 28 23 26 20 22 20 25 24 21 18 20 21 21 26 16 17 22 22 22 27 19 32 17 21 28 23 26 30 22 17 26 19 24 24 18 26 27 25 26 17 15 21 21 22 26 22 25 19 16 22 20 15 33 27 21 29 20 16 30 13 29 39 21 32 28 25 16 30 25 21 19 24 18 18 22 26 26 25 23 23 23 27 19 26 17 26 23 22 18 19 26 22 37 18 24 17 18 17 25 14 29 19 17 20 26 22 18 12 22 24 17 22 25 21 17 20 30 24 22 21 13 28 33 23 15 29 17 14 24 16 13 16 26 22 27 28 22 20 27 16 20 24 26 18 7 19 18 22 20 18 25 24 24 27 29 22 23 22 25 23 26 17 25 13 19 29 20 24 21 16 17 26 31 23 32 22 13 23 22 19 24 23 27 19 28 19 15 18 20 27 25 22 17 28 24 15 25 19 23 15 17 27 21 30 30 22 22 15 26 15 22 22 31 22 19 16 29 22 22 25 21 26 24 17 25 18 17 26 23 20 25 18 30 20 18 21 26 34 25 19 23 24 26 21 20 20 22 16 18 19 14 16 27 27 17 22 19 27 20 21 28 14 25 15 21 16 22 20 19 22 26 15 22 21 19 22 17 21 25 22 23 29 19 16 26 17 27 21 13 20 26 28 24 25 26 23 28 22 22 25 27 24 27 25 22 28 22 16 24 15 22 16 25 21 25 21 32 20 27 31 27 28 26 25 29 23 17 25 43 27 31 34 36 35 34 44 57 55 56 61 62 63 69 65 67 52 63 51 55 44 56 40 49 44 49 49 49 52 43 51 50 52 49 51 43 28 35 35 33 28 38 24 26 27 27 25 16 21 26 26 23 22 22 20 25 23 23 24 27 22 21 21 26 19 23 24 26 22 19 21 22 23 21 17 28 20 24 27 23 21 18 24 20 26 19 25 33 24 22 22 20 19 15 28 18 16 18 20 21 27 26 21 16 10 19 27 16 19 33 26 21 22 32 22 26 19 29 18 25 19 24 30 24 25 30 18 24 23 22 14 19 28 14 28 21 26 18 28 20 20 28 22 24 23 27 28 19 20 21 14 24 23 22 15 25 18 27 31 22 31 22 27 21 21 20 25 21 21 25 26 15 14 19 30 18 19 24 20 28 13 14 15 15 25 24 28 17 20 25 29 23 21 18 30 24 21 19 21 20 15 22 21 29 20 14 16 18 32 25 26 25 18 17 20 30 23 23 23 19 11 27 22 30 24 26 20 24 21 27 27 17 30 17 35 24 22 21 22 18 18 18 22 27 22 19 19 18 22 30 15 22 17 18 30 26 19 24 31 20 27 24 25 18 22 24 27 16 16 25 23 29 30 25 17 19 26 13 12 30 19 18 19 26 23 26 24 32 23 30 22 26 19 26 21 17 27 22 22 25 19 24 18 17 23 16 14 12 19 31 18 21 14 14 25 20 23 20 20 20 27 28 24 21 16 17 14 24 21 25 29 21 20 19 19 16 16 29 18 28 22 15 18 34 26 22 18 27 18 20 32 24 21 23 24 18 28 16 20 19 22 24 24 20 26 29 24 19 19 32 26 29 26 33 21 26 21 25 32 28 23 19 28 21 23 23 24 17 17 29 22 23 25 22 30 26 28 22 31 20 16 26 19 21 32 23 26 32 26 21 22 39 28 30 24 32 28 31 32 32 30 34 26 19 33 28 35 31 28 30 25 24 18 21 30 23 26 16 26 30 27 39 31 22 21 19 28 24 26 26 29 26 31 22 31 26 26 31 30 19 25 23 18 27 22 23 23 28 29 20 26 23 31 20 25 20 31 23 28 23 21 24 19 18 18 18 22 21 22 20 24 28 21 19 27 22 25 23 24 24 22 29 27 17 27 24 34 28 25 22 18 22 24 32 25 35 17 22 27 19 20 24 29 17 28 24 30 22 20 15 24 29 19 18 21 18 27 24 27 26 13 20 29 28 26 28 28 23 21 27 22 19 24 15 28 23 24 16 25 26 28 27 23 22 28 28 29 21 21 25 20 18 16 21 24 23 34 16 26 26 18 33 27 24 27 21 24 30 18 24 27 30 21 36 15 28 38 22 30 26 30 16 22 17 28 22 23 28 31 24 24 32 25 30 25 24 21 25 16 26 25 26 17 31 25 24 26 24 26 18 31 20 34 30 21 30 19 23 25 18 29 21 27 29 28 24 22 29 28 30 26 23 25 23 19 27 34 37 24 18 16 25 27 27 29 25 28 17 21 22 36 17 30 25 27 26 27 31 20 35 19 21 25 31 29 21 32 28 26 23 24 29 25 26 19 25 27 22 23 30 31 22 25 23 25 21 30 22 29 26 29 35 24 22 16 23 24 21 19 19 29 27 21 27 28 27 32 22 36 26 20 27 28 36 30 26 24 34 34 42 32 31 24 16 27 27 25 29 35 22 33 21 41 26 26 28 38 22 27 25 26 30 25 31 26 31 27 28 31 20 24 27 32 30 23 31 29 33 27 27 23 30 28 34 35 28 40 29 35 29 25 35 32 25 33 36 31 39 37 34 26 39 43 26 37 31 33 32 35 27 31 50 41 38 48 35 34 42 34 40 45 55 51 59 50 56 60 75 71 78 84 92 93 97 92 103 114 131 117 120 139 114 122 110 131 102 107 118 128 115 101 105 94 103 81 86 98 97 80 82 79 88 75 92 80 85 73 78 71 87 86 66 72 55 82 66 60 43 59 54 46 51 59 45 54 55 46 41 40 31 47 41 32 47 38 31 40 33 34 33 37 31 37 28 38 32 31 31 24 37 31 32 39 35 31 32 31 30 28 36 34 33 34 31 38 33 28 43 33 37 29 30 31 28 36 33 25 35 26 31 27 26 18 29 26 30 34 39 24 43 30 28 32 18 22 37 32 37 28 25 26 40 26 37 25 33 36 28 38 37 29 42 39 32 35 28 27 25 34 32 30 27 31 30 30 29 36 41 32 26 29 42 32 37 32 37 34 30 35 34 30 34 40 39 27 38 35 36 30 35 28 26 29 28 36 35 30 38 40 33 27 40 36 39 32 24 40 34 32 37 33 36 28 44 34 23 31 28 26 26 25 35 34 24 21 32 36 30 38 28 37 30 38 26 31 38 26 28 39 35 27 27 32 21 35 34 40 27 27 33 42 21 43 27 31 36 37 29 20 25 39 30 31 28 16 35 31 25 27 46 36 31 35 32 26 30 34 30 28 37 35 36 22 36 40 27 28 32 24 41 29 37 26 33 32 43 36 33 31 30 36 37 33 29 31 26 37 31 30 39 36 33 30 25 28 39 25 30 31 23 24 29 38 34 35 31 21 19 39 17 31 32 31 40 36 28 42 35 25 30 26 43 36 25 34 29 29 24 31 28 35 31 22 29 20 29 34 30 45 25 26 31 33 36 37 32 40 32 26 38 34 26 43 30 29 37 26 28 28 39 34 31 30 44 34 40 29 29 35 40 33 38 32 36 39 34 27 33 33 24 42 25 23 41 30 32 32 27 24 37 31 27 21 40 31 36 26 36 29 33 33 28 41 22 38 27 39 39 42 29 34 31 27 25 29 22 29 30 25 45 28 33 29 38 40 35 34 30 38 30 40 35 29 32 32 37 27 24 33 45 27 38 29 32 30 36 35 37 39 34 34 40 42 36 23 29 42 43 32 25 34 32 30 29 32 41 34 41 33 29 30 31 37 35 36 39 37 28 29 41 40 32 40 30 23 28 23 34 41 33 22 46 28 31 45 31 36 42 44 32 31 39 41 32 37 34 52 35 43 33 35 30 41 39 28 38 47 35 38 39 35 36 42 43 35 36 35 27 36 30 42 39 50 35 40 28 27 38 35 37 40 33 40 43 43 30 44 48 40 44 36 42 36 47 41 33 47 40 33 47 40 48 49 45 53 43 32 52 38 46 40 57 49 47 50 49 40 58 64 43 41 54 57 52 64 48 71 60 78 75 66 62 83 77 81 94 84 87 65 97 97 64 84 76 71 72 62 72 71 61 46 51 71 62 67 70 62 70 61 58 61 60 65 79 71 74 73 62 58 48 65 73 62 58 50 61 59 63 55 54 64 43 57 54 51 54 50 60 45 47 57 46 42 49 49 48 44 51 47 40 37 42 35 51 46 39 35 35 51 42 51 39 35 37 46 35 33 32 37 37 29 37 40 48 38 31 34 42 43 35 32 47 36 29 49 29 33 51 46 40 45 46 43 41 54 34 44 44 52 35 43 31 42 41 46 46 48 45 34 37 39 42 42 43 52 30 43 44 45 41 54 40 43 45 33 42 35 53 62 44 32 38 55 42 48 52 42 48 51 41 59 43 53 56 59 51 51 51 52 59 41 59 55 53 44 57 50 58 46 59 44 44 43 51 49 50 53 54 51 63 56 58 47 67 75 75 61 72 70 70 66 76 69 72 79 73 86 100 79 103 96 109 115 128 114 113 99 121 139 146 144 154 160 147 183 178 190 204 205 226 232 249 271 254 282 290 296 288 295 301 309 326 303 286 267 283 292 268 303 241 261 253 280 218 225 244 206 195 224 205 196 225 192 212 198 205 211 187 211 182 194 188 227 223 212 222 195 221 196 221 201 186 172 195 174 191 170 177 165 170 146 157 137 146 141 124 122 121 117 99 102 106 86 95 87 97 80 95 79 67 85 80 66 89 69 63 63 72 71 63 72 72 68 58 68 64 56 57 74 72 56 61 46 48 66 45 50 42 39 59 44 45 64 49 52 47 59 50 42 43 48 46 48 52 57 68 41 46 40 42 47 42 43 46 52 42 47 60 35 49 52 40 41 55 40 42 42 42 41 40 49 42 49 39 45 46 41 48 36 41 46 38 41 39 54 41 44 36 43 43 51 36 31 54 48 44 53 48 48 47 36 31 45 42 42 44 37 48 47 40 49 45 48 38 41 48 41 38 44 43 46 32 42 47 37 46 44 42 45 54 47 37 41 50 44 48 45 50 52 36 38 39 46 30 43 46 47 42 37 32 45 38 35 37 36 40 40 46 53 32 31 31 41 42 37 44 45 42 47 32 47 30 35 57 36 46 44 27 40 48 43 47 34 40 32 42 32 34 44 36 40 46 38 51 43 44 42 36 46 38 40 36 35 36 45 35 47 31 45 41 44 47 35 49 50 44 50 44 48 44 42 41 43 44 33 47 38 33 34 43 33 47 48 36 54 40 37 38 43 36 39 40 40 53 35 45 46 53 40 55 31 44 46 49 33 39 48 49 46 48 45 36 40 41 52 34 42 41 49 38 37 38 43 40 48 36 42 38 41 43 52 28 35 35 46 47 27 42 34 44 38 22 37 46 37 27 46 36 31 36 35 46 30 41 33 46 43 35 43 31 38 36 39 54 34 53 36 35 36 38 44 49 42 45 37 36 42 49 50 40 40 37 49 37 37 53 38 44 53 48 50 32 36 35 37 36 40 47 50 42 50 44 55 51 41 36 42 38 42 39 40 40 37 49 28 37 41 42 37 35 44 48 37 45 55 43 43 49 46 48 42 40 36 34 36 44 47 37 47 39 47 43 41 30 52 40 39 40 43 43 43 40 45 47 34 43 43 43 39 31 52 52 43 42 39 52 30 45 56 52 46 41 44 44 40 41 40 43 42 38 41 37 54 43 37 40 46 49 38 44 44 36 54 58 32 49 41 45 39 41 36 40 30 44 53 43 38 38 44 46 47 45 40 44 50 51 37 38 44 45 46 48 52 42 51 39 44 43 34 48 35 50 34 40 34 40 42 33 45 35 35 41 38 36 57 47 35 44 34 40 41 33 37 41 49 35 45 35 49 42 52 44 42 49 42 46 50 40 50 58 29 37 39 48 40 40 43 42 40 39 61 50 46 52 35 44 54 40 38 45 49 38 39 50 40 35 35 39 36 44 46 36 42 37 31 43 49 38 40 45 48 34 37 47 59 50 60 46 37 46 37 45 43 49 41 44 36 49 37 33 44 53 50 49 49 51 42 40 54 49 48 42 44 42 38 37 41 45 44 49 44 34 46 44 41 31 44 36 49 39 51 43 41 53 37 41 47 39 46 39 44 40 36 42 50 49 39 47 44 45 48 49 44 50 46 43 50 45 43 50 43 43 48 36 45 38 40 49 31 46 52 51 43 42 46 44 49 40 48 29 48 53 38 42 44 31 37 49 46 48 46 47 39 42 45 40 44 53 56 57 41 31 52 45 45 39 32 48 45 42 51 38 47 39 47 35 44 43 37 47 55 50 41 52 33 53 44 35 36 48 52 36 31 44 38 37 42 39 38 47 45 40 51 39 60 45 30 48 42 50 49 46 36 44 35 42 40 41 39 50 44 42 38 55 50 40 47 42 44 44 48 37 39 diploma-1.2.11/diploma_1/res/0000755000000000000000000000000007036505020012542 5ustar diploma-1.2.11/diploma_1/Makefile0000644000000000000000000000762711645051050013425 0ustar # # Makefile # # Example 1 of the Debian package diploma # # Copyright (C) 1999 Andreas Franzen # # See the file copyright for details. # # The final target is diploma_1.pdf. diploma_1.pdf : diploma_1.ps ps2pdf diploma_1.ps # The next target is diploma_1.ps. This depends on the # document in dvi-format and the figures. diploma_1.ps : diploma_1.dvi src/XRD.eps fig/salt.eps fig/salt2.eps dvips -o diploma_1.ps diploma_1 # These are numeric parameters which are included in the text. parameters = min2theta.tex max2theta.tex stepnumber.tex stepsize.tex \ lambdaKalpha1.tex lambdaKalpha2.tex lambdaKbeta.tex # The dvi-file is generated by latex from the tex-source. The bounding boxes # of the included figures are needed and also the data of the table. diploma_1.dvi : diploma_1.tex src/XRD.eps fig/salt.eps fig/salt2.eps \ res/table1.tex res/result.tex $(parameters) latex diploma_1 ; latex diploma_1 ; latex diploma_1 # The program poisson2gauss converts Poisson distributed noise to # Gaussian distributed noise. bin/poisson2gauss : src/poisson2gauss.c cc -Wall -o bin/poisson2gauss src/poisson2gauss.c -lm # res/salt1.dat is the original data set converted to Gaussian distributed # noise and fitted with 2*Theta values to create an xy-data set. res/salt1.dat : bin/poisson2gauss bin/addx dat/salt.dat bin/poisson2gauss < dat/salt.dat | bin/addx > res/salt1.dat # res/salt2.dat is created like res/salt1.dat with an additional denoising # stage after the conversion from Poisson distributed noise to Gaussian # distributed noise. res/salt2.dat : bin/poisson2gauss bin/addx dat/salt.dat bin/poisson2gauss < dat/salt.dat | wzip -hdn 7536 4 | \ bin/addx > res/salt2.dat # The program addx is used to fit the measurement data with 2*Theta values. # It is compiled with cc and depends on its source code src/addx.c and # an included header file inc/salt.h. bin/addx : src/addx.c inc/salt.h cc -Wall -o bin/addx src/addx.c # The figure fig/salt.eps is a simple plot of the original measurement data. # It depends only on the measurement data set dat/salt.dat and is created # by use of the program graph from the Debian package plotutils. # The output of graph is piped through the stream editor "sed" to change # every occurence of "setlinejoin" to "pop 1 setlinejoin". Same with # "setlinecap". In the standard mode corners of the graph are ploted with # sharp edges. With a large number of noisy measurement data, this tends # to visually increase the amplitude of the noise. Mode 1 means rounded # line joins and line caps. fig/salt.eps : dat/salt.dat graph -T ps -f 0.06 -h 0.4 -a -X "step number" -Y "counts per step" \ dat/salt.dat | sed -e \ "s/setlinejoin/pop 1 setlinejoin/g;s/setlinecap/pop 1 setlinecap/g" \ > fig/salt.eps # fig/salt2.eps shows the processed data sets res/salt1.dat and res/salt2.dat. fig/salt2.eps : res/salt1.dat res/salt2.dat graph -T ps -f 0.08 -h 0.2 -w 0.6 -u 0.6 \ --blankout 1.0 \ -y 0 150 50 res/salt1.dat \ --reposition 0 -0.26 1.0 \ -y 0 25 5 -Y "transformed counts per step" res/salt1.dat \ --reposition 0 -0.52 1.0 \ -X "diffraction angle 2\*H in \de" -Y "" res/salt2.dat \ | sed -e \ "s/setlinejoin/pop 1 setlinejoin/g;s/setlinecap/pop 1 setlinecap/g" \ > fig/salt2.eps # The first call of the stream editor sed converts any . into a ,. The # second replaces any space by an invisible 0. res/table1.tex : res/table1.dat sed y/./,/ < res/table1.dat | sed s/' '/'\\phantom{0}'/g \ > res/table1.tex res/table1.dat res/result.tex : bin/table1 bin/table1 > res/table1.dat bin/table1 : src/table1.c inc/salt.h cc -Wall -o bin/table1 src/table1.c -lm # The program parameters.c creates files which contain the numerical # parameters in the text. bin/parameters : inc/salt.h src/parameters.c cc -Wall -o bin/parameters src/parameters.c $(parameters) : bin/parameters bin/parameters diploma-1.2.11/diploma_1/fig/0000755000000000000000000000000007036505020012516 5ustar diploma-1.2.11/diploma_1/bin/0000755000000000000000000000000007036505020012521 5ustar diploma-1.2.11/diploma_1/inc/0000755000000000000000000000000007036505020012522 5ustar diploma-1.2.11/diploma_1/inc/salt.h0000644000000000000000000000051407036505020013636 0ustar /* * salt.h * * Example 1 of the Debian package diploma * * Copyright (C) 1999 Andreas Franzen * * See the file copyright for details. */ #define min2theta 10.0 #define max2theta 160.7 #define stepnumber 7536 #define lambdaKalpha1 0.1788965e-9 #define lambdaKalpha2 0.1792850e-9 #define lambdaKbeta 0.162079e-9 diploma-1.2.11/debian/0000755000000000000000000000000011645066213011335 5ustar diploma-1.2.11/debian/compat0000644000000000000000000000000211502230612012517 0ustar 7 diploma-1.2.11/debian/README.debian0000644000000000000000000000164711645050516013445 0ustar diploma for DEBIAN ------------------ The package diploma is a collection of examples for the writing of publication quality scientific papers. To process an example, you should extract the corresponding archive file somewhere in your home directory. tar -xvzf /usr/share/doc/diploma/examples/diploma_1.tar.gz Then change into the top level directory of the extracted source. cd diploma_1 See the file /usr/share/doc/diploma/contents for a list of the special packages needed by each example. You must install these packages also to process the example. Then you just need to start "make" make to get a print file diploma_1.ps which can be previewed with gv or ghostview and a file diploma_1.pdf. diploma is originally written for inclusion into the Debian GNU/Linux system. Copyright (C) 1999 Andreas Franzen See the file copyright for details. Andreas Franzen , Tue, 11 Jan 2000 02:42:18 +0100 diploma-1.2.11/debian/postinst0000644000000000000000000000031111575745270013147 0ustar #!/bin/sh set -e if [ "$1" = "configure" ]; then if [ -d /usr/doc -a -h /usr/doc/diploma -a -d /usr/share/doc/diploma ]; then rm -f /usr/doc/diploma fi fi #DEBHELPER# diploma-1.2.11/debian/copyright0000644000000000000000000000071110412310064013252 0ustar This package was debianized by Andreas Franzen on Fri, 01 Jan 1999 23:49:56 +0100. 'diploma' is written for inclusion into the Debian GNU/Linux distribution. This software is copyright (C) 1999 by Andreas Franzen You are free to distribute this software under the terms of the GNU General Public License. On Debian systems, the complete text of the GNU General Public License can be found in the file /usr/share/common-licenses/GPL'. diploma-1.2.11/debian/rules0000755000000000000000000000305711645041420012413 0ustar #!/usr/bin/make -f # debian/rules of the Debian package "diploma" # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. # This version is for packages that are architecture independent. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: dh_testdir # Add here commands to compile the package. $(MAKE) touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp install-stamp # Add here commands to clean up after the build process. #-$(MAKE) clean $(MAKE) distclean dh_clean install: install-stamp install-stamp: build-stamp dh_testdir dh_testroot dh_prep dh_installdirs -rm -r debian/tmp/usr/doc -rm -r debian/tmp/usr/man # Add here commands to install the package into debian/tmp. #$(MAKE) prefix=`pwd`/debian/tmp/usr install touch install-stamp # Build architecture-independent files here. binary-indep: build install # dh_testversion dh_testdir dh_testroot dh_installdocs contents dh_installexamples diploma*.tar.gz dh_installmenu # dh_installemacsen # dh_installinit dh_installcron # dh_installmanpages # dh_undocumented dh_installchangelogs dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb # Build architecture-dependent files here. binary-arch: build install # We have nothing to do by default. source diff: @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install diploma-1.2.11/debian/changelog0000644000000000000000000000707711645065051013221 0ustar diploma (1.2.11) unstable; urgency=low * added targets build-arch and build-indep to debian/rules * removed obsolete package tetex from Sugests: * added texlive-latex-base and gv to the file contents * changes in galaxy.c of diploma_3 to address compatibility with convert -- Andreas Franzen Tue, 11 Oct 2011 14:36:11 +0200 diploma (1.2.10) unstable; urgency=low * Updated to policy standard 3.9.2 * Added Depends: ${shlibs:Depends} to debian/control * Changed dh_clean -k into dh_prep in debian/rules * updated Build-Depends: debhelper (>> 7.0.0) in debian/control * added set -e to debian/postinst -- Andreas Franzen Tue, 14 Jun 2011 22:03:29 +0200 diploma (1.2.9) unstable; urgency=low * Updated to policy standard 3.8.0 -- Andreas Franzen Wed, 15 Dec 2010 22:14:52 +0100 diploma (1.2.8) unstable; urgency=low * Added a statement to set the text rotation to 0 in diploma_2/prog2.c. -- Andreas Franzen Thu, 13 Dec 2007 00:38:50 +0100 diploma (1.2.7) unstable; urgency=low * Changed Build-Depends-Indep into Build-Depends. * Include texlive as alternative to tetex and change depends to suggests (Closes: #427553). -- Andreas Franzen Wed, 12 Dec 2007 20:01:48 +0100 diploma (1.2.6) unstable; urgency=low * Non-maintainer upload. * Get rid of the /usr/doc link in postinst (Closes: #359392). -- Amaya Rodrigo Sastre Thu, 13 Jul 2006 20:58:45 +0200 diploma (1.2.5) unstable; urgency=low * Updated to policy standard 3.6.1.1 * Changed the copyright-file to reference common-licenses * Removed add-log-mailing-address in the changelog-file * Removed dh_suidregister in the rules-file * Changed 'made from' into 'made of' in example 1 -- Andreas Franzen Tue, 28 Mar 2006 21:30:20 +0200 diploma (1.2.4) unstable; urgency=low * Updated to policy standards 3.5.9 * Changed Build-Depends in the control file into Build-Depends-Indep. -- Andreas Franzen Mon, 31 Mar 2003 21:11:24 +0200 diploma (1.2.3) unstable; urgency=low * The packages needed to compile the first three examples are now in the Depends: field instead of Recommends:. -- Andreas Franzen Tue, 28 Aug 2001 21:51:56 +0200 diploma (1.2.2) testing unstable; urgency=low * Added "Build-Depends: debhelper" to debian/control. -- Andreas Franzen Sat, 18 Aug 2001 09:18:28 +0200 diploma (1.2.1) testing unstable; urgency=low * Changed the short description in debian/control. * Added imagemagick to the "Depends:" field. -- Andreas Franzen Sat, 18 Aug 2001 08:46:49 +0200 diploma (1.2.0) unstable; urgency=low * Added example 3. * Changed section entry from doc to science. -- Andreas Franzen Mon, 20 Mar 2000 01:09:21 +0100 diploma (1.1.1) unstable; urgency=low * Changed to policy 3.1.1.1. -- Andreas Franzen Tue, 11 Jan 2000 02:42:18 +0100 diploma (1.1.0) unstable; urgency=low * Added example 2. -- Andreas Franzen Sun, 10 Oct 1999 15:31:52 +0200 diploma (1.0.1) unstable; urgency=low * Changed the short description in debian/control. * Changed the generation of graphs to rounded line caps and line joins. * The additionally needed packages are listed in contents. -- Andreas Franzen Sat, 4 Sep 1999 12:50:26 +0200 diploma (1.0.0) unstable; urgency=low * Initial Release. -- Andreas Franzen Sun, 10 Jan 1999 01:00:56 +0100 diploma-1.2.11/debian/ergebnis0000644000000000000000000000004011575737221013056 0ustar Tue, 14 Jun 2011 22:03:29 +0200 diploma-1.2.11/debian/control0000644000000000000000000000152011645043613012735 0ustar Source: diploma Section: doc Priority: optional Maintainer: Andreas Franzen Standards-Version: 3.9.2 Build-Depends: debhelper (>> 7.0.0) Package: diploma Architecture: all Depends: ${misc:Depends} Suggests: texlive-latex-base,gcc|c-compiler,plotutils,wzip,gv,imagemagick Description: Write scientific papers with Debian Debian GNU/Linux is widely used at universities to do research and to write papers with LaTeX. The package diploma contains examples which illustrate the possible ways to do this effectively with Debian GNU/Linux. Each example consists of a source tree where you can do "make" in the top level directory and then the source code is compiled, the measurement data are processed, and the results are converted into nice figures. Then the text is processed and combined with the figures to a print file. diploma-1.2.11/Makefile0000644000000000000000000000034007065265463011561 0ustar #!/usr/bin/make -f all : tar -cvzf diploma_1.tar.gz diploma_1 tar -cvzf diploma_2.tar.gz diploma_2 tar -cvzf diploma_3.tar.gz diploma_3 distclean : rm -f diploma_1.tar.gz rm -f diploma_2.tar.gz rm -f diploma_3.tar.gz diploma-1.2.11/diploma_2/0000755000000000000000000000000010730070547011760 5ustar diploma-1.2.11/diploma_2/rawdata.dat0000644000000000000000000000025207036505020014066 0ustar 578 0.374 0.380 0.374 0.371 546 0.494 0.495 0.495 0.492 492 0.793 0.751 0.805 0.744 435 1.069 1.073 1.079 1.065 405 1.274 1.272 1.284 1.269 365.5 1.638 1.645 1.663 1.646 diploma-1.2.11/diploma_2/prog2.c0000644000000000000000000000213110730070214013141 0ustar /* prog2.c */ #include #include int main() { int i; double x,y,s,s1,s2,s3,s4,s5,a,b; double sigmaa,h,sigmah,e0; FILE *f; s1=0.0; s2=0.0; s3=0.0; s4=0.0; s5=0.0; for(i=1;i<=6;i++) { scanf("%lf%lf%lf",&x,&y,&s); x=x*1.0e15; s1=s1+1.0/s/s; s2=s2+x*y/s/s; s3=s3+y/s/s; s4=s4+x/s/s; s5=s5+x*x/s/s; } a=(s1*s2-s3*s4)/(s1*s5-s4*s4); b=(s5*s3-s4*s2)/(s1*s5-s4*s4); f=fopen("a.dat","w"); fprintf(f,"%e",a); fclose(f); sigmaa=sqrt(s1/(s1*s5-s4*s4)); f=fopen("sigmaa.dat","w"); fprintf(f,"%e",sigmaa); fclose(f); e0=1.60217733e-19; h=a*e0; sigmah=sigmaa*e0; f=fopen("h.meta","w"); fprintf(f,"#PLOT 2\n"); fprintf(f,"o\n"); fprintf(f,"FHersheySans\n"); fprintf(f,"S 100\n"); fprintf(f,"m 1820 930\n"); fprintf(f,"R 0\n"); fprintf(f,"Tlb\\f2h\\f1 = (%.3f\\+-%.3f)\\md10\\sp-34\\epJs\n", h/1.0e-34,sigmah/1.0e-34); fprintf(f,"x\n"); fclose(f); printf("%e %e\n",0.5,0.5e15*a+b); printf("%e %e\n",0.85,0.85e15*a+b); return 0; /* important to report success to the make command */ } diploma-1.2.11/diploma_2/Makefile0000644000000000000000000000242607063566246013437 0ustar # # Makefile # # Example 2 of the Debian package diploma # # Copyright (C) 1999 Andreas Franzen # # See the file copyright for details. # # The final target is the print file fig.eps. # fig.eps depends on fig.meta and pic.meta. fig.meta is the diagram produced # by graph and pic.meta is a hand-made additional picture to be included. fig.eps : fig.meta pic.meta h.meta plot -T ps -s fig.meta h.meta pic.meta > fig.eps # The diagram produced by graph contains the processed measurement data in # data.dat and two points of the regression-line in regdata.dat. fig.meta : data.dat regdata.dat graph -O -F HersheySans -X "frequency \*n in 10\sp15\eps\sp-1" \ -Y "voltage \f2U\f1 in V" -S 1 -m 0 -I e data.dat \ -m 1 -I a regdata.dat > fig.meta # In the raw measurement data there are 4 individual measurements for each # wavelength. These are converted by use of prog into single values with the # corresponding statistical error. data.dat : prog rawdata.dat ./prog < rawdata.dat > data.dat # From the data points in data.dat a regression line is computed. Two points # on this line are then saved in regdata.dat. regdata.dat h.meta : prog2 data.dat ./prog2 < data.dat > regdata.dat prog : prog.c gcc -Wall -o prog prog.c -lm prog2 : prog2.c gcc -Wall -o prog2 prog2.c -lm diploma-1.2.11/diploma_2/prog.c0000644000000000000000000000065007036505020013066 0ustar /* prog.c */ #include #include int main() { int i; double x,y,y1,y2,y3,y4,s; for(i=1;i<=6;i++) { scanf("%lf%lf%lf%lf%lf",&x,&y1,&y2,&y3,&y4); x=299792458.0/(x*1.0e-9)/1.0e15; y=(y1+y2+y3+y4)/4; s=sqrt(((y1-y)*(y1-y)+(y2-y)*(y2-y)+(y3-y)*(y3-y)+(y4-y)*(y4-y))/3); printf("%e %e %e\n",x,y,s); } return 0; /* important to report success to the make command */ } diploma-1.2.11/diploma_2/pic.meta0000644000000000000000000000102007036505020013366 0ustar #PLOT 2 o FHersheySans S 100 m 1020 1130 Tltyellow m 1230 1320 Tltgreen m 1640 1640 Tltblue-green m 2220 2200 Tltviolet m 2560 2520 Tltviolet m 2990 2960 Trbultra-violet # translate 1400 to the right and 2700 up \ 1 0 0 1 1400 2700 # the bulb, circle at 0,0 radius 100 c 0 0 100 # the cathode connector, line from 80,0 to 200,0 l 80 0 200 0 # the light sensitive cathode, arc from 0,-80 to 0,80, center at 0,0 a 0 0 0 -80 0 80 # the anode connectors l -200 40 -100 40 l -200 -40 -100 -40 # the anode a -100 0 -100 -40 -100 40 x diploma-1.2.11/contents0000644000000000000000000000137311645066111011674 0ustar Examples in the Debian GNU/Linux package diploma. diploma_1 - processing of measurement data - plotting with plotutils - writing simple graphics in ghostscript - inserting calculated data in LaTeX documents - needs the Debian packages texlive-latex-base, ghostscript, gv, c-compiler, plotutils and wzip diploma_2 - preprocessing of measurement data - plotting with error-bars - inserting simple graphics and text into plots - needs the Debian packages ghostscript, gv, c-compiler and plotutils diploma_3 - graphical programming in C by using ghostscript statements - including a scaled and rotated part of a gray-scale raster image - needs the Debian packages ghostscript and imagemagick - 'display galaxy.eps' or 'ghostscript galaxy.eps' show the result.