|
From: <fer...@us...> - 2008-10-19 09:04:32
|
Revision: 6273
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6273&view=rev
Author: fer_perez
Date: 2008-10-19 09:01:48 +0000 (Sun, 19 Oct 2008)
Log Message:
-----------
Cleanup - remove stale docs
Removed Paths:
-------------
trunk/py4science/doc/fp_notes.lyx
trunk/py4science/doc/workbook.pdf
Deleted: trunk/py4science/doc/fp_notes.lyx
===================================================================
--- trunk/py4science/doc/fp_notes.lyx 2008-10-19 08:37:47 UTC (rev 6272)
+++ trunk/py4science/doc/fp_notes.lyx 2008-10-19 09:01:48 UTC (rev 6273)
@@ -1,562 +0,0 @@
-#LyX 1.4.3 created this file. For more info see http://www.lyx.org/
-\lyxformat 245
-\begin_document
-\begin_header
-\textclass article
-\begin_preamble
-\usepackage{color}
-
-% A few colors to replace the defaults for certain link types
-\definecolor{orange}{cmyk}{0,0.4,0.8,0.2}
-\definecolor{darkorange}{rgb}{.71,0.21,0.01}
-\definecolor{darkred}{rgb}{.52,0.08,0.01}
-\definecolor{darkgreen}{rgb}{.12,.54,.11}
-
-% Use and configure listings package for nicely formatted code
-\usepackage{listings}
-\lstset{
- language=Python,
- basicstyle=\small\ttfamily,
- commentstyle=\ttfamily\color{blue},
- stringstyle=\ttfamily\color{darkorange},
- showstringspaces=false,
- breaklines=true,
- postbreak = \space\dots
-}
-
-\usepackage[%pdftex, % needed for pdflatex
- breaklinks=true, % so long urls are correctly broken across lines
- colorlinks=true,
- urlcolor=blue,
- linkcolor=darkred,
- citecolor=darkgreen,
- ]{hyperref}
-
-\usepackage{html}
-
-% This helps prevent overly long lines that stretch beyond the margins
-\sloppy
-
-% Define a \codelist command which either uses listings for latex, or
-% plain verbatim for html (since latex2html doesn't understand the
-% listings package).
-\usepackage{verbatim}
-\newcommand{\codelist}[1] {
-\latex{\lstinputlisting{#1}}
-\html{\verbatiminput{#1}}
-}
-\end_preamble
-\language english
-\inputencoding auto
-\fontscheme default
-\graphics default
-\paperfontsize default
-\spacing single
-\papersize default
-\use_geometry true
-\use_amsmath 1
-\cite_engine basic
-\use_bibtopic false
-\paperorientation portrait
-\leftmargin 1in
-\topmargin 1in
-\rightmargin 1in
-\bottommargin 1in
-\secnumdepth 3
-\tocdepth 3
-\paragraph_separation skip
-\defskip medskip
-\quotes_language english
-\papercolumns 1
-\papersides 1
-\paperpagestyle default
-\tracking_changes false
-\output_changes false
-\end_header
-
-\begin_body
-
-\begin_layout Title
-Python Workshop Problems
-\end_layout
-
-\begin_layout Standard
-\begin_inset LatexCommand \tableofcontents{}
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Section
-Quicksort
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-Illustrates
-\series default
-: lists, recursion.
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-Task
-\series default
-: implement the quicksort algorithm.
-\end_layout
-
-\begin_layout Subsubsection*
-Code skeleton
-\end_layout
-
-\begin_layout Standard
-\begin_inset ERT
-status open
-
-\begin_layout Standard
-
-
-\backslash
-codelist{skel/qsort_skel.py}
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Section
-Wallis'
-\begin_inset Formula $\pi$
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-Illustrates
-\series default
-: arbitrary size integers, simple function definitions.
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-Task
-\series default
-: define a simple function that implements the (slowly converging) Wallis
- infinite product approximation to
-\begin_inset Formula $\pi$
-\end_inset
-
-:
-\begin_inset Formula \[
-\pi(n)=2\prod_{i=1}^{n}\frac{4i^{2}}{4i^{2}-1}\]
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Subsubsection*
-Code skeleton
-\end_layout
-
-\begin_layout Standard
-\begin_inset ERT
-status open
-
-\begin_layout Standard
-
-
-\backslash
-codelist{skel/wallis_pi_skel.py}
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Section
-Trapezoid rule
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-Illustrates
-\series default
-: basic array slicing, functions as first class objects.
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-Task
-\series default
-: define a trapezoid rule integrator:
-\begin_inset Formula \[
-I=\int_{a}^{b}f(x)dx\approx\frac{1}{2}\sum_{i=1}^{N}(x_{i}-x_{i-1})(y_{i}+y_{i-1})\]
-
-\end_inset
-
-where
-\begin_inset Formula $y_{i}=f(x_{i})$
-\end_inset
-
-,
-\begin_inset Formula $x_{o}=a$
-\end_inset
-
-,
-\begin_inset Formula $x_{N}=b$
-\end_inset
-
-.
-
-\end_layout
-
-\begin_layout Standard
-Consider both the case where the input is given as a pair of arrays
-\begin_inset Formula $(x,y)$
-\end_inset
-
- and where the input is
-\begin_inset Formula $(f,a,b,N)$
-\end_inset
-
-.
- Write two separate functions.
-\end_layout
-
-\begin_layout Subsubsection*
-Code skeleton
-\end_layout
-
-\begin_layout Standard
-\begin_inset ERT
-status open
-
-\begin_layout Standard
-
-
-\backslash
-codelist{skel/trapezoid_skel.py}
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Section
-Numerical integration and root finding
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-Illustrates:
-\series default
- functions as first class objects, use of the scipy libraries.
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-Task:
-\series default
- Find
-\begin_inset Formula $t$
-\end_inset
-
- such that
-\begin_inset Formula \[
-\int_{0}^{t}f(s)\, ds=u\]
-
-\end_inset
-
-for a known, monotonically increasing
-\begin_inset Formula $f(s)$
-\end_inset
-
- and a fixed
-\begin_inset Formula $u$
-\end_inset
-
-.
- The example below uses
-\begin_inset Formula $f(s)=s\cdot\sin^{2}(s)$
-\end_inset
-
- and
-\begin_inset Formula $u=1/4.$
-\end_inset
-
-
-\end_layout
-
-\begin_layout Subsubsection*
-Code skeleton
-\end_layout
-
-\begin_layout Standard
-\begin_inset ERT
-status open
-
-\begin_layout Standard
-
-
-\backslash
-codelist{skel/quad_newton_skel.py}
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Section
-Wrapping Fortran codes
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-Illustrates
-\series default
-: wrapping existing Fortran libraries, improving the call interface of Fortran
- codes.
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-Task
-\series default
-: write a Fortran subroutine
-\family typewriter
-cumsum(x,y,n)
-\family default
- that computes the cumulative sums of entries of
-\begin_inset Formula $x$
-\end_inset
-
- and stores them in
-\begin_inset Formula $y$
-\end_inset
-
-:
-\begin_inset Formula \[
-y_{j}=\sum_{i=1}^{j}x_{i},\; j=1,\ldots,n.\]
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Subsubsection*
-Code skeleton
-\end_layout
-
-\begin_layout Standard
-The following skeleton contains a wrapper of another Fortran routine, a
- simple Fibonacci number calculation, to illustrate the f2py syntax.
- A Makefile and a test file are included as well.
-\end_layout
-
-\begin_layout Standard
-\begin_inset ERT
-status open
-
-\begin_layout Standard
-
-
-\backslash
-codelist{skel/fortran_wrap/fib3.f}
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Section
-Univariate polynomials, root finding
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-Illustrates
-\series default
-: poly1d objects, convolutions, plotting.
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-Task
-\series default
-:
-\end_layout
-
-\begin_layout Subsubsection*
-Code skeletonq
-\end_layout
-
-\begin_layout Standard
-\begin_inset ERT
-status open
-
-\begin_layout Standard
-
-
-\backslash
-codelist{skel/polyroots1d_skel.py}
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Section
-Image processing and the FFT
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-Illustrates
-\series default
-: 2-d image denoising, use of the scipy FFT library, array manipulations,
- image plotting.
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-Task
-\series default
-:
-\end_layout
-
-\begin_layout Subsubsection*
-Code skeleton
-\end_layout
-
-\begin_layout Standard
-\begin_inset ERT
-status open
-
-\begin_layout Standard
-
-
-\backslash
-codelist{skel/fft_imdenoise_skel.py}
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Section
-Bessel functions
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-Illustrates
-\series default
-: Special functions library, array manipulations to check recursion relation.
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-Task
-\series default
-:
-\end_layout
-
-\begin_layout Subsection*
-Code skeleton
-\end_layout
-
-\begin_layout Standard
-MISSING
-\end_layout
-
-\begin_layout Section
-Monte Carlo integration
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-Illustrates
-\series default
-: random number generation.
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-Task
-\series default
-: compute an approximation to
-\begin_inset Formula $\pi$
-\end_inset
-
- via Monte Carlo integration.
-\end_layout
-
-\begin_layout Subsection*
-Code skeleton
-\end_layout
-
-\begin_layout Standard
-MISSING
-\end_layout
-
-\begin_layout Section
-Speed optimizations using
-\family typewriter
-weave
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-Illustrates
-\series default
-: weave.blitz, weave.inline.
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-Task
-\series default
-: ...
-\end_layout
-
-\begin_layout Subsection*
-Code skeleton
-\end_layout
-
-\begin_layout Standard
-MISSING
-\end_layout
-
-\end_body
-\end_document
Deleted: trunk/py4science/doc/workbook.pdf
===================================================================
--- trunk/py4science/doc/workbook.pdf 2008-10-19 08:37:47 UTC (rev 6272)
+++ trunk/py4science/doc/workbook.pdf 2008-10-19 09:01:48 UTC (rev 6273)
@@ -1,20267 +0,0 @@
-%PDF-1.4
-5 0 obj
-<< /S /GoTo /D (chapter.1) >>
-endobj
-8 0 obj
-(Chapter 1. Introduction)
-endobj
-9 0 obj
-<< /S /GoTo /D (chapter.2) >>
-endobj
-12 0 obj
-(Chapter 2. Simple non-numerical problems)
-endobj
-13 0 obj
-<< /S /GoTo /D (section.2.1) >>
-endobj
-16 0 obj
-(1. Sorting quickly with QuickSort )
-endobj
-17 0 obj
-<< /S /GoTo /D (section.2.2) >>
-endobj
-20 0 obj
-(2. Dictionaries for counting words)
-endobj
-21 0 obj
-<< /S /GoTo /D (chapter.3) >>
-endobj
-24 0 obj
-(Chapter 3. Working with files, the internet, and numpy arrays)
-endobj
-25 0 obj
-<< /S /GoTo /D (section.3.1) >>
-endobj
-28 0 obj
-(1. Loading and saving ASCII data)
-endobj
-29 0 obj
-<< /S /GoTo /D (section.3.2) >>
-endobj
-32 0 obj
-(2. Working with CSV files)
-endobj
-33 0 obj
-<< /S /GoTo /D (section.3.3) >>
-endobj
-36 0 obj
-(3. Loading and saving binary data)
-endobj
-37 0 obj
-<< /S /GoTo /D (chapter.4) >>
-endobj
-40 0 obj
-(Chapter 4. Elementary Numerics)
-endobj
-41 0 obj
-<< /S /GoTo /D (section.4.1) >>
-endobj
-44 0 obj
-(1. Wallis' slow road to )
-endobj
-45 0 obj
-<< /S /GoTo /D (section.4.2) >>
-endobj
-48 0 obj
-(2. Trapezoidal rule)
-endobj
-49 0 obj
-<< /S /GoTo /D (section.4.3) >>
-endobj
-52 0 obj
-(3. Newton's method)
-endobj
-53 0 obj
-<< /S /GoTo /D (chapter.5) >>
-endobj
-56 0 obj
-(Chapter 5. Linear algebra)
-endobj
-57 0 obj
-<< /S /GoTo /D (section.5.1) >>
-endobj
-60 0 obj
-(1. Glass Moir\351 Patterns)
-endobj
-61 0 obj
-<< /S /GoTo /D (chapter.6) >>
-endobj
-64 0 obj
-(Chapter 6. Signal processing)
-endobj
-65 0 obj
-<< /S /GoTo /D (section.6.1) >>
-endobj
-68 0 obj
-(1. Convolution)
-endobj
-69 0 obj
-<< /S /GoTo /D (section.6.2) >>
-endobj
-72 0 obj
-(2. FFT Image Denoising)
-endobj
-73 0 obj
-<< /S /GoTo /D (chapter.7) >>
-endobj
-76 0 obj
-(Chapter 7. Statistics)
-endobj
-77 0 obj
-<< /S /GoTo /D (section.7.1) >>
-endobj
-80 0 obj
-(1. Descriptive statistics)
-endobj
-81 0 obj
-<< /S /GoTo /D (section.7.2) >>
-endobj
-84 0 obj
-(2. Statistical distributions)
-endobj
-85 0 obj
-<< /S /GoTo /D [86 0 R /Fit ] >>
-endobj
-88 0 obj <<
-/Length 321
-/Filter /FlateDecode
->>
-stream
-xڍQ;O\xC30\xDE\xF3+<\xDAC\x9F_\x8F\xBC
-\xEAT\xA9\x91(CHB\x95:(jU\xC1\xAF\xC7NhU$dɖ}\xDF\xE3>22\xAF\xC1I\xA9i
-\xDE\xB1z\x97I\xB6\x8E\xB5\x870F \xEF]\xBC\xFCQ\xCD-\xA0\xBD/X~)rSfW3m\xD0\xC6)V\xBE1%%(\xEB
-\xE6PC\xA1#\xA3l\x9E\xF9b\xA8\xEA}WW\xEF"\xF8\xB2\xEE\xDA \xB4\xE4{\x81\xBC9\xF2\x95ԦNE\xC7o\xFB]z\xF98\x9C\x8Ba-^\xCA9#\x85hY\xAEPI\x95\xBB0I.>2Q6}\xE1\xB9R愞\xFA\xB8\x9E\xC0O\xC2+\xDE\xDB\xD7xE\xDE\xC7]\xF2~\x9BX1\x8E\xB9\x8C\x93+ "\x9Bb\x83&r\xA3ʼ\xDF$W$~\xE9,\xF8c\xF4=\xA1߷\xC3\xE4\x8E`1~\xC3/\xFB\x99 \xCF\xDB!T\xA1\xE9'\x81\x85P\xC4W\xDA\xE2\xD0~\x8D<\xAE\xB0\xB1k\xE3\xC18RSס\xDA\xE3DX\x8A\x942F\xAAD=&Rv_\x9E'u\x9A\xB55 \xFFߣ\xFEko~\x9Bendstream
-endobj
-86 0 obj <<
-/Type /Page
-/Contents 88 0 R
-/Resources 87 0 R
-/MediaBox [0 0 612 792]
-/Parent 97 0 R
->> endobj
-89 0 obj <<
-/D [86 0 R /XYZ 93.6002 733.9477 null]
->> endobj
-90 0 obj <<
-/D [86 0 R /XYZ 93.6002 720 null]
->> endobj
-87 0 obj <<
-/Font << /F35 93 0 R /F34 96 0 R >>
-/ProcSet [ /PDF /Text ]
->> endobj
-100 0 obj <<
-/Length 92
-/Filter /FlateDecode
->>
-stream
-xڍ\x8D1\x800\xF7\xBE"h7iӼ\x80\x87t`\xE2\xFF+Ab@\x82y\xB1\xE5\x93
-\x92(\x94\x87H#W\xE50wZGڳ\xDB
-nƚ\xB1G\x8Cmmp։\xCB\xE5Ğԛg\xC3\xECTG\xEF.\xF8y;"5endstream
-endobj
-99 0 obj <<
-/Type /Page
-/Contents 100 0 R
-/Resources 98 0 R
-/MediaBox [0 0 612 792]
-/Parent 97 0 R
->> endobj
-101 0 obj <<
-/D [99 0 R /XYZ 93.6002 733.9477 null]
->> endobj
-98 0 obj <<
-/ProcSet [ /PDF ]
->> endobj
-104 0 obj <<
-/Length 1520
-/Filter /FlateDecode
->>
-stream
-xڝY\xDBn\xDC6}\xF7W\xE8-Z\xA0\xCB\xF2N\xC0E\xB4\xB5\xD1>4}\x90w7k!{q\xB5r\x8C\xF4\xEB;\xA4Hi\xB4\xBA\xA1\x82\x81ؒ\xA93Gg\x86C\x86%~Xbє\xF2\xC4A\xAC4&\xD9oh\xB2\x87gnX\xC0H.\x89\xB1V\xC3\xC5\xC0ӵb\xD6f\xC9O\xF2\xE3\xC3\xCD\xF7\xEF\x85J\x98$Bj\x9E<|N\xB8Q\x84Y\x93%ZP"\x84\xBB\xB9\xFD+}{>\xADM\xABKw\xCD_\x97\xD5\xDF?ݼ{h\xDEy*\xAB\x89Ԃ\xBBWO w\xFFP\x96\x94\xFB\xA4{\xE3w\xC41_\xE3\xF1\x9E"S\x89%Vs\xED\xF6\xDE\xE2 >\xE5ϫ5K\xAB]\xB9Z!RFVkkmzwZq\x93V%\xF0=\xAF\xD6<K\xB7/\xB7\xA9
-w\xE7t\xA7fg\xDDzj6\xA8\xAA\x8A "A\xCD.W5\xAA\x9B\xD1D\x89l\xB1l\xED\xF0 \xD5hP4D\xBBww\x9D@G\xFF\xFC\xE0>\xBBC\xC8\xF4\x92\xC1\x9D\xB5W\xF5\xE5\xB8sN\xDBb\x93\xEA9\x9E\xCB\xF3\xE3awtz\xE1\x99!L |