JuliaMath / JuliaMath/NumericalIntegration.jl

initial value for cumulative integration

Open
#41 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
66
Forks
19
PR merge metrics
No merged PRs in 30d

Description

When I use culum_integrate, it appears that it integrates 1 index beyond the array.

```
using NumericalIntegration
a = LinRange(0,1,100)
print(integrate(a,a), ' ')
print(last(cumul_integrate(a,a)))
```

returns:
```
0.5 0.5000510152025299
```

Is there a way to define the initial value of the integration so that it returns an integration for 0 to 1 with the first index being the initial value?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.