You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I would like to know whether there is functionality for integrating functions with parameters. For example, if one has a function
def func(alpha, x):
return x**2 * alpha
how can one apply Trapezoid rule to integrate over x, for example? In the docs there is information about additional arguments of functions in BaseIntegrator class, but it seems like it is always set to None when applied to concrete methods.
If there is no such option, one may add something like args=(alpha,) to Trapezoid.integrate() or any other method.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi, I would like to know whether there is functionality for integrating functions with parameters. For example, if one has a function
how can one apply
Trapezoid
rule to integrate overx
, for example? In the docs there is information about additional arguments of functions inBaseIntegrator
class, but it seems like it is always set toNone
when applied to concrete methods.If there is no such option, one may add something like
args=(alpha,)
toTrapezoid.integrate()
or any other method.Thanks in advance!
The text was updated successfully, but these errors were encountered: