Skip to content

Commit 07e03a6

Browse files
formatting
1 parent 4f79107 commit 07e03a6

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ using SymbolicNumericIntegration
2727
@variables x a b
2828

2929
integrate(3x^3 + 2x - 5)
30+
(x^2 + (3 // 4) * (x^4) - (5 // 1) * x, 0, 0)
3031

3132
integrate(exp(a * x), x; symbolic = true)
32-
(x^2 + (3//4)*(x^4) - (5//1)*x, 0, 0)
33+
(exp(a * x) / a, 0, 0)
3334

3435
integrate(sin(a * x) * cos(b * x), x; symbolic = true, detailed = false)
35-
(exp(a*x) / a, 0, 0)
36+
(-a * cos(a * x) * cos(b * x) - b * sin(a * x) * sin(b * x)) / (a^2 - (b^2))
3637
```
3738

3839
# Citation
@@ -42,7 +43,7 @@ If you use SymbolicNumericIntegration.jl in your research, please cite [this pap
4243
```
4344
4445
@article{Iravanian2022,
45-
author = {Shahriar Iravanian and Carl Julius Martensen and Alessandro Cheli and Shashi Gowda and Anand Jain and Julia Computing and Yingbo Ma and Chris Rackauckas},
46+
author = {Shahriar Iravanian and Carl Julius Martensen and Alessandro Cheli and Shashi Gowda and Anand Jain and Yingbo Ma and Chris Rackauckas},
4647
doi = {10.48550/arxiv.2201.12468},
4748
month = {1},
4849
title = {Symbolic-Numeric Integration of Univariate Expressions based on Sparse Regression},

docs/src/index.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ using SymbolicNumericIntegration
3030
# if `detailed = true` (default), the output is a tuple of (solution, unsolved portion, err)
3131

3232
integrate(3x^3 + 2x - 5)
33-
(x^2 + (3//4)*(x^4) - (5x), 0, 0)
33+
(x^2 + (3 // 4) * (x^4) - (5x), 0, 0)
3434

3535
integrate((5 + 2x)^-1)
36-
((1//2)*log((5//2) + x), 0, 0.0)
36+
((1 // 2) * log((5 // 2) + x), 0, 0.0)
3737

3838
# `detailed = false` simplifies the output to just the resulting integral
3939

4040
integrate(x^2 / (16 + x^2); detailed = false)
41-
x + 4atan((-1//4)*x)
41+
x + 4atan((-1 // 4) * x)
4242

4343
integrate(x^2 * log(x); detailed = false)
44-
(1//3)*(x^3)*log(x) - (1//9)*(x^3)
44+
(1 // 3) * (x^3) * log(x) - (1 // 9) * (x^3)
4545

4646
integrate(sec(x) * tan(x); detailed = false)
4747
sec(x)
@@ -51,24 +51,24 @@ sec(x)
5151
# `symbolic = true` to force using the symbolic solver
5252

5353
integrate(sin(a * x), x; detailed = false, symbolic = true)
54-
(-cos(a*x)) / a
54+
(-cos(a * x)) / a
5555

5656
integrate(x^2 * cos(a * x), x; detailed = false, symbolic = true)
57-
((a^2)*(x^2)*sin(a*x) + 2.0a*x*cos(a*x) - 2.0sin(a*x)) / (a^3)
57+
((a^2) * (x^2) * sin(a * x) + 2.0a * x * cos(a * x) - 2.0sin(a * x)) / (a^3)
5858

5959
integrate(log(log(a * x)) / x, x; detailed = false, symbolic = true)
60-
log(a*x)*log(log(a*x)) - log(a*x)
60+
log(a * x) * log(log(a * x)) - log(a * x)
6161

6262
# multiple symbolic constants
6363

6464
integrate(cosh(a * x) * exp(b * x), x; detailed = false, symbolic = true)
65-
(a*sinh(a*x)*exp(b*x) - b*cosh(a*x)*exp(b*x)) / (a^2 - (b^2))
65+
(a * sinh(a * x) * exp(b * x) - b * cosh(a * x) * exp(b * x)) / (a^2 - (b^2))
6666

6767
# definite integration, passing a tuple of (x, lower bound, higher bound) in the
6868
# second argument
6969

7070
integrate(x * sin(a * x), (x, 0, 1); symbolic = true, detailed = false)
71-
(sin(a) - a*cos(a)) / (a^2)
71+
(sin(a) - a * cos(a)) / (a^2)
7272
```
7373

7474
SymbolicNumericIntegration.jl exports some special integral functions (defined over Complex numbers) and uses them in solving integrals:
@@ -85,7 +85,7 @@ integrate(exp(x + 1) / (x + 1))
8585
(SymbolicNumericIntegration.Ei(1 + x), 0, 0.0)
8686

8787
integrate(x * cos(a * x^2 - 1) / (a * x^2 - 1), x; detailed = false, symbolic = true)
88-
((1//2)*SymbolicNumericIntegration.Ci(a*(x^2) - 1)) / a
88+
((1 // 2) * SymbolicNumericIntegration.Ci(a * (x^2) - 1)) / a
8989

9090
integrate(1 / (x * log(log(x))), x; detailed = false, symbolic = true)
9191
SymbolicNumericIntegration.Li(log(x))

0 commit comments

Comments
 (0)