diff options
author | chayan | 2018-10-06 19:06:12 +0530 |
---|---|---|
committer | chayan | 2018-10-06 19:06:12 +0530 |
commit | 7023acd7229cd8df3a7e79cd01546cb185c92788 (patch) | |
tree | 810c6663289ac50423b3e473dbb12ebed72a119e | |
parent | c0bdd3485c8de79328424d9c9bc5c72f95230187 (diff) | |
download | scilab-tutorials-7023acd7229cd8df3a7e79cd01546cb185c92788.tar.gz scilab-tutorials-7023acd7229cd8df3a7e79cd01546cb185c92788.tar.bz2 scilab-tutorials-7023acd7229cd8df3a7e79cd01546cb185c92788.zip |
Solutions_updated
-rw-r--r-- | Tutorial01-Basics/Problems/Tut01.pdf | bin | 31662 -> 38613 bytes | |||
-rw-r--r-- | Tutorial01-Basics/Problems/Tut01.tex | 5 | ||||
-rw-r--r-- | Tutorial02-Plots/Problems/SolPrblm2.pdf | bin | 0 -> 15241 bytes | |||
-rw-r--r-- | Tutorial02-Plots/Problems/Tut02.pdf | bin | 18426 -> 40225 bytes | |||
-rw-r--r-- | Tutorial02-Plots/Problems/Tut02.tex | 7 | ||||
-rw-r--r-- | Tutorial03-Curve_fitting/Problems/SolPrblm03.pdf | bin | 0 -> 28165 bytes | |||
-rw-r--r-- | Tutorial03-Curve_fitting/Problems/Tut03.pdf | bin | 27517 -> 62205 bytes | |||
-rw-r--r-- | Tutorial03-Curve_fitting/Problems/Tut03.tex | 16 | ||||
-rw-r--r-- | Tutorial04-ODE/Problems/SolPrblm04.pdf | bin | 0 -> 37785 bytes | |||
-rw-r--r-- | Tutorial04-ODE/Problems/Tut04.pdf | bin | 24271 -> 68564 bytes | |||
-rw-r--r-- | Tutorial04-ODE/Problems/Tut04.tex | 16 | ||||
-rw-r--r-- | Tutorial05-Solution_of_equations/Problems/Tut05.pdf | bin | 23646 -> 31364 bytes | |||
-rw-r--r-- | Tutorial05-Solution_of_equations/Problems/Tut05.tex | 7 |
13 files changed, 48 insertions, 3 deletions
diff --git a/Tutorial01-Basics/Problems/Tut01.pdf b/Tutorial01-Basics/Problems/Tut01.pdf Binary files differindex 75ef339..bc5bebd 100644 --- a/Tutorial01-Basics/Problems/Tut01.pdf +++ b/Tutorial01-Basics/Problems/Tut01.pdf diff --git a/Tutorial01-Basics/Problems/Tut01.tex b/Tutorial01-Basics/Problems/Tut01.tex index 034528f..625105a 100644 --- a/Tutorial01-Basics/Problems/Tut01.tex +++ b/Tutorial01-Basics/Problems/Tut01.tex @@ -12,8 +12,8 @@ \item Write a Scilab script to compute the following: \begin{enumerate} \item $n_1 = \sqrt{(Ax - y)^T(Ax - y)}$ -\item $n_2 = $ Sum of elements of $(Ax-b)$ (Hint: Use sum command) -\item $n_3 = $ Sum of square of the elements of $(Ax - b)$ (Hint: Use for loop) +\item $n_2 = $ Sum of elements of $(Ax-y)$ (Hint: Use sum command) +\item $n_3 = $ Sum of square of the elements of $(Ax - y)$ (Hint: Use for loop) \end{enumerate} where $A = \begin{bmatrix}a & a^2 & a^3\\b & b^2 & b^3\\c & c^2 & c^3\end{bmatrix}$, $a = 1, b = 2, c = 3$, $x = \begin{bmatrix}1\\1\\1\end{bmatrix}$, @@ -21,4 +21,5 @@ $y = \begin{bmatrix}4\\12\\36\end{bmatrix}$. \item Write a Scilab script to save the solution of Problem $1$, i.e., $\begin{bmatrix}n_1 & n_2 & n_3\end{bmatrix}$ as \verb'Problem2.csv' file. \end{enumerate} +{\bf Solution:} $n_1 = 3.7416574$, $n_2 = 4$, and $n_3 = 14$. \end{document} diff --git a/Tutorial02-Plots/Problems/SolPrblm2.pdf b/Tutorial02-Plots/Problems/SolPrblm2.pdf Binary files differnew file mode 100644 index 0000000..489f4d0 --- /dev/null +++ b/Tutorial02-Plots/Problems/SolPrblm2.pdf diff --git a/Tutorial02-Plots/Problems/Tut02.pdf b/Tutorial02-Plots/Problems/Tut02.pdf Binary files differindex 36a41d5..024df45 100644 --- a/Tutorial02-Plots/Problems/Tut02.pdf +++ b/Tutorial02-Plots/Problems/Tut02.pdf diff --git a/Tutorial02-Plots/Problems/Tut02.tex b/Tutorial02-Plots/Problems/Tut02.tex index 88e010d..9149981 100644 --- a/Tutorial02-Plots/Problems/Tut02.tex +++ b/Tutorial02-Plots/Problems/Tut02.tex @@ -3,6 +3,8 @@ \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} +\usepackage{pdfpages} +\usepackage{graphicx} \usepackage[varg]{txfonts} \begin{document} \title{Problems for Tutorial-02: Scientific Plotting} @@ -15,4 +17,9 @@ The first column is the x-axes data. Use proper legends and labels. \item Save a print quality pdf file of the figure generated. Name the file \verb'Tut2fig1.pdf'. \end{enumerate} +{\bf Solution:} This is a semilog plot. +\begin{figure}[ht!] +\centering{ +\includegraphics[scale=0.31]{SolPrblm2.pdf}} +\end{figure} \end{document} diff --git a/Tutorial03-Curve_fitting/Problems/SolPrblm03.pdf b/Tutorial03-Curve_fitting/Problems/SolPrblm03.pdf Binary files differnew file mode 100644 index 0000000..7b57b54 --- /dev/null +++ b/Tutorial03-Curve_fitting/Problems/SolPrblm03.pdf diff --git a/Tutorial03-Curve_fitting/Problems/Tut03.pdf b/Tutorial03-Curve_fitting/Problems/Tut03.pdf Binary files differindex a324c84..0c55cf1 100644 --- a/Tutorial03-Curve_fitting/Problems/Tut03.pdf +++ b/Tutorial03-Curve_fitting/Problems/Tut03.pdf diff --git a/Tutorial03-Curve_fitting/Problems/Tut03.tex b/Tutorial03-Curve_fitting/Problems/Tut03.tex index 5d397e9..c3b17a9 100644 --- a/Tutorial03-Curve_fitting/Problems/Tut03.tex +++ b/Tutorial03-Curve_fitting/Problems/Tut03.tex @@ -3,6 +3,17 @@ \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} +\usepackage{graphicx} +\usepackage{geometry} +\geometry{ +a4paper, +total={210mm,297mm}, +left=20mm, +right=20mm, +top=20mm, +bottom=20mm, +hoffset=-10pt +} \usepackage[varg]{txfonts} \begin{document} \title{Problems for Tutorial-03: Curve Fitting} @@ -18,4 +29,9 @@ in \verb'Tut3Problem.csv' is $t$ and the second column is the measured data. (Us squares fitting). \item Plot the measured data and fitted data versus $t$. \end{enumerate} +{\bf Solution:} +\begin{figure}[ht!] +\raggedleft{ +\includegraphics[scale=0.4]{SolPrblm03.pdf}} +\end{figure} \end{document} diff --git a/Tutorial04-ODE/Problems/SolPrblm04.pdf b/Tutorial04-ODE/Problems/SolPrblm04.pdf Binary files differnew file mode 100644 index 0000000..46e0cb6 --- /dev/null +++ b/Tutorial04-ODE/Problems/SolPrblm04.pdf diff --git a/Tutorial04-ODE/Problems/Tut04.pdf b/Tutorial04-ODE/Problems/Tut04.pdf Binary files differindex e4df0b8..31f62be 100644 --- a/Tutorial04-ODE/Problems/Tut04.pdf +++ b/Tutorial04-ODE/Problems/Tut04.pdf diff --git a/Tutorial04-ODE/Problems/Tut04.tex b/Tutorial04-ODE/Problems/Tut04.tex index 4b7b853..cde8f7a 100644 --- a/Tutorial04-ODE/Problems/Tut04.tex +++ b/Tutorial04-ODE/Problems/Tut04.tex @@ -3,7 +3,18 @@ \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} +\usepackage{graphicx} \usepackage[varg]{txfonts} +\usepackage{geometry} +\geometry{ +a4paper, +total={210mm,297mm}, +left=20mm, +right=20mm, +top=20mm, +bottom=20mm, +hoffset=-10pt +} \begin{document} \title{Problems for Tutorial-04: \\Ordinary Differential equations} \date{} @@ -17,4 +28,9 @@ Consider the initial condition be $(0.1,0.2)$ at $t = 0$. \item Plot the solution of the above differential $(x_1,x_2)$ for $t \in [0.2,10]$. \end{enumerate} +{\bf Solution:} +\begin{figure}[ht!] +\raggedleft{ +\includegraphics[scale=0.4]{SolPrblm04.pdf}} +\end{figure} \end{document} diff --git a/Tutorial05-Solution_of_equations/Problems/Tut05.pdf b/Tutorial05-Solution_of_equations/Problems/Tut05.pdf Binary files differindex e06bfa5..7fe00e8 100644 --- a/Tutorial05-Solution_of_equations/Problems/Tut05.pdf +++ b/Tutorial05-Solution_of_equations/Problems/Tut05.pdf diff --git a/Tutorial05-Solution_of_equations/Problems/Tut05.tex b/Tutorial05-Solution_of_equations/Problems/Tut05.tex index 123eacd..9ab55f9 100644 --- a/Tutorial05-Solution_of_equations/Problems/Tut05.tex +++ b/Tutorial05-Solution_of_equations/Problems/Tut05.tex @@ -11,6 +11,11 @@ \begin{enumerate} \item Write a Scilab script to find the intersection of the circle $x^2 + y^2 - 25 = 0$ and the plane $x + 2y = 5$. -\item Find the solution of the equation $t \, \mathrm{e}^{-x \,t} + \cos(t) \, \sin(t) + x = 0$ and $x+z-1 = 0$. +\item Find the solution of the equation $t \, \mathrm{e}^{-x \,t} + \cos(t) \, \sin(t) + x = 0$ and $x+t-1 = 0$. +\end{enumerate} +{\bf Solution:} +\begin{enumerate} +\item $x = 5$, $y = 0$. +\item $x = 1.5054495 , t = -0.5054495$ \end{enumerate} \end{document} |