Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
maroba authored Apr 1, 2018
1 parent b0e2d14 commit 7cccda2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ _findiff_ can also handle non-uniform grids. The only difference is that instead
the grid spacing to the `FinDiff` constructor, you give it the coordinates:

```python
import numpy as np

# A non-uniform 3D grid:
x = np.r_[np.arange(0, 4, 0.05), np.arange(4, 10, 1)]
y = np.r_[np.arange(0, 4, 0.05), np.arange(4, 10, 1)]
Expand Down

0 comments on commit 7cccda2

Please sign in to comment.