Skip to content

Commit 7b9b04a

Browse files
Merge pull request #382 from SciML/ChrisRackauckas-patch-1
Update IDE docs
2 parents 97676ba + 61fc6da commit 7b9b04a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/pinn/integro_diff.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ is defined as
1515
using ModelingToolkit
1616
@parameters t
1717
@variables i(..)
18-
Ii = Symbolics.Integral(t, t in DomainSets.ClosedInterval(0, t))
18+
Ii = Symbolics.Integral(t in DomainSets.ClosedInterval(0, t))
1919
```
2020

2121
In multidimensional case,
2222

2323
```julia
24-
Ix = Integral([x,y], (x,y) in DomainSets.UnitSquare())
24+
Ix = Integral((x,y) in DomainSets.UnitSquare())
2525
```
2626

2727
The UnitSquare domain ranges both x and y from 0 to 1.
2828
Similarly a rectangular or cuboidal domain can be defined using `ProductDomain` of ClosedIntervals.
2929

3030
```julia
31-
Ix = Integral([x,y], (x,y) in DomainSets.ProductDomain(ClosedInterval(0 ,1), ClosedInterval(0 ,x)))
31+
Ix = Integral((x,y) in DomainSets.ProductDomain(ClosedInterval(0 ,1), ClosedInterval(0 ,x)))
3232
```
3333

3434

@@ -50,7 +50,7 @@ import ModelingToolkit: Interval, infimum, supremum
5050
@parameters t
5151
@variables i(..)
5252
Di = Differential(t)
53-
Ii = Integral(t, t in DomainSets.ClosedInterval(0, t))
53+
Ii = Integral(t in DomainSets.ClosedInterval(0, t))
5454
eq = Di(i(t)) + 2*i(t) + 5*Ii(i(t)) ~ 1
5555
bcs = [i(0.) ~ 0.0]
5656
domains = [t Interval(0.0,2.0)]

0 commit comments

Comments
 (0)