diff options
author | Puneeth Chaganti | 2009-11-06 13:53:20 +0530 |
---|---|---|
committer | Puneeth Chaganti | 2009-11-06 13:53:20 +0530 |
commit | 6ea9bb40cec8b37b8b02b8c7cc19fc017247b7c7 (patch) | |
tree | ac7b20446ead23b869b7beabdf51dbc7d357bcaf /day1/cheatsheet4.tex | |
parent | 542263d2b9d88e27de2244071b894a7438219ed1 (diff) | |
download | workshops-6ea9bb40cec8b37b8b02b8c7cc19fc017247b7c7.tar.gz workshops-6ea9bb40cec8b37b8b02b8c7cc19fc017247b7c7.tar.bz2 workshops-6ea9bb40cec8b37b8b02b8c7cc19fc017247b7c7.zip |
Added Cheatsheets for day1.
Diffstat (limited to 'day1/cheatsheet4.tex')
-rw-r--r-- | day1/cheatsheet4.tex | 47 |
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} + |