numerical-integration Questions
3
Solved
I'm trying to solve a second order ODE using odeint from scipy. The issue I'm having is the function is implicitly coupled to the second order term, as seen in the simplified snippet (please ignore...
Alarick asked 10/5, 2014 at 7:58
3
Solved
I am trying to port from labview to python.
In labview there is a function "Integral x(t) VI" that takes a set of samples as input, performs a discrete integration of the samples and returns a li...
Typecast asked 30/5, 2012 at 10:19
3
I'm wondering how to code that takes double integrals in R. I already referred two similar questions.
calculating double integrals in R quickly
double integration in R with additional argument
B...
Jeremyjerez asked 3/4, 2017 at 16:13
6
I have a symbolic array that can be expressed as:
from sympy import lambdify, Matrix
g_sympy = Matrix([[ x, 2*x, 3*x, 4*x, 5*x, 6*x, 7*x, 8*x, 9*x, 10*x],
[x**2, x**3, x**4, x**5, x**6, x**7, x*...
Hispaniola asked 12/6, 2013 at 16:10
1
Solved
I have written a function to compute the Laplace transform of a function using scipy.integrate.quad. It is not a very sophisticated function and currently performs poorly on the probability density...
Distinctive asked 21/10, 2020 at 11:28
2
I have the following problem. I have a function f defined in python using numpy functions. The function is smooth and integrable on positive reals. I want to construct the double antiderivative of ...
Dorton asked 8/12, 2021 at 15:6
2
Solved
I need to create a function which would be the inverse of the np.gradient function.
Where the Vx,Vy arrays (Velocity component vectors) are the input and the output would be an array of anti-deriva...
Crestfallen asked 2/8, 2020 at 20:18
3
Solved
Julia absolute newcomer here with a question for you.
I'm teaching myself some Julia by porting some of my Mathematica and Python code (mostly scientific computations in physics etc.), and seeing ...
Cryptozoite asked 7/2, 2020 at 22:8
3
Solved
I want to repeatedly calculate a two-dimensional complex integral using dblquad from scipy.integrate. As the number of evaluations will be quite high I would like to increase the evaluation speed o...
Recapitulation asked 3/4, 2013 at 16:43
2
Solved
Title says it all. Is there a convenient function in pytorch that can do something like np.trapz(y, x) (integrating over the the points in x and y via trapezoidal rule)?
Dapsang asked 10/4, 2019 at 5:54
1
I would like to numerically integration a function using multiple cpus in python. I would like to do something like:
from scipy.integrate import quad
import multiprocessing
def FanDDW(arguments):
...
Uninterrupted asked 10/5, 2013 at 15:48
3
Solved
Okay I know this has been asked before with a limited example for scaling [-1, 1] intervals [a, b] Different intervals for Gauss-Legendre quadrature in numpy BUT no one has posted how to generalize...
Transpacific asked 21/5, 2016 at 20:31
4
Solved
I'm trying to use Gaussian quadrature to approximate the integral of a function. (More info here: http://austingwalters.com/gaussian-quadrature/). The first function is on the interval [-1,1]. The ...
Ursulaursulette asked 24/11, 2014 at 23:9
1
I have been trying to use scipy.integrate.quadrature for integrating a scalar-valued function that takes as input a vector of fixed dimension. However, despite the claim of scipy.integrate.quadratu...
Mestizo asked 26/2, 2019 at 20:10
0
I have this joint beta distribution I am trying to integrate over:
alpha1 = 400
beta1 = 26000
alpha2 = 410
beta2 = 26000
integrate(function(y) {
sapply(y, function(y) {integrate(function(x) dbet...
Koweit asked 21/9, 2018 at 16:23
1
Solved
I am trying to integrate over a constant function in MATLAB 2017a, but I am stuck. First of all when I integrate using the following script, I get the right output. So the script works for a x0 whi...
Torsk asked 8/6, 2018 at 8:19
2
Solved
My optimization task deals with calculation of the following integral and finding the best values of xl and xu:
Iterations take too long, so I decided to speed them up by calculating integral fo...
Lowgrade asked 29/3, 2018 at 13:48
2
I want to integrate exp(-x) from 0 to 100000 by using integrate function in R. However I find the answer to be 2.061453e-45 which is almost 0 (zero). The true answer would be 1-exp(-100000) which i...
Barnabe asked 28/2, 2018 at 6:36
2
Solved
I have a DataFrame of force-displacement data. The displacement array has been set to the DataFrame index, and the columns are my various force curves for different tests.
How do I calculate the w...
Dendro asked 31/12, 2015 at 15:53
2
Solved
Is it possible to do triple integration in R without using the cubature package?
based on the answer in this post
InnerFunc = function(x) { x + 0.805 }
InnerIntegral = function(y) { sapply(y,
...
Cahoon asked 14/6, 2017 at 18:10
1
Solved
If I have a random number Z that is defined as the sum of two other random numbers, X and Y, then the probability distribution of Z is the convolution of the probability distributions for X and Y. ...
Arbitral asked 29/11, 2017 at 21:54
2
Solved
Without using a mass matrix, ode solvers like ode45 can solve y'=f(t,y).
But there is an option of mass matrix in ode solvers for problems that involve a "mass" matrix, M(t,y)y'=f(t,y).
What exac...
Atween asked 26/6, 2016 at 4:37
3
Solved
I know that I asked the same question before, but as I am pretty new here the question was asked poorly and not reproducible. Therefore I try to do it better here. (If I only edit the old one proba...
Rim asked 7/9, 2014 at 18:46
1
Solved
I'm working on a Matlab script that involves fourth order tensors calculations volume integrals. Let H(r,theta,phi) be the function I want to integrate. Assume that H cannot be obtained by simple o...
Polemics asked 22/6, 2017 at 11:6
7
Solved
I would like to calculate the area under a curve to do integration without defining a function such as in integrate().
My data looks as this:
Date Strike Volatility
2003-01-01 20 0.2
2003-01-01 3...
Sarad asked 10/2, 2011 at 7:35
1 Next >
© 2022 - 2024 — McMap. All rights reserved.