Skip to content

Commit 7db42de

Browse files
Merge pull request #251 from sathvikbhagavan/sb/docs
docs: update the interface to describe order argument in derivatives
2 parents bf94468 + 473c60e commit 7db42de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/src/interface.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ A2(300.0)
3737

3838
## Derivatives
3939

40-
Derivatives of the interpolated curves can also be computed at any point for all the methods.
40+
Derivatives of the interpolated curves can also be computed at any point for all the methods. Derivatives upto second order is supported where first order derivative is computed analytically and second order using `ForwardDiff.jl`. Order is passed as the third argument. It is 1 by default.
4141

4242
We will continue with the above example, but the API is the same for all the methods. If the interpolation is defined with `extrapolate=true`, derivatives can also be extrapolated.
4343

4444
```@example interface
4545
# derivative(A, t)
46-
DataInterpolations.derivative(A1, 1.0)
46+
DataInterpolations.derivative(A1, 1.0, 1)
47+
DataInterpolations.derivative(A1, 1.0, 2)
4748
4849
# Extrapolation
4950
DataInterpolations.derivative(A2, 300.0)

0 commit comments

Comments
 (0)