@@ -20,7 +20,6 @@ Most users will want to work with a limited set of basic functions:
20
20
* ` second_derivative() ` : Use this for functions from R to R
21
21
* ` gradient() ` : Use this for functions from R^n to R
22
22
* ` hessian() ` : Use this for functions from R^n to R
23
- * ` integrate() ` : Use this to integrate functions from R to R
24
23
* ` differentiate() ` : Use this to perform symbolic differentiation
25
24
* ` simplify() ` : Use this to perform symbolic simplification
26
25
* ` deparse() ` : Use this to get usual infix representation of expressions
@@ -104,33 +103,17 @@ derivative you calculate:
104
103
f''(1.0) - (-sin(1.0))
105
104
f'''(1.0) - (-cos(1.0))
106
105
107
- ## Integration using Simpson's Rule
108
-
109
- using Calculus
110
-
111
- # Compare with log(2)
112
- integrate(x -> 1 / x, 1.0, 2.0)
113
-
114
- # Compare with cos(pi) - cos(0)
115
- integrate(x -> -sin(x), 0.0, float64(pi))
116
-
117
- ## Integration using Monte Carlo method
118
-
119
- using Calculus
120
-
121
- # Compare with cos(pi) - cos(0)
122
- integrate(x -> -sin(x), 0.0, float64(pi), :monte_carlo)
123
-
124
106
## Symbolic Differentiation
125
107
126
108
using Calculus
127
109
128
110
differentiate("cos(x) + sin(x) + exp(-x) * cos(x)", :x)
129
111
differentiate("cos(x) + sin(y) + exp(-x) * cos(y)", [:x, :y])
130
112
131
- # Coming Soon
113
+ ## Numerical Integration
132
114
133
- * Finite differencing based on complex numbers
115
+ The Calculus package no longer provides routines for univariate numerical integration.
116
+ Use the `` quadgk `` method from base Julia instead.
134
117
135
118
# Credits
136
119
@@ -142,6 +125,7 @@ Calculus.jl is built on contributions from:
142
125
* Nathaniel Daw
143
126
* Blake Johnson
144
127
* Avik Sengupta
128
+ * Miles Lubin
145
129
146
130
And draws inspiration and ideas from:
147
131
0 commit comments