Skip to content

Help integrating a vector function #422

Answered by nschloe
piperfw asked this question in Q&A
Discussion options

You must be logged in to vote
import numpy as np
import quadpy


def integrand(x):
    return [np.sin(x), np.ones_like(x)]

res, err = quadpy.quad(integrand, 0, 1)

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@nschloe
Comment options

@nschloe
Comment options

@piperfw
Comment options

@nschloe
Comment options

@piperfw
Comment options

Answer selected by piperfw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants