You are on page 1of 19

Bo co thc hnh Nhp mn CNTT-TT vit

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{

\begin{enumerate} [\itshape A.] {

\item Nhn xt v Scilab \\


Scilab l gi phn mm c pht trin t nm 1990 bi cc nh nghin cu t
INRIA v ENPC. To ra vo thng 5 nm 2003, n c pht trin v duy tr bi
INRIA.
Scilab l phn mm tnh ton s, m ngun m, cung cp mt mi trng tnh ton
mnh m ( tng t nh Matlab, Octave, Rlab ) trong k thut v khoa hc ng
dng. Scilab c pht hnh di dng m ngun m theo giy php CeCILL (GPL

tng thch), v c sn ti v min ph. Scilab chy c trn cc h iu hnh


GNU/Linux, Mac OS X v Windows.
Cc chc nng chnh:
\begin{itemize}
\item Ton hc & m phng: Cc ng dng k thut v khoa hc thng
thng, bao gm cc ton t ton hc v phn tch d liu.
\item V th 2D & 3D.
\item\ Thng k: Thng k m t; Cc hm phn phi xc sut; M hnh tuyn
tnh v phi tuyn; Mng thn kinh.
\item Phn tch & thit k h thng iu khin: Cc thut ton v cng c
chun mc.
\item X l tn hiu: Minh ha, phn tch v lc cc tn hiu theo thi gian v
tn sut.
\item Xcos M hnh v m phng cc h ng lc li: M hnh ha cc h
thng c kh, mch thy lc, h thng iu khin
\end{itemize}
C php ca Scilab tng t nh MATLAB, Scilab bao gm b chuyn i m ngun
t MATLAB. Phn mm nh gn, tin s dng, thch hp cho vic ging dy. Scilab
v Octave c nh gi l 2 phn mm m ngun m gn vi MatLab nht.\\

\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

\item Thc hin php ton vi s phc

\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

\item S dng help


\begin{enumerate}[1.]
\item
\begin{itemize}
\item Tnh gi tr ca biu thc arcsin(0.5) trong SciLab
\item Nu x = 0.5 , kim tra xem sin(arcsin(x)) - x
c chnh xc bng 0
trong SciLab ?
\item Kim tra xem arcsin (sin(x)) - x c chnh xc bng
0 trong Scilab
khi x =\pi/3 , x=5\pi/11 ?
\end{itemize}
\begin{center}
Bi lm
\end{center}
asin(0.5)\\
x=0.5;\\
sin(asin(x))-x\\
x=\%pi/3;\\
asin(sin(x))-x\\
x=5*\%pi/11;\\
asin(sin(x))-x\\
\vspace{0.5cm}

\includegraphics{chup_man_hinh/su_dung_help_BAI
1}

\newpage

\item Hy tm hm trong SciLab bin i mt s t h


10 sang h 16
(Hexa). Chuyn s 61453 sang h 16
\begin{center}
Bi lm
\end{center}
help hexadecimal
dec2hex(61543)

\vspace{2.5cm}

\includegraphics{chup_man_hinh/su_dung_help_BAI
2}

\newpage

\item Hy tm tt c cc thng tin v cc i tng c


cha logarithms
trong SciLab. C 8 kt qu c tm thy, trong
c clnh logm
\begin{center}
Bi lm
\end{center}

help logarithms

\vspace{2.5cm}

\includegraphics{chup_man_hinh/su_dung_help_BAI
3}

\newpage

\end{enumerate}

\item Tnh ton vi Ma trn v Vc t

\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}

\item S dng lnh tnh ma trn nghch o gii


phng trnh trong bi 1

\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
}

\item To mt ma trn ngu nhin A kch thc 5x5


v
mt vc t ngu nhin b kch thc 5x1. Sau gii
h phng trnh Ax = b bng cch nhanh nht,
khng
s dng ma trn nghch o

\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}

\item Sinh ma trn A ngu nhin kch thc


700x700 v
vc t ct b di 700. Hy gii h phng trnh
Ax = b s dng cc lnh x = A|b v x = inv(A) * b
s dng lnh timer() so snh thi gian thc hin
theo 2 cch.

\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}

\item Trn mt th; trong -4<=x<=4 v = 0.5, 1, 2 v th 1/


(1+e^{x}) \\
\begin{center}
Bi lm
\end{center}
x=[-4:0.1:4];\\
a1=0.5;a2=1;a3=2;\\
y1=1/(1+\%e^(a1*x));\\
y2=1/(1+\%e^(a2*x));\\
y3=1/(1+\%e^(a3*x));\\
plot2d(x, [y1,y2,y3])\\
\includegraphics{chup_man_hinh/ve_do_thi_BAI2}

\item V th 3D ca cc ng sau vi x, y thuc mt khong gi tr no


.
\begin{center}
Bi lm
\end{center}
[x,y]=meshgrid(-2:1:2,-2:1:2);\\
surf(x,y,x.^2-y.^2)\\
[x,y]=meshgrid(1:1:5,1:1:5);\\
surf(x,y,x.*y.*(x*2-y*2)./(x.^2.+y.^2))\\

\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}

You might also like