Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieugomez committed Jun 12, 2024
1 parent 94e7955 commit 0324bc7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ feynman_kac(MX; t = range(0, 100, step = 1/12), f = zeros(length(x)), ψ = ones


# Derivative
The package allows you to compute (lazyly) the first and second derivatives on a grid through finite difference schemes
The package also allows you to compute (lazy) first and second derivatives of a function on a grid using a finite difference schemes

```
```julia
using InfinitesimalGenerators
x = range(-1, 1, length = 100)
f = sin.(x)
FirstDerivative(x, sin, direction = :upward, bc = (0, 0))
FirstDerivative(x, sin, direction = :downward, bc = (0, 0))
SecondDerivative(x, sin, bc = (0, 0))
FirstDerivative(x, f, direction = :upward, bc = (0, 0))
FirstDerivative(x, f, direction = :downward, bc = (0, 0))
SecondDerivative(x, f, bc = (0, 0))
```
The argument `bc` refers to the value of the first-derivative at the limit

Expand Down

0 comments on commit 0324bc7

Please sign in to comment.