Numerical Differentiation in Python
[Pages:22]
Numerical Differentiation in Python
Hans-Petter Halvorsen
Free Textbook with lots of Practical Examples
Additional Python Resources
Contents
? The Derivative ? Numerical Differentiation ? Python Examples
It is assumed that already know about the derivative from mathematics courses and that you want to use Python to find numerical solutions
The Derivative
The derivative of a function = () is a measure of how changes with
The
derivative
of
a
function
()
is
denoted
!"($) !$
Secant
()
We have the following definition:
( + )
()
+ - ()
= lim
!#
+
Different notation is used: () = !() = ()
The Derivative
()
The derivative of a function of a single
variable at a chosen input value, when it
exists, is the slope of the tangent line to
the graph of the function at that point.
(" )
(" )
Tangent line
" = 2
Example: = # () = 2 (2) = 2?2 = 4
Derivative Rules
There are many derivative rules (as you probably know from mathematics courses)
We will focus on the the basic rule:
= !
Example:
() = ( ( !"#
= 4$
() = 4?3# = 12#
(3) = 12?3# = 12?9 = 108
Basic Numerical Approach
A numerical approach to the derivative of a function = () is:
()
( + ) +
= 6 - 7 6 - 7
Note! We will use Python in order to find the numeric solution ? not the analytic solution
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- numerical computation of second derivatives
- numerical python cornell university
- chapter 9 numerical differentiation purdue university
- 5 numerical differentiation
- numerical computing in python cornell university
- numerical and scientific packages florida state university
- 4 numerical evaluation of derivatives and integrals harvard university
- partial differential equations brigham young university
- numpy arrays overview numpy numerical python is a scienti c
- intermediate python using numpy scipy and matplotlib
Related searches
- sort dictionary in python by values
- shape in python numpy
- array shape in python numpy
- str in python example
- join in python using on
- replace character in python string
- differentiation in mathematics pdf
- numerical differentiation numpy
- create a matrix in python using for
- random generator in python examples
- create matrix in python numpy
- install numpy in python 2 7