summaryrefslogtreecommitdiff
path: root/day1/cheatsheet4.tex
diff options
context:
space:
mode:
authorPuneeth Chaganti2009-11-06 13:53:20 +0530
committerPuneeth Chaganti2009-11-06 13:53:20 +0530
commit9715e79a11b73b60a2cc9e83658781a502cb0803 (patch)
treeac7b20446ead23b869b7beabdf51dbc7d357bcaf /day1/cheatsheet4.tex
parentb01fb222c5b6f1002e724e682ec1b58aa97e5dc5 (diff)
downloadworkshops-more-scipy-9715e79a11b73b60a2cc9e83658781a502cb0803.tar.gz
workshops-more-scipy-9715e79a11b73b60a2cc9e83658781a502cb0803.tar.bz2
workshops-more-scipy-9715e79a11b73b60a2cc9e83658781a502cb0803.zip
Added Cheatsheets for day1.
Diffstat (limited to 'day1/cheatsheet4.tex')
-rw-r--r--day1/cheatsheet4.tex47
1 files changed, 47 insertions, 0 deletions
diff --git a/day1/cheatsheet4.tex b/day1/cheatsheet4.tex
new file mode 100644
index 0000000..54ae95d
--- /dev/null
+++ b/day1/cheatsheet4.tex
@@ -0,0 +1,47 @@
+\documentclass[12pt]{article}
+\title{Matrices and Solution of Equations}
+\author{FOSSEE}
+\begin{document}
+\date{}
+\vspace{-1in}
+\begin{center}
+\LARGE{Matrices and Solution of Equations}\\
+\large{FOSSEE}
+\end{center}
+\section{Matrices}
+Inputting a Matrix
+\begin{verbatim}
+In [1]: A = matrix([[1, 2, 3],[4, 5, 6]])
+\end{verbatim}
+Matrix Operations
+\begin{verbatim}
+In [1]: A.T # Transpose
+In [2]: sum(A) # Sum of all elements
+In [3]: A+B # Addition
+In [1]: A*B # Product
+In [1]: inv(A) # Inverse
+In [1]: det(A) # Determinant
+\end{verbatim}
+
+Eigen Values and Eigen Vectors
+\begin{verbatim}
+In [1]: eig(A) #Eigen Values and Vectors
+In [2]: eigvals(A) #Eigen Values
+\end{verbatim}
+Norm
+\begin{verbatim}
+In [1]: norm(A)
+\end{verbatim}
+Single Value Decomposition
+\begin{verbatim}
+In [1]: svd(A)
+\end{verbatim}
+Solving a set of equations
+\begin{verbatim}
+In [1]: A = matrix([...]) # Input Equation Coefficient Matrix
+In [2]: b = matrix([...]) # Equation Target Values
+In [3]: x = solve(A, b)
+In [4]: Ax = A*x
+\end{verbatim}
+\end{document}
+