You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,18 @@ FiniteDifferences.jl estimates derivatives with [finite differences](https://en.
11
11
12
12
See also the Python package [FDM](https://github.com/wesselb/fdm).
13
13
14
+
#### FiniteDiff.jl vs FiniteDifferences.jl
15
+
[FiniteDiff.jl](https://github.com/JuliaDiff/FiniteDiff.jl) and [FiniteDifferences.jl](https://github.com/JuliaDiff/FiniteDifferences.jl)
16
+
are similar libraries: both calculate approximate derivatives numerically.
17
+
You should definately use one or the other, rather than the legacy [Calculus.jl](https://github.com/JuliaMath/Calculus.jl) finite differencing, or reimplementing it yourself.
18
+
At some point in the future they might merge, or one might depend on the other.
19
+
Right now here are the differences:
20
+
21
+
- FiniteDifferences.jl supports basically any type, where as FiniteDiff.jl supports only array-ish types
22
+
- FiniteDifferences.jl supports higher order approximation
23
+
- FiniteDiff.jl is carefully optimized to minimize allocations
24
+
- FiniteDiff.jl supports coloring vectors for efficient calculation of sparse Jacobians
25
+
14
26
## Examples
15
27
16
28
Compute the first derivative of `sin` with a 5th order central method:
0 commit comments