%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
%%% File: Sample-Thesis.tex, version 1.0, December 2015
%%% =============================================
%%% Copyright (c) 2015 by Yıldıray Keskin All rights reserved.
%%% This file is free and can be modified or distributed as long as
%%% you meet the following conditions:
%%% (1) This copyright notice is kept intact on all modified copies.
%%% (2) If you modify this file, you MUST NOT use the original file name.
%%%
%%% This file contains a template that can be used with the package
%%% iyte.sty and LaTeX2e to produce a thesis that meets the requirements
%%% of Selcuk University.
%%%
%%% All of the commands defined by selcuk.sty have default values (see
%%% the file selcuk.sty for these values). Thus, theoretically, you
%%% don't need to define values for any of them; you can run this file
%%% through LaTeX2e and produce an acceptable thesis, without any text.
%%% However, you probably want to set at least some of the macros (like
%%% \thesisauthor). In that case, replace "..." with appropriate values,
%%% and uncomment the line (by removing the leading %'s).
%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[12pt]{report} %% main class file
\usepackage[utf8]{inputenc} %% necessary for Turkish characters appeared in Özet
%% Some useful packages, u can remove them or add more
\usepackage{amssymb,amsmath,epsfig,rawfonts}
\usepackage{theorem,latexsym}
\usepackage{amsmath,amssymb,natbib}
\usepackage{multicol,multirow}
\usepackage{float}
%\usepackage{makeidx} %% use this pack to add an index page
%\makeindex %% to make an index
%\usepackage[numbers]{natbib}
\usepackage{selcuk} %% Style file for Selcuk University
\geometry{
paper=a4paper, % Change to letterpaper for US letter
inner=3.0cm, % Inner margin
outer=3.0cm, % Outer margin
bindingoffset=1cm, % Binding offset
top=2cm, % Top margin
bottom=2cm, % Bottom margin
%showframe,% show how the type block is set on the page
}
\renewcommand{\baselinestretch}{1.5}
%\thesisdraft %% Uncommenting this prints timestamp on the pages
%----------------------------------------------------------------------------------------
% TEZ BİLGİLERİ
%----------------------------------------------------------------------------------------
\renewcommand{\thesisauthor}{Y\i ld\i ray KESK\.IN} %% Your name.
\renewcommand{\thesisdepartment}{Matematik} %% Your department name.
\renewcommand{\thesismonth}{Aral\i k} %% Your month of graduation.
\renewcommand{\thesisyear}{2010} %% Your year of graduation.
\renewcommand{\thesisdefense}{23/12/2010} %% Your defense date.
\renewcommand{\thesisdegree}{DOKTORA}
% The title of your thesis; use mixed-case.
\renewcommand{\thesistitle}{Reduced Differential Transform Method}
%% Turkish title of your thesis. Please use all capitals, latex cannot make upper case automatically due to Turkish character problem
\renewcommand{\thesistitleturkish}{\.IND\.IRGENM\.I\c{S} D\.IFERANS\.IYEL DÖNÜ\c{S}ÜM YÖNTEM\.I}
\renewcommand{\thesissupervisor}{Prof. Dr. Galip OTURANÇ}
\renewcommand{\thesisdean}{Prof. Dr. Aş\i r GENÇ}
\renewcommand{\thesisauthoraddress}{KONYA}
%% Your permanent address; use "\\" for
%% linebreaks.
\renewcommand{\bibname}{KAYNAKLAR} %% You can say REFERENCES, LIST OF REFERENCES etc.
%----------------------------------------------------------------------------------------
% TEZ icerisindeki Bilgiler
%----------------------------------------------------------------------------------------
\theoremstyle{definition}
%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{lipsum}
% it's just to generate some text in this sample document.
% you can safely remove it.
\begin{document}
\thesistitlepage %% Generate the title page.
%%%
%%% Generate Tez Kabul page.
%%%
\begin{tezkabul}
\thesisauthor \, taraf\i ndan haz\i rlanan "{\it \thesistitleturkish}" adl\i tez çal\i şmas\i \thesisdefense \, tarihinde aşa\u{g}\i daki jüri taraf\i ndan oy birli\u{g}i / oy çoklu\u{g}u ile Selçuk Üniversitesi Fen Bilimleri Enstitüsü \thesisdepartment \, Anabilim Dal\i 'nda \thesisdegree \,TEZ\.I olarak kabul edilmiştir.
\vspace*{3.5cm}
\noindent\textbf{Jüri Üyeleri} \hfill \textbf{\.Imza \hspace{0.7cm}} \bigskip \\
\noindent\textbf{Başkan}\\
\textbf{Prof. Dr. Durmuş BOZKURT} \hfill \textbf{\rule{0.2\textwidth}{.4pt}} \medskip \\
\noindent\textbf{Dan\i şman} \\
\noindent\textbf{\thesissupervisor} \hfill \hfill \textbf{\rule{0.2\textwidth}{.4pt}} \medskip \\
\noindent\textbf{Üye} \\
\noindent\textbf{Prof. Dr. \.Idris DAĞ} \hfill \hfill \textbf{\rule{0.2\textwidth}{.4pt}} \medskip \\
\noindent\textbf{Üye} \\
\noindent\textbf{Prof. Dr. Aş\i r GENÇ} \hfill \hfill \textbf{\rule{0.2\textwidth}{.4pt}} \medskip \\
\noindent\textbf{Üye} \\
\noindent\textbf{Yard. Doç. Dr. Hasan KÖSE} \hfill \hfill \textbf{\rule{0.2\textwidth}{.4pt}} \medskip \\
Yukar\i daki sonucu onaylar\i m.
\begin{flushright}
\thesisdean \\
FBE Müdürü
\end{flushright}
Bu tez çal\i şmas\i ?????. taraf\i ndan ????. nolu proje ile desteklenmiştir.
\end{tezkabul}
%%%
%%% Generate Bildirim page.
%%%
\begin{bildirim}
Bu tezdeki bütün bilgilerin etik davran\i ş ve akademik kurallar çerçevesinde elde edildi\u{g}ini ve tez yaz\i m kurallar\i na uygun olarak haz\i rlanan bu çal\i şmada bana ait olmayan her türlü ifade ve bilginin kayna\u{g}\i na eksiksiz at\i f yap\i ld\i \u{g}\i n\i bildiririm.
\bigskip
\bigskip
\begin{center}
\bfseries\MakeUppercase DECLARATION PAGE
\end{center}
I hereby declare that all information in this document has been obtained and presented in accordance with academic rules and ethical conduct. I also declare that, as required by these rules and conduct, I have fully cited and referenced all material and results that are not original to this work.
\bigskip
\begin{flushright}
\textbf{\rule{0.2\textwidth}{.4pt}} \\
\thesisauthor \\
Tarih: 15/11/2010
\end{flushright}
\end{bildirim}
%%%
%%% Generate Özet page.
%%%
\begin{thesisozet}
\begin{center}
\textbf{\MakeUppercase \thesisdegree \,TEZ\.I} \bigskip\\
\textbf{\MakeUppercase \thesistitleturkish} \bigskip \bigskip\\
\textbf{\thesisauthor} \bigskip \\
\textbf{Sel\c{c}uk \"{U}niversitesi Fen Bilimleri Enstit\"{u}s\"{u}}\\
\textbf{\thesisdepartment \,Anabilim Dal\i } \bigskip \\
\textbf{Dan\i\c{s}man:} \textbf{\thesissupervisor} \bigskip\\
\textbf{\thesisyear, ... Sayfa } \bigskip\\
\bigskip
\textbf{Jüri} \\
\textbf{\thesissupervisor} \\
\textbf{Prof. Dr. Durmuş BOZKURT} \\
\textbf{Prof. Dr. Galip OTURANÇ} \\
\textbf{Prof. Dr. \.Idris DAĞ} \\
\textbf{Prof. Dr. Aş\i r GENÇ} \\
\end{center} \par
\bigskip \bigskip
\small Özet metnini yazmaya buradan başlay\i n\i z.
\small \textbf{Anahtar Kelimeler:} 4-8 adet anahtar kelime yaz\i n\i z. Alfabetik s\i rada ve10 punto olmal\i
\end{thesisozet}
%%%
%%% Generate Abstract page.
%%%
\begin{thesisabstract}
\begin{center}
\textbf{\MakeUppercase Ms\ Ph.D \,TEZ\.I} \bigskip \\
\textbf{\MakeUppercase \thesistitle}\bigskip \bigskip\\
\textbf{\thesisauthor} \bigskip\\
\textbf{THE GRADUATE SCHOOL OF NATURAL AND APPLIED SCIENCE OF SELÇUK UNIVERSITY}\\
\textbf{THE DEGREE OF MASTER OF SCIENCE / DOCTOR OF PHILOSOPHY IN MATHEMATICS} \bigskip\\
\textbf{Advisor: Title Unvan\i Ad\i SOYADI} \bigskip\\
\textbf{Year, ? Pages}\bigskip\\
\bigskip
\textbf{Jury} \\
\textbf{Advisor Dan\i şman\i n Unvan\i Ad\i SOYADI} \\
\textbf{Di\u{g}er Üyenin Unvan\i Ad\i SOYADI} \\
\textbf{Di\u{g}er Üyenin Unvan\i Ad\i SOYADI} \\
\textbf{Di\u{g}er Üyenin Unvan\i Ad\i SOYADI} \\
\textbf{Di\u{g}er Üyenin Unvan\i Ad\i SOYADI} \\
\end{center} \par
\bigskip
\bigskip
\small Türkçe özet metninin \.Ingilizce'sini yazmaya buradan başlay\i n\i z.
\small \textbf{Anahtar Kelimeler:} Türkçe özetteki anahtar kelimelerin \.Ingilizce?sini yaz\i n\i z. Alfabetik s\i rada ve 10 punto olmal\i
\end{thesisabstract}
%%%
%%% Generate Önsöz page.
%%%
\begin{onsoz}
Önsöz metnini yaz\i m k\i lavuzuna uygun olarak yazmaya buradan başlay\i n\i z. \\
\begin{flushright}
\thesisauthor \\
KONYA-\thesisyear
\end{flushright}
\end{onsoz}
%%%
%%% Generate Teşekkür page.
%%%
\begin{tesekkur}
Teşekkür metnini yaz\i m k\i lavuzuna uygun olarak yazmaya buradan başlay\i n\i z.
\end{tesekkur}
\tableofcontents %% Generate table of contents.
\listoffigures %% Uncomment this to generate list
%% of figures.
\listoftables %% Uncomment this to generate list
%% of tables.
%%%
%%% Generate Simgeler ve K\i saltmalar page.
%%%
\begin{simge}
\textbf{Simgeler}
Simgeleri yazmaya buradan başlay\i n\i z ve yaz\i m k\i lavuzunda belirtildi\u{g}i şekilde düzenleyiniz. Simgelerin bitiminden sonra, k\i saltmalar başl\i \u{g}\i ndan önce bir sat\i r boşluk b\i rak\i n\i z.
\textbf{K\i saltmalar}
K\i saltmalar\i yazmaya buradan başlay\i n\i z ve yaz\i m k\i lavuzunda belirtildi\u{g}i şekilde düzenleyiniz.
\end{simge}
%%%
%%% Generate Tez page.
%%%
\chapter{Introduction}\label{sec:introduction}
The University Course Timetabling Problem (UCTP) is a
common problem that almost every university has to solve
(\cite{Liu1}). \ldots
other timetabling problems described in the literature such as
examination timetabling, school timetabling, employee timetabling,
and others as stated by \cite{Liu2}. All these problems share
similar characteristics and they are similarly difficult to solve.
The general university course timetabling problem is known to be
NP-hard, as many of the subproblems are associated
with additional constraints.
%
\begin{equation}
\sum c_i f_i < \mbox{available resource}
\end{equation}
%
\lipsum[3-6] %% This only generates some text. Remove this line safely!
\begin{figure}[h]
\centering
% \scalebox{0.5}{\psfig{figure=graph3.eps}}
% \vspace{-1ex}
\includegraphics[scale=.9]{T1}
\caption{Three dimensional plot for the timetabling problem.}
\label{fig:3d}
\end{figure}
\section{Thesis' Aim and Objectives}\label{sec:objectives}
\lipsum[10-13] %% This only generates some text. Remove this line safely!
\section{Organization of Thesis}\label{sec:organization}
The organization of this thesis is as below: \\
Chapter \ref{sec:introduction} gives an introduction. Section
\ref{sec:objectives} Chapter \ref{sec:timetabling}
\chapter{Timetabling}\label{sec:timetabling}
The equivalent formulation of this definition based on the
conflict matrix instead of on the curricula. The conflict
matrix\index{conflict matrix} $C_{q \times q}$ is a binary matrix
such that $c_{ij} = 1$ if courses $K_i$ and $K_j$ have common
students, and $c_{ij} = 0$ otherwise.
\cite{Liu1} and \cite{Liu2} define the course timetabling problem
by including the objective function\index{objective function}
given in Equation (\ref{equ:objective function}).
\ldots
This is demonstrated in \c{S}ekil \ref{fig:3d}.
%
\begin{theorem}
Let $f$ be a function whose derivative exists in every point, then $f$
is a continuous function.
\end{theorem}
\begin{theorem}[Pythagorean theorem]
\label{pythagorean}
This is a theorema about right triangles and can be summarised in the next
equation
\[ x^2 + y^2 = z^2 \]
\end{theorem}
And a consequence of theorem \ref{pythagorean} is the statement in the next
corollary.
\begin{corollary}\label{cor:isim}
There's no right rectangle whose sides measure 3cm, 4cm, and 6cm.
\end{corollary}
You can reference theorems such as Teorem~\ref{pythagorean} when a label is assigned.
\begin{lemma}\label{lem:isim}
Given two line segments whose lengths are $a$ and $b$ respectively there is a
real number $r$ such that $b=ra$. Sonuç~\ref{cor:isim}
\end{lemma}
\begin{proof}
To prove it by contradiction try and assume that the statemenet is false,
proceed from there and at some point you will arrive to a contradiction.
\end{proof}
\begin{example}
To prove it by contradiction try and assume that the statemenet is false,
proceed from there and at some point you will arrive to a contradiction.
\end{example}
\begin{definition}
To prove it by contradiction try and assume that the statemenet is false,
proceed from there and at some point you will arrive to a contradiction.
\end{definition}
\begin{remark}
This statement is true, I guess.
\end{remark}
\begin{eqnarray}\label{equ:objective function}
f(y)=\sum\{d_{ik} y_{ik} \mid i=1,\ldots,q;k=1,\ldots,p\}
\end{eqnarray}
%
\begin{figure}[h]
\begin{center}
\includegraphics[scale=.8]{T2}
\caption{Three dimensional plot for the timetabling problem.}
\label{fig:3d}
\end{center}
\end{figure}
%
\section{Simulated Annealing}
\lipsum[1-2]
\subsection{Neighborhood Searching}
\lipsum[3]
\subsubsection{Simple Search}
\lipsum[4-5]
\subsubsection{Swapping}
The work of this dissertation encompasses the following topics:
\begin{enumerate}
%
\item 20 kW Three-Phase, Zero-Current-Switch (ZCS) Resonant
Rectifier.
%
\begin{itemize}
%
\item Redesign of the input filter for higher voltage ($600V$) and current
($40A$) stresses. A damping network is also added to the input filter.
%
\item Series connection of input bridge diodes to accommodate
higher voltage (2000V) stresses.
%
\item Redesign of tank diodes and transistor (IGBT,
insulated-gate-bipolar transistor) for higher voltage ($1400V$) and
current ($200A$) stresses.
%
\item Design of the control circuit providing constant DC output
voltage (e.g., 360 V) at variable AC input voltage (e.g.,
300 $V_{L-L}$ to 600 $V_{L-L}$)
%
\item Mounting of rectifier components within a steel cabinet, and
solution of EMI (electromagnetic interference) problems.
%
\item Debugging of the rectifier to deliver, at rated inputs, the
rated output quantities.
\end{itemize}
%
\item 30 kVA Three-Phase Current-Controlled PWM Inverter.
%
\begin{itemize}
%
\item Employment of a three-phase transformer between inverter
and power system.
%
\item Debugging of the phase-lock-loop and gating circuits and to
improve their operating stability.
%
\item Addition of a harmonic tuned filter at the point of common
coupling (PCC) to reduce the high frequency harmonic current flowing into
the power system and to obtain a sinusoidal voltage waveform at the
output of inverter before connecting it to the power system.
%
\item Before connecting to the utility system, the required AC
sinusoidal
output voltage ($260V_{L-L}$ AC) for a given DC input
voltage (340V DC) can be obtained by operating the PWM inverter with a
modulation index greater than 1 ($m>1$) -- independent of the
operating point of the inverter. This operating mode is novel: it
improves the sinusoidal wave shape of the inverter output voltage and
current, reduces switching losses, and reduces the input DC voltage
required when compared to PWM with $m<1$.
%
\item Introduction of a phase-shifting input transformer, to make
the displacement power factor of the inverter adjustable.
%
\item Mounting the inverter components within a steel cabinet
and to remove parasitic EMI problems.
%
\item Establishing control surfaces for apparent power S and real
power P as a function of the reference-current signal
$V_{I_{ref}}$ varying between 0.9V and 7V.
%
\item The real and reactive power flow generated by the PWM inverter and
fed into the utility system is investigated using fundamental and
harmonic phasor analyses.
%
\end{itemize}
%
\item Joint operation of the ZCS rectifier and the PWM inverter --
mounted in steel cabinets --
delivering rated power to the utility system.
%
\item Conceptual design of a Transversal Flux Machine
(either motor or generator), providing high torques (5 kNm to 2.5
kNm) at low speeds (60 rpm to 120 rpm) based on alternating magnetic
field theory. The work of \cite{ti} has been extended and two
invention disclosures have been submitted \cite{iec55}.
%
\item In a circuit where the load is nonlinear or the source has
nonsinusoidal quantities, the apparent power is not simply
$S=\sqrt{P^2 + Q^2}$: another type of power called distortion power
(D) is generated by the cross products of voltage and current
harmonics of different frequencies. For nonsinusoidal voltages and
currents the apparent power is defined as $S=\sqrt{P^2 + Q^2 +
D^2}$. This additional power $D$ increases the load current
(apparent power $S$ gets larger) and causes additional losses. Past
definitions of the distortion power are reviewed and most are found
not to be correct either from a numerical or physical point of view.
A proper formulation is derived for the computation of D from the
individual voltage and current harmonics not containing voltages and
currents of the same frequency. Experiments are performed to
measure the distortion power for a variety of load conditions, i.e.,
for different $THD_i$ and $THD_v$ values.
%
\item Measurement of losses of inductors employed in different parts
of the drive system, using two different approaches. Two methods
for measuring losses of inductors at frequencies from 0 to $6kHz$ are
discussed; the first involves the use of sampled inductor voltage
and current wave forms through an A/D converter and a computer. The
second, called three-voltmeter method, consists of recording the rms
values of three sinusoidal voltages. Error analyses of the two
approaches are presented.
\item Measurement of the derating of single-phase transformers
operating at nonsinusoidal voltage and current wave forms, and
comparison of the measured derating values with those obtained from
K-factor and harmonic-loss factor ($F_{HL}$) approaches.
\end{enumerate}
\subsubsection{Simple Search and Swapping}
\lipsum[6]
\subsection{Cooling Function} \lipsum[4]
\chapter{Experimental Results}\label{sec:results}
Generation of electricity from wind has been increasing steadily
(about $10\%$) with the installation of new wind farms each year.
However, installed capacity of wind farms is still low ($7 GW$)
compared to the total installed ($700 GW$) power capacity in the
United States. Wind farms consist of a great number (typically
hundreds) of small ($100 kW$ to $1 MW$) wind turbines operating at
constant speed ($30 rpm$). Use of variable speed enables the wind
turbine to operate more energy-efficient at different wind speeds;
therefore, somewhat more energy can be extracted from the wind. It
is desirable to increase the power rating of an individual wind
turbine so that larger amounts of power can be generated by one
unit. One of the problems associated with increasing power of one
unit is the increase of weight (generator and gear box) on the
tower.
%
\begin{itemize}
%
\item This problem may partially be
solved by employing a transverse-flux type generator which offers a
light weight for high torques at low speeds, therefore, more work
should be done to completely study the transversal-flux type
machines for such an application.
%
\item Since the variable-speed type
system employs expensive power semiconductor devices, a cost
analysis should be performed to determine the effectiveness of this
type of drive system and rectifier; inverter and machine efficiencies
should be in the range from 98 to $96\%$.
%
\item High-efficiency converter (rectifier/inverter)
losses should be measured with small maximum errors ($3\%$).
%
\end{itemize}
\begin{table}[h]
\centering
\caption{The effect of $N_{move}$ on Costs and Execution times.}\label{tab:run_times}
\begin{tabular}{|c||c||c||c||c||c||c|}
\hline
% after \\: \hline or \cline{col1-col2} \cline{col3-col4} ...
$N_{move}$ & 10 & 50 & 100 & 500 & 1000 & 3000 \\
\hline\hline
Execution & & & & & & \\
time (sec) & 0.8 & 3 & 6 & 29 & 60 & 154 \\
\hline
Cost & 2018800 & 4100 & 3500 & 3300 & 3400 & 3300 \\
\hline
\end{tabular}
\end{table}
%
\begin{table}[h]
\centering
\caption{Costs and execution times with the combinations of $SN$, $SWN$ and $S^3WN$ algorithms algorithmsalgorithms.}\label{tab:combinations}
\begin{tabular}{|c|c|c|c|c|c|}
\hline
\multicolumn{2}{|c|}{\multirow{1}{*}{SSN and SWN}}
&
\multicolumn{2}{c|}{\multirow{1}{*}{SSN and S$^3$WN}}
&
\multicolumn{2}{c|}{\multirow{1}{*}{SWN and S$^3$WN}}\\
\hline
Cost & CPU(sec) & Cost & CPU(sec) & Cost & CPU(sec)\\
\hline
3900 & 28 & 4900 & 27 & 3700 & 31\\
\hline
\end{tabular}
\end{table}
In the rest of the tables, we use $N_{move}$ = 500 since it gives
the most satisfactory results in terms of the final cost and
execution time. Three different neighborhood searching algorithms
are demonstrated. First, Table \ref{tab:combinations} \ldots
\bibliographystyle{apaturk}
\bibliography{sample_biblio}
\appendix
%\appendices %% Use \appendices for more than one appendix
\chapter{FORTRAN PROGRAM FOR FOURIER ANALYSIS}
%\newpage
\parskip .5cm
%\small{
\noindent{
\baselineskip 12pt
\begin{verbatim}
implicit complex(c)
c
c np=number of points (n+1) ; mp=number of harmonics (nh)
c
parameter (np=82, mp=19)
c
real func(np),mt(np),fx(np),fxc(np),fxs(np),t(np)
real har(mp),phase(mp),norm(mp),fav(mp),fbv(mp)
common /fourier/ fk1,fk2,fk3,a1,a2,nt
common /trapez/ pi, n
open(unit=5,file='i21397-8.txt',status='unknown')
open(unit=11,file='fout.txt',status='unknown')
c
c n=number of data points(0 to n) in one period (0-2pi)
c nh=numberf of harmonics, sca=scale factor, dc=dc offset
c
nt=np
n=nt-1
nh=mp
sca=50./17.5
om=377.
pi=4.*atan(1.)
c
c coefficients for fourier analysis
c
p=sqrt(0.6)
a1=5./9.
a2=8./9.
fk1=0.5*p*(1.+p)
fk2=(1.+p)*(1.-p)
fk3=0.5*p*(p-1.)
c
c set up the time axis 0-2pi
c
d=2.*pi/(nt-1)
t1=-d
do 10 i=1,nt
t1=t1+d
10 t(i)=t1
c
c reading input file(contains one set of data)
c and writing the scaled data on file fort.20
c
read(5,*)(func(i),i=1,nt)
dc=func(1)
do 21 i=1,nt
mt(i)=(func(i)-dc)*sca
21 write(20,*)t(i),mt(i)
c
c mt=time domain input (0-2pi), av=average value of mt
c rms=rms value of mt
c
call trap(mt,av,rms)
c
print*,'dc component from trapezoidal=', av
print*,'rms value from trapezoidal=', rms
c
c mt=time domain input, fav,fbv = fourier coefficients
c
call harm(mt,nh,fav,fbv,dcoff,t)
c
ht=0.0
fsq=0.0
do 30 j=1,nh
har(j)=sqrt(fav(j)**2 + fbv(j)**2)
if (fbv(j).eq.0.0) then
phase(j)=0.0
else
phase(j)=atan(fav(j)/fbv(j))
end if
if (fbv(j).lt.0.00) phase(j)=phase(j)+pi
if (j.eq.1) then
hfund=har(j)
else
ht=ht + har(j)**2
endif
norm(j)=har(j)/hfund*100
fsq=fsq + (har(j)/sqrt(2.))**2
30 continue
thd=sqrt(ht)/hfund*100
frms=sqrt(fsq)
cc
write(11,*)'************************************'
write(11,*)'dc component=',dcoff
write(11,*)'dc component from trapezoidal=', av
write(11,*)'rms value from trapezoidal=', rms
write(11,*)'-----------------------'
write(11,*)
write(11,1)
1 format(7x,1hh,5x,9hamplitude,4x,
& 7hnorm(%),5x,10hphase(deg),/)
do 40 j=1,nh
40 write(11,2)j,har(j),norm(j),phase(j)*180/pi
2 format(6x,i3,4x,e11.5,2x,f10.6,2x,f10.6,2x,f10.6)
write(11,*)'**********************************'
write(11,*)'total harmonic distortion =',thd,'%'
write(11,*)'rms value of the waveform =',frms
write(11,*)'rms of the fundamental =',hfund/sqrt(2.)
write(6,*)'total harmonic distortion =',thd,'%'
write(6,*)'rms value of the waveform =',frms
write(6,*)'rms of the fundamental =',hfund/sqrt(2.)
c
c construct original function from fourier coefficients
c and write result to file fort.21
c
do 55 i=1,nt
fx(i)=0.0
do 56 j=1,nh
h=float(j)
fxc(i)=fav(j)*cos(h*t(i))
fxs(i)=fbv(j)*sin(h*t(i))
c write(12,*)h,fav(j),fxc(i),fxs(i)
fx(i)=fx(i)+fxc(i)+fxs(i)
56 continue
55 continue
c do 58 i=1,nt
c58 write(21,*)t(i),fx(i)
c
stop
end
c work: time domain input
c tt: time axis input
c dcc: computed dc offset of work (output)
c idh: number of harmonics input
c avc,bvc: fourier coefficients (output)
subroutine harm(work,idh,avc,bvc,dcc,tt)
implicit complex(c)
tp=b-a
sum=0.0
do 90 i=2,n
sum=sum+f(i)
90 continue
fave=(1/tp)*0.5*h*(f(1)+f(n+1)+2*sum)
do 91 i=1,n+1
91 fkare(i)=f(i)**2
rsum=0.0
do 92 i=2,n
92 rsum=rsum+fkare(i)
rint=(1/tp)*0.5*h*(fkare(1)+fkare(n+1)+2*rsum)
frms=sqrt(rint)
return
end
\end{verbatim}
}
\chapter{Software for Simulated Annealing}
\lipsum[12-14] %% This only generates some text. Remove this line safely!
%%%
%%% Generate Özgeçmiş page.
%%%
\begin{ozgecmis}
\begin{spacing}{1}
\textbf{K\.I\c{S}\.ISEL B\.ILG\.ILER}
\bigskip \par
\textbf{Ad\i Soyad\i :} \par
\textbf{Uyru\u{g}u :} \par
\textbf{Do\u{g}um Yeri ve Tarihi :} \par
\textbf{Telefon :} \par
\textbf{Faks :} \par
\textbf{e-mail :}
\bigskip \par
\textbf{EĞ\.IT\.IM}
\medskip \par
\begin{tabular}{ p{5cm} p{5cm} p{5cm} }
\textbf{Derece} & \textbf{Ad\i , \.Ilçe, \.Il} & \textbf{Bitirme Y\i l\i } \\
Lise & 1 & 2 \\
Yüksek Lisans & 3 & 4 \\
Doktora & 5 & 6 \\
\end{tabular}
\bigskip \par
\textbf{\.I\c{S} DENEY\.IMLER\.I}
\medskip \par
\begin{tabular}{ p{5cm} p{5cm} p{5cm} }
\textbf{Y\i l} & \textbf{Kurum} & \textbf{Görevi} \\
1 & 2 & 3 \\
4 & 5 & 6 \\
\end{tabular}
\bigskip \par
\textbf{UZMANLIK ALANI}
\medskip \par
Matematik, Say\i lar Teorisi
\bigskip \par
\textbf{YABANCI D\.ILLER}
\medskip \par
YDS (72.5)
\bigskip \par
\textbf{BEL\.IRTMEK \.ISTED\.IĞ\.IN\.IZ D\.IĞER ÖZELL\.IKLER}
\medskip \par
\.Ileri Düzey Matlab Bilgisi
\bigskip \par
\textbf{YAYINLAR}
\medskip \par
Yay\i nlar\i n\i z\i buraya yazabilirsiniz
\end{spacing}
\end{ozgecmis}
\end{document} %% Done.