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 /Tutorial01-Basics/Problems/Tut01.tex | |
parent | c0bdd3485c8de79328424d9c9bc5c72f95230187 (diff) | |
download | scilab-tutorials-7023acd7229cd8df3a7e79cd01546cb185c92788.tar.gz scilab-tutorials-7023acd7229cd8df3a7e79cd01546cb185c92788.tar.bz2 scilab-tutorials-7023acd7229cd8df3a7e79cd01546cb185c92788.zip |
Solutions_updated
Diffstat (limited to 'Tutorial01-Basics/Problems/Tut01.tex')
-rw-r--r-- | Tutorial01-Basics/Problems/Tut01.tex | 5 |
1 files changed, 3 insertions, 2 deletions
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} |