Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

numerial_integral for a function having two variables

Why the following code does not work with SageMath version9, though it works with SageMath version8?

f(x,y)=sin(x+2*y) numerical_integral(f,0,pi,params=[5])

SageMath version8.6 gives (-1.6781430581529053, 2.2206773047754592e-14). SageMath version9.7 gives (0.0, 0.0).

Execution of numerical_integral(f(x,5), 0, pi) in SageMath version9.7 also gives (-1.6781430581529053, 2.2206773047754592e-14).