Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
huangli712 committed Aug 15, 2023
1 parent af9b1cf commit 24fad76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/guide/s_integrator.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ subroutines
To use `s_int_trapezoid()` or `s_int_simpson()`, you have to define the integrand at first. For example:

```fortran
function f(x)
function f(x)
use constants, only : dp
implicit none
Expand All @@ -24,7 +24,7 @@ To use `s_int_trapezoid()` or `s_int_simpson()`, you have to define the integran
real(dp) :: f
f = x * x
end function f
end function f
```

Next, you have to determine the lower bound `a` and upper bound `b`, and the number of points `n`. Noted that now both the `s_int_trapezoid()` and `s_int_simpson()` functions only support the 1-D numerical integration.
Expand Down

0 comments on commit 24fad76

Please sign in to comment.