Skip to content

Commit

Permalink
added test example to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewGibbs committed Jul 14, 2023
1 parent d91b592 commit 78866ce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ Literature/
debug/

log/

.git.bfg-report/
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ After downloading from GitHub, open Matlab and navigate to the PathFinder folder

If you have the Matlab Coder package installed, you can also run ```compile_all.m```, to produce MEX code optimised for your operating system.

To test the code works, try running
```matlab
PathFinder(-1,1,@(x) sin(x),[2 0 0],100,10,'plot')
```
This approximates the integral
$$
\int_{-1}^1\sin(x)\exp(\mathrm{i}100x^2)\mathrm{d}x,
$$
and will produce a simple plot of the contour deformation. If it doesn't work, please raise an issue.

## Usage

Typical syntax, when a and b are finite, and f is a matlab function handle:
Expand Down

0 comments on commit 78866ce

Please sign in to comment.