|
| 1 | +# SymbolicIntegration.jl |
| 2 | + |
| 3 | +```@meta |
| 4 | +CurrentModule = SymbolicIntegration |
| 5 | +``` |
| 6 | + |
| 7 | +SymbolicIntegration.jl provides Julia implementations of symbolic integration algorithms. |
| 8 | + |
| 9 | +The front-end (i.e., the user interface) requires [SymbolicUtils.jl](https://symbolicutils.juliasymbolics.org/). |
| 10 | +The actual integration algorithms are implemented in a generic way using [AbstractAlgebra.jl](https://nemocas.github.io/AbstractAlgebra.jl/dev/). |
| 11 | +Some algorithms require [Nemo.jl](https://nemocas.github.io/Nemo.jl/dev/) for calculations with algebraic numbers. |
| 12 | + |
| 13 | +SymbolicIntegration.jl is based on the algorithms from the book |
| 14 | + |
| 15 | +> Manuel Bronstein, [Symbolic Integration I: Transcentental Functions](https://link.springer.com/book/10.1007/b138171), 2nd ed, Springer 2005, |
| 16 | +
|
| 17 | +for which a pretty complete set of reference implementations is provided. |
| 18 | + |
| 19 | +Currently, SymbolicIntegration.jl can integrate: |
| 20 | +- Rational functions |
| 21 | +- Integrands involving transcendental elementary functions like `exp`, `log`, `sin`, etc. |
| 22 | + |
| 23 | +As in the book, integrands involving algebraic functions like `sqrt` and non-integer powers are not treated. |
| 24 | + |
| 25 | +!!! note |
| 26 | + SymbolicIntegration.jl is still in an early stage of development and should not be expected to run stably in all situations. |
| 27 | + It comes with absolutely no warranty whatsoever. |
| 28 | + |
| 29 | +## Installation |
| 30 | + |
| 31 | +```julia |
| 32 | +julia> using Pkg; Pkg.add("SymbolicIntegration") |
| 33 | +``` |
| 34 | + |
| 35 | +## Quick Start |
| 36 | + |
| 37 | +```julia |
| 38 | +using SymbolicIntegration, SymbolicUtils |
| 39 | + |
| 40 | +@syms x |
| 41 | + |
| 42 | +# Basic polynomial integration |
| 43 | +integrate(x^2, x) # Returns (1//3)*(x^3) |
| 44 | + |
| 45 | +# Rational function integration |
| 46 | +f = (x^3 + x^2 + x + 2)//(x^4 + 3*x^2 + 2) |
| 47 | +integrate(f, x) # Returns (1//2)*log(2 + x^2) + atan(x) |
| 48 | + |
| 49 | +# Transcendental functions |
| 50 | +integrate(exp(x), x) # Returns exp(x) |
| 51 | +integrate(log(x), x) # Returns -x + x*log(x) |
| 52 | +integrate(1/x, x) # Returns log(x) |
| 53 | + |
| 54 | +# More complex examples |
| 55 | +f = 1/(x*log(x)) |
| 56 | +integrate(f, x) # Returns log(log(x)) |
| 57 | +``` |
| 58 | + |
| 59 | +## Algorithm Coverage |
| 60 | + |
| 61 | +This package implements the complete suite of algorithms from Bronstein's book: |
| 62 | + |
| 63 | +- **Rational Function Integration** (Chapter 2) |
| 64 | + - Hermite reduction |
| 65 | + - Rothstein-Trager method for logarithmic parts |
| 66 | + - Complexification and real form conversion |
| 67 | + |
| 68 | +- **Transcendental Function Integration** (Chapters 5-6) |
| 69 | + - Risch algorithm for elementary functions |
| 70 | + - Differential field towers |
| 71 | + - Primitive and hyperexponential cases |
| 72 | + |
| 73 | +- **Algebraic Function Integration** (Future work) |
| 74 | + - Currently not implemented |
| 75 | + |
| 76 | +## Contributing |
| 77 | + |
| 78 | +We welcome contributions! Please see the [Symbolics.jl contributing guidelines](https://docs.sciml.ai/Symbolics/stable/contributing/). |
| 79 | + |
| 80 | +## Citation |
| 81 | + |
| 82 | +If you use SymbolicIntegration.jl in your research, please cite: |
| 83 | + |
| 84 | +```bibtex |
| 85 | +@software{SymbolicIntegration.jl, |
| 86 | + author = {Harald HofstΓ€tter and contributors}, |
| 87 | + title = {SymbolicIntegration.jl: Symbolic Integration for Julia}, |
| 88 | + url = {https://github.com/JuliaSymbolics/SymbolicIntegration.jl}, |
| 89 | + year = {2023-2025} |
| 90 | +} |
| 91 | +``` |
| 92 | + |
| 93 | +## Table of Contents |
| 94 | + |
| 95 | +```@contents |
| 96 | +Pages = [ |
| 97 | + "manual/getting_started.md", |
| 98 | + "manual/basic_usage.md", |
| 99 | + "manual/rational_functions.md", |
| 100 | + "manual/transcendental_functions.md", |
| 101 | + "api.md" |
| 102 | +] |
| 103 | +Depth = 2 |
| 104 | +``` |
0 commit comments