python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
SciPy numerical integration routine returns a negative absolute error estimate
Sometimes scipy.integrate.quad returns a negative estimate of the absolute error in the result. For example,
import scipy.integrate
def f(x):
ep = 1e-5
return (1 / (x - 0.5 + 1j * ep) ** 2).r...
tueda
Votes: 0
Answers: 1
I am trying to evaluate double integral on octave
So I have need to evaluate double integral on octave[![question][1]][1]
>> x1 = 1;
>> x2 = 0;
>> y1 = 2;
>> y2 = 0;
>> f = @(x,y) (y-x)./((x+y).^3);
>> integral2(f,...
Muhammad Shamil Umar
Votes: 0
Answers: 2
Differing results of integrals from scipy.integrate and mpmath.quad
I am integrating a function to implement the functions in this paper and I observe different outputs from scipy.integrate.quad and mpmath.quad as per the following:
import mpmath as mp
from scipy impo...
Anil
Votes: 0
Answers: 0
Python: Solve autonomous second order ODE
I have the following autonomous system of ODEs where x and v are vectors (with initial conditions x0 and v0)
dx/dt = v
dv/dt = F(x, v)
Equivalently, one can write it as a second order ODE system
d^2...
Euler_Salter
Votes: 0
Answers: 1