Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 4 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Most users will want to work with a limited set of basic functions:
* `second_derivative()`: Use this for functions from R to R
* `gradient()`: Use this for functions from R^n to R
* `hessian()`: Use this for functions from R^n to R
* `integrate()`: Use this to integrate functions from R to R
* `differentiate()`: Use this to perform symbolic differentiation
* `simplify()`: Use this to perform symbolic simplification
* `deparse()`: Use this to get usual infix representation of expressions
Expand Down Expand Up @@ -104,33 +103,17 @@ derivative you calculate:
f''(1.0) - (-sin(1.0))
f'''(1.0) - (-cos(1.0))

## Integration using Simpson's Rule

using Calculus

# Compare with log(2)
integrate(x -> 1 / x, 1.0, 2.0)

# Compare with cos(pi) - cos(0)
integrate(x -> -sin(x), 0.0, float64(pi))

## Integration using Monte Carlo method

using Calculus

# Compare with cos(pi) - cos(0)
integrate(x -> -sin(x), 0.0, float64(pi), :monte_carlo)

## Symbolic Differentiation

using Calculus

differentiate("cos(x) + sin(x) + exp(-x) * cos(x)", :x)
differentiate("cos(x) + sin(y) + exp(-x) * cos(y)", [:x, :y])

# Coming Soon
## Numerical Integration

* Finite differencing based on complex numbers
The Calculus package no longer provides routines for univariate numerical integration.
Use the ``quadgk`` method from base Julia instead.

# Credits

Expand All @@ -142,6 +125,7 @@ Calculus.jl is built on contributions from:
* Nathaniel Daw
* Blake Johnson
* Avik Sengupta
* Miles Lubin

And draws inspiration and ideas from:

Expand Down
4 changes: 2 additions & 2 deletions src/Calculus.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ module Calculus
differentiate,
gradient,
hessian,
integrate,
jacobian,
second_derivative

Expand Down Expand Up @@ -60,7 +59,8 @@ module Calculus
include("finite_difference.jl")
include("derivative.jl")
include("check_derivative.jl")
include("integrate.jl")
@Base.deprecate integrate(f,a,b) quadgk(f,a,b)[1]
@Base.deprecate integrate(f,a,b,method) quadgk(f,a,b)[1]
include("symbolic.jl")
include("differentiate.jl")
include("deparse.jl")
Expand Down
49 changes: 0 additions & 49 deletions src/integrate.jl

This file was deleted.

39 changes: 0 additions & 39 deletions test/integrate.jl

This file was deleted.

1 change: 0 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ using Base.Test
tests = ["finite_difference",
"derivative",
"check_derivative",
"integrate",
"symbolic",
"deparse"]

Expand Down