Top "Integral" questions

This tag should be used for questions related to coding solutions for integrals.

Split decimal variable into integral and fraction parts

I am trying to extract the integral and fractional parts from a decimal value (both parts should be integers): decimal …

c# decimal fractions integral
Best way to write a Python function that integrates a gaussian?

In attempting to use scipy's quad method to integrate a gaussian (lets say there's a gaussian method named gauss), I …

python scipy gaussian integral
What causes this error (AttributeError: 'Mul' object has no attribute 'cos') in Python?

I am getting the following error code when trying to evaluate a definite integral in Python. AttributeError Traceback (most recent …

python sympy integral
Using scipy to perform discrete integration of the sample

I am trying to port from labview to python. In labview there is a function "Integral x(t) VI" that …

python integration scipy integral
Haskell Converting Int to Float

I'm having some problem with one of the functions which I'm new at, it's the fromIntegral function. Basically I need …

haskell floating-point int integral
calculating double integrals in R quickly

I'm looking for a solution for a double integral that is faster than integrate(function(y) { sapply(y, function(y) { …

c r fortran integral
I don't understand Integral part of PID controller

I dont understand integral part of PID controller. Let's assume this pseudocode from Wikipedia: previous_error = 0 integral = 0 start: error = setpoint …

controller integral control-theory pid-controller
double integral in R

I'm wondering how to code that takes double integrals in R. I already referred two similar questions. calculating double integrals …

r integral numerical-integration
Fourth-order Runge–Kutta method (RK4) collapses after a few iterations

I'm trying to solve: x' = 60*x - 0.2*x*y; y' = 0.01*x*y - 100* y; using the fourth-order Runge-Kutta algorithm. Starting …

matlab differential-equations integral runge-kutta
How can I increase the number of subdivisions for functions in `scipy.integrate.dblquad`?

I'm using scipy.integrate.dblquad, and I get this error: UserWarning: The maximum number of subdivisions (50) has been achieved. If …

python scipy numerical-methods integral