Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small documentation fixes #219

Merged
merged 2 commits into from
Jan 20, 2024
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
8 changes: 4 additions & 4 deletions docs/src/basics/SampledIntegralProblem.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for doing that.

Say, by some means we have generated a dataset `x` and `y`:

```example 1
```@example 1
using Integrals # hide
f = x -> x^2
x = range(0, 1, length=20)
Expand All @@ -18,7 +18,7 @@ y = f.(x)

Now, we can integrate this data set as follows:

```example 1
```@example 1
problem = SampledIntegralProblem(y, x)
method = TrapezoidalRule()
solve(problem, method)
Expand All @@ -37,7 +37,7 @@ non-uniform grids.

Example:

```example 2
```@example 2
using Integrals # hide
f = x -> x^7
x = [0.0; sort(rand(1000)); 1.0]
Expand All @@ -53,7 +53,7 @@ If the provided data set `y` is a multidimensional array, the integrals are eval
of its axes. For performance reasons, the last axis of the array `y` is chosen by default, but this can be modified with the `dim`
keyword argument to the problem definition.

```example 3
```@example 3
using Integrals # hide
f1 = x -> x^2
f2 = x -> x^3
Expand Down
2 changes: 1 addition & 1 deletion src/algorithms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ f = x -> x^2
x = range(0, 1, length=20)
y = f.(x)
problem = SampledIntegralProblem(y, x)
method = TrapezoidalRul()
method = TrapezoidalRule()
solve(problem, method)
```
"""
Expand Down
Loading