Professional Documents
Culture Documents
Báo Cáo Thực Hành Nhập Môn CNTT
Báo Cáo Thực Hành Nhập Môn CNTT
bng LaTex
\documentclass[12pt,a4paper]{article}
\usepackage[utf8x]{vietnam}
\usepackage{ucs}
\usepackage{enumerate}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{fancybox}
\usepackage[left=3cm, right=2cm, top=2cm, bottom=2cm]{geometry}
\begin{document}
\thispagestyle{empty}
\thisfancypage{
\setlength{\fboxsep}{0pt}
\fbox}{}
\pagenumbering{arabic}
\setcounter{page}{0}
\hspace{1cm}
\begin{center}
\fontsize{16pt}{16pt} \selectfont TRNG I HC BCH KHOA H NI \\ VIN
CNG NGH THNG TIN V TRUYN THNG \\
\textbf{--------------------*--------------------}
\\[4cm]
\fontsize{32pt}{32pt} \selectfont BO CO\\
\textbf{\fontsize{38pt}{38pt} \selectfont MN HC}
\end{center}
\begin{center}
\fontfamily{phv}
\fontsize{20pt}{20pt} \selectfont NHP MN CNG NGH THNG TIN V TRUYN
THNG
\\[3cm]
\end{center}
\begin{flushright}
\fontsize{14pt}{14pt} \selectfont Sinh vin thc hin: \textbf{Phan Vn Hng
\hspace{10cm}} \\
\fontsize{14pt}{14pt} \selectfont Lp CNTT2-2 K60\\
\fontsize{14pt}{14pt} \selectfont Gio vin hng dn: \textbf{Nguyn Vn Tnh
\hspace{10cm}} \\
\end{flushright}
\vspace{4cm}
\begin{center}
{\fontsize{16pt}{1}\selectfont H NI}\\
{\fontsize{16pt}{1}\selectfont \today}
\end{center}
\newpage
\begin{center}
\fontsize{18pt}{18pt} \selectfont\texttt{
\includegraphics{chup_man_hinh/logo_scilab} \\
\vspace{0.5cm}
Phn 1.Thc hnh nhp mn Scilab}
\end{center}
\begin{flushleft}
\fontsize{13pt}{18pt} \selectfont{
\item Bi tp v Scilab
\begin{itemize}
\item Tnh ton vi cc biu thc n gin \\
\begin{enumerate}[1.]
\item Thc hin cc php ton +, -, *, /, tnh sin, cos i vi s thc, s
dng cc hng s nh Pi.\\
S dng SciLab tnh gi tr ca biu thc F(s) khi
\begin{itemize}
\item s=0.5
\item s=0.95
\item s=1
\end{itemize}
\begin{center}
Bi lm
\end{center}
\begin{itemize}
\item s=0.5\\
log(s*s-2*s*cos (\%pi/5)+1) \\
\item s=0.95\\
log(s*s-2*s*cos(\%pi/5)+1)\\
\item s=1\\
log(s*s-2*s*cos(\%pi/5)+1)\\
\vspace{0.2cm}
\includegraphics{chup_man_hinh/tinh_toan_voi_so_
thuc}
\end{itemize}
\newpage
\begin{itemize}
\item To bin x = 1 + i v y = 1 - i.Chng minh (1 + i)(1 - i) = 2
{\begin{center}
Bi lm
\end{center}
}
x=1+\%i\\
y=1-\%i\\
x*y\\
\vspace{1.5cm}
\includegraphics{chup_man_hinh/tinh_toan_v
oi_so_phuc_BAI1}
\newpage
\item To biu thc trong SciLab chng minh rng :\\ i = e^{i}/2 ,
e^{i}+ 1 = 0
{\begin{center}
Bi lm
\end{center}
}
\hspace{3cm} exp (\%pi * \%i) + 1\\
\hspace{3cm}\%i - exp ((\%pi * \%i) / 2)\\
\vspace{2.5cm}
\hspace{3cm}\includegraphics{chup_man_hi
nh/tinh_toan_voi_so_phuc_BAI2}
\end{itemize}
\end{enumerate}
\newpage
\includegraphics{chup_man_hinh/su_dung_help_BAI
1}
\newpage
\vspace{2.5cm}
\includegraphics{chup_man_hinh/su_dung_help_BAI
2}
\newpage
help logarithms
\vspace{2.5cm}
\includegraphics{chup_man_hinh/su_dung_help_BAI
3}
\newpage
\end{enumerate}
\begin{enumerate}[1.]
\item Cch biu din ma trn v vct; to ma trn
ngu nhin,
ma trn khng.
\item Cc php ton trn ma trn v vc t; ly mt phn ca
ma trn
\begin{enumerate}[Cu 1.]
\item Cho mt ma trn A ban u, lm th no hin th
c gc di bn tri kch
thc 2 * 3
\begin{center}
Bi lm
\end{center}
A=[1,2,3;4,2,3;5,2,4]\\
A(2:3,1:3)\\
\vspace{2.5cm}
\includegraphics{chup_man_hin
h/phep_tinh_ma_tran_BAI1}
\newpage
\item a ra cc thuc tnh ca
ma trn nh nh thc,
ma trn nghch o, A, spec,
vi
\begin{align*}
A = \begin{bmatrix}
1 &1 &0 &0 \\
0 &2 &1 &0 \\
0 &0 &3 &1 \\
0 &0 &0 &4 \\
\end{bmatrix}
\end{align*}
\begin{center}
Bi lm
\end{center}
A=[1,1,0,0;0,2,1,0;0,0,3,1;0,0,0,4]\\
A'\\
det(A)\\
spec(A)\\
inv(A)\\
\includegraphics{chup_man_hin
h/phep_tinh_ma_tran_BAI2}
\vspace{2.5cm}
\newpage
\item a ra hng th 2, ct
th 3 ca ma
trn. a ra ma trn tri di
2x3 ca A; tnh
nh thc ma trn tri trn 3x3
ca A
\begin{center}
Bi lm
\end{center}
A=[1,1,0,0;0,2,1,0;0,0,3,1;0,0,0,4]\\
A(2,:)\\
A(:,3)\\
A(2:3,:)\\
det(A(1:3,1:3))\\
\vspace{2.5cm}
\includegraphics{chup_man_hin
h/phep_tinh_ma_tran_BAI3}
\end{enumerate}
\item Gii h phng trnh
\begin{enumerate}[Cu 1.]
\item Thit lp cc ma trn v vc t
gii h
phng trnh:
\begin{align}
\begin{cases}
-$\+x_{1}$+$\2x_{2}$+$\+x_{3}$ &= 2\\
$\+2x_{1}$ + $\-x_{2}$ + $\+x_{3}$ &= 4\\
$\+x_{2}$ - $\+x_{3}$ &= 0
\end{cases}
\end{enumerate}
Sau kim tra nghim tm c c tha mn hay
khng
qua phn d b - Ax
\begin{center}
Bi lm
\end{center}
A =[-1,2,1;2,-1,3;1,1,-1]\\
b =[2;4;0]\\
[x,kerA]=linsolve(A,b)\\
b-A*x\\
\includegraphics{chup_man_hinh/giai_he_phuong_t
rinh_BAI1}
\begin{center}
Bi lm
\end{center}
A =[-1,2,1;2,-1,3;1,1,-1]\\
b =[2;4;0]\\
inv(A)*b\\
\includegraphics{giai_he_phuong_trinh_BAI2
}
\begin{center}
Bi lm
\end{center}
A=rand(5,5)\\
b=rand(5,1)\\
[x,kerA]=linsolve(A,b)\\
\includegraphics{chup_man_hinh/giai_he_phuong_t
rinh_BAI3}
\begin{center}
Bi lm
\end{center}
A=rand(700,700);\\
b=rand(700,1);\\
timer();x=A\b;timer()\\
timer();y=inv(A)*b;timer()\\
timer();z=A^(-1)*b;timer()\\
\includegraphics{chup_man_hinh/giai_he_phuong_trinh_BAI4}
\end{enumerate}
\end{enumerate}
\item th
\begin{itemize}
\item V th 2 chiu, di dng im, v th 2
chiu cho hm
\begin{enumerate}[Cu 1.]
\item S dng SciLab v trn cc th ri nhau th cc
hm s cos(x), 1/ (1+cos^2(x)),1/(3+cos(1/(1+x^2))\\
\begin{center}
Bi lm
\end{center}
x =[-2:0.1:2];\\
y1 = cos(x);\\
y2= 1/ (1+(cos(x)).^2);\\
y3=1/(3+cos(1/(1+x.^2)));\\
plot2d(x, [y1])\\
plot2d(x, [y2])\\
plot2d(x, [y3])\\
\includegraphics{chup_man_hinh/ve_do_thi_BAI1}
\includegraphics{chup_man_hinh/ve_do_thi_BAI3}
\end{enumerate}
\end{itemize}
\end{itemize}
\end{enumerate}
\newpage
\begin{center}
\includegraphics{chup_man_hinh/logo_latex} \\
\vspace{0.5cm}
\fontsize{22pt}{22pt} \selectfont\texttt{Phn 2.Thc hnh nhp mn Latex}
\end{center}
\fontsize{13pt}{18pt} \selectfont{
\begin{enumerate}[\itshape A.]
\item So snh gia LATEX v WORD \\
\begin{enumerate}[a.]
\item Vi
LATEX:
\begin{itemize}
\item Khuyt im:
\begin{itemize}
\item Khng trc quan sinh ng, khng thy c nh dng ca vn bn
trong lc ang son tho
\item Phi thc hin thao tc chuyn i
\item S rt vt v nu mun kt hp nhiu kiu nh dng phc tp vo trong cng
tp tin.
\end{itemize}
u im:
\begin{itemize}
\item nh dng vn bn u, chuyn nghip.
\item nh dng cng thc ton, m ngun lp trnh, ch mc, mc lc, ph lc, ti
liu tham kho d dng
\end{itemize}
\end{itemize}
\item Cn WORD
\begin{itemize}
\item Khuyt im:
\begin{itemize}
\item nh dng vn bn khng chuyn nghip.
\item nh dng cng thc ton, m ngun lp trnh, ch mc, mc lc, ph
lc, ti liu tham kho v cng kh khn!
\end{itemize}
\item u im:
\begin{itemize}
\item Trc quan sinh ng, thy c nh dng ca vn bn trong lc ang
son tho
\item Khng phi thc hin nhiu thao tc chuyn i
\item Rt d dng nu mun kt hp nhiu kiu nh dng phc tp vo trong
cng tp tin.
\end{itemize}
\end{itemize}
\end{enumerate}
\item Bi tp v LATEX
Son tho bo co mn hc bng LATEX
\includegraphics{chup_man_hinh/bao_cao_thuc_hanh_nhap_mon_cntt-tt}
\includegraphics{chup_man_hinh/bao_cao_thuc_hanh_nhap_mon_cntt-tt_pdf}
}
\end{enumerate}
\end{document}