projects
/
hooke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7762de2
)
Adjusted hooke.util.calculus.derivative.__doc__ so Sphinx doesn't die.
author
W. Trevor King
<wking@drexel.edu>
Mon, 17 May 2010 19:38:31 +0000
(15:38 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Mon, 17 May 2010 19:38:31 +0000
(15:38 -0400)
hooke/util/calculus.py
patch
|
blob
|
history
diff --git
a/hooke/util/calculus.py
b/hooke/util/calculus.py
index 504840a5196513ada32293e708a29571473b24db..c25a87aa9502f6d53ce9d0cc75019bd6e9f5b94b 100644
(file)
--- a/
hooke/util/calculus.py
+++ b/
hooke/util/calculus.py
@@
-43,8
+43,7
@@
def derivative(data, x_col=0, f_col=1, weights={-1:-0.5, 1:0.5}):
Notes
-----
Notes
-----
- Weights
- ~~~~~~~
+ *Weights*
The returned :class:`Data` block shares its x vector with the
input data. The ith df/dx value in the returned data is
The returned :class:`Data` block shares its x vector with the
input data. The ith df/dx value in the returned data is
@@
-67,11
+66,11
@@
def derivative(data, x_col=0, f_col=1, weights={-1:-0.5, 1:0.5}):
The default scheme is central differencing.
The default scheme is central differencing.
- Boundary conditions
- ~~~~~~~~~~~~~~~~~~~
+ *Boundary conditions*
- These could be configurable in principle. The current scheme just
- extrapolates virtual points out to negative `i` following::
+ The boundary conditions could be configurable in principle. The
+ current scheme just extrapolates virtual points out to negative
+ `i` following::
f[i<0] = 2*f[0] - f[-i]
f[i<0] = 2*f[0] - f[-i]