getting-started-with-symbolics/slides.tex
author Amit Sethi
Wed, 10 Nov 2010 17:19:54 +0530
changeset 442 a9b71932cbfa
parent 351 054117c9dd59
child 458 9a1c5d134feb
permissions -rw-r--r--
Added exercises and slides to getting started with symbolics
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
442
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
     1
% Created 2010-11-10 Wed 17:18
351
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
     2
\documentclass[presentation]{beamer}
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
     3
\usepackage[latin1]{inputenc}
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
     4
\usepackage[T1]{fontenc}
442
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
     5
\usepackage{fixltx2e}
351
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
     6
\usepackage{graphicx}
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
     7
\usepackage{longtable}
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
     8
\usepackage{float}
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
     9
\usepackage{wrapfig}
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
    10
\usepackage{soul}
442
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    11
\usepackage{t1enc}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    12
\usepackage{textcomp}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    13
\usepackage{marvosym}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    14
\usepackage{wasysym}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    15
\usepackage{latexsym}
351
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
    16
\usepackage{amssymb}
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
    17
\usepackage{hyperref}
442
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    18
\tolerance=1000
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    19
\usepackage[english]{babel} \usepackage{ae,aecompl}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    20
\usepackage{mathpazo,courier,euler} \usepackage[scaled=.95]{helvet}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    21
\usepackage{listings}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    22
\lstset{language=Python, basicstyle=\ttfamily\bfseries,
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    23
commentstyle=\color{red}\itshape, stringstyle=\color{darkgreen},
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    24
showstringspaces=false, keywordstyle=\color{blue}\bfseries}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    25
\providecommand{\alert}[1]{\textbf{#1}}
351
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
    26
442
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    27
\title{Getting started with symbolics}
351
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
    28
\author{FOSSEE}
442
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    29
\date{}
351
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
    30
442
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    31
\usetheme{Warsaw}\usecolortheme{default}\useoutertheme{infolines}\setbeamercovered{transparent}
351
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
    32
\begin{document}
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
    33
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
    34
\maketitle
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
    35
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
    36
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
    37
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
    38
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
    39
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
    40
442
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    41
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    42
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    43
351
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
    44
\begin{frame}
442
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    45
\frametitle{Outline}
351
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
    46
\label{sec-1}
442
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    47
351
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
    48
\begin{itemize}
442
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    49
\item Defining symbolic expressions in sage.
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    50
\item Using built-in constants and functions.
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    51
\item Performing Integration, differentiation using sage.
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    52
\item Defining matrices.
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    53
\item Defining Symbolic functions.
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    54
\item Simplifying and solving symbolic expressions and functions.
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    55
\end{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    56
\end{frame}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    57
\begin{frame}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    58
\frametitle{Questions 1}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    59
\label{sec-2}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    60
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    61
\begin{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    62
\item Define the following expression as symbolic
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    63
    expression in sage.
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    64
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    65
\begin{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    66
\item x$^2$+y$^2$
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    67
\item y$^2$-4ax
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    68
\end{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    69
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    70
\end{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    71
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    72
  
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    73
\end{frame}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    74
\begin{frame}[fragile]
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    75
\frametitle{Solutions 1}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    76
\label{sec-3}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    77
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    78
\begin{verbatim}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    79
var('x,y')
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    80
x^2+y^2
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    81
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    82
var('a,x,y')
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    83
y^2-4*a*x
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    84
\end{verbatim}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    85
\end{frame}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    86
\begin{frame}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    87
\frametitle{Questions 2}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    88
\label{sec-4}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    89
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    90
\begin{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    91
\item Find the values of the following constants upto 6 digits  precision
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    92
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    93
\begin{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    94
\item pi$^2$
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    95
\end{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    96
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    97
\item Find the value of the following.
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    98
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
    99
\begin{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   100
\item sin(pi/4)
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   101
\item ln(23)
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   102
\end{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   103
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   104
\end{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   105
\end{frame}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   106
\begin{frame}[fragile]
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   107
\frametitle{Solutions 2}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   108
\label{sec-5}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   109
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   110
\begin{verbatim}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   111
n(pi^2,digits=6)
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   112
n(sin(pi/4))
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   113
n(log(23,e))
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   114
\end{verbatim}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   115
\end{frame}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   116
\begin{frame}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   117
\frametitle{Question 2}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   118
\label{sec-6}
351
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
   119
442
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   120
\begin{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   121
\item Define the piecewise function. 
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   122
   f(x)=3x+2 
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   123
   when x is in the closed interval 0 to 4.
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   124
   f(x)=4x$^2$
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   125
   between 4 to 6.
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   126
\item Sum  of 1/(n$^2$-1) where n ranges from 1 to infinity.
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   127
\end{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   128
\end{frame}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   129
\begin{frame}[fragile]
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   130
\frametitle{Solution Q1}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   131
\label{sec-7}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   132
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   133
\begin{verbatim}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   134
var('x') 
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   135
h(x)=3*x+2 
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   136
g(x)= 4*x^2
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   137
f=Piecewise([[(0,4),h(x)],[(4,6),g(x)]],x)
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   138
f
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   139
\end{verbatim}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   140
\end{frame}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   141
\begin{frame}[fragile]
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   142
\frametitle{Solution Q2}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   143
\label{sec-8}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   144
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   145
\begin{verbatim}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   146
var('n')
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   147
f=1/(n^2-1) 
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   148
sum(f(n), n, 1, oo)
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   149
\end{verbatim}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   150
 
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   151
\end{frame}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   152
\begin{frame}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   153
\frametitle{Questions 3}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   154
\label{sec-9}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   155
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   156
\begin{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   157
\item Differentiate the following.
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   158
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   159
\begin{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   160
\item x$^5$*log(x$^7$)  , degree=4
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   161
\end{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   162
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   163
\item Integrate the given expression
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   164
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   165
\begin{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   166
\item x*sin(x$^2$)
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   167
\end{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   168
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   169
\item Find x
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   170
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   171
\begin{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   172
\item cos(x$^2$)-log(x)=0
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   173
\item Does the equation have a root between 1,2.
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   174
\end{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   175
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   176
\end{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   177
\end{frame}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   178
\begin{frame}[fragile]
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   179
\frametitle{Solutions 3}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   180
\label{sec-10}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   181
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   182
\begin{verbatim}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   183
var('x')
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   184
f(x)= x^5*log(x^7) 
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   185
diff(f(x),x,5)
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   186
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   187
var('x')
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   188
integral(x*sin(x^2),x) 
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   189
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   190
var('x')
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   191
f=cos(x^2)-log(x)
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   192
find_root(f(x)==0,1,2)
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   193
\end{verbatim}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   194
\end{frame}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   195
\begin{frame}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   196
\frametitle{Question 4}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   197
\label{sec-11}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   198
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   199
\begin{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   200
\item Find the determinant and inverse of :
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   201
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   202
      A=[[x,0,1][y,1,0][z,0,y]]
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   203
\end{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   204
\end{frame}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   205
\begin{frame}[fragile]
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   206
\frametitle{Solution 4}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   207
\label{sec-12}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   208
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   209
\begin{verbatim}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   210
var('x,y,z')
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   211
A=matrix([[x,0,1],[y,1,0],[z,0,y]])
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   212
A.det()
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   213
A.inverse()
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   214
\end{verbatim}
351
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
   215
\end{frame}
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
   216
\begin{frame}
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
   217
\frametitle{Summary}
442
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   218
\label{sec-13}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   219
351
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
   220
\begin{itemize}
442
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   221
\item We learnt about defining symbolic 
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   222
   expression and functions.
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   223
\item Using built-in constants and functions.
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   224
\item Using <Tab>  to see the documentation of a 
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   225
   function.
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   226
\end{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   227
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   228
 
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   229
\end{frame}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   230
\begin{frame}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   231
\frametitle{Summary}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   232
\label{sec-14}
351
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
   233
442
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   234
\begin{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   235
\item Simple calculus operations .
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   236
\item Substituting values in expression 
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   237
   using substitute function.
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   238
\item Creating symbolic matrices and 
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   239
   performing operation on them .
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   240
\end{itemize}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   241
\end{frame}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   242
\begin{frame}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   243
\frametitle{Thank you!}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   244
\label{sec-15}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   245
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   246
  \begin{block}{}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   247
  \begin{center}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   248
  This spoken tutorial has been produced by the
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   249
  \textcolor{blue}{FOSSEE} team, which is funded by the 
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   250
  \end{center}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   251
  \begin{center}
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   252
    \textcolor{blue}{National Mission on Education through \\
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   253
      Information \& Communication Technology \\ 
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   254
      MHRD, Govt. of India}.
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   255
  \end{center}  
a9b71932cbfa Added exercises and slides to getting started with symbolics
Amit Sethi
parents: 351
diff changeset
   256
  \end{block}
351
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
   257
\end{frame}
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
   258
054117c9dd59 changed the name of symbolics to getting started with symbolics
amit
parents:
diff changeset
   259
\end{document}