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

initial value for cumulative integration #41

Open
jmcclena opened this issue May 25, 2021 · 1 comment
Open

initial value for cumulative integration #41

jmcclena opened this issue May 25, 2021 · 1 comment

Comments

@jmcclena
Copy link

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?

@jmcclena
Copy link
Author

Sorry, my description of the problem was wrong. It is not an indexing thing. Its just that the initial value is chosen defaulting to 5.1e-5 for cumul_integrate. For my purposes, I can just subtract off the index 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant