integral Questions
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
2
Solved
In doc of sympy http://docs.sympy.org/latest/modules/integrals/integrals.html we can read:
The manualintegrate module has functions that return the steps used (see the module docstring for more ...
2
Solved
I'm having some problem with one of the functions which I'm new at, it's the fromIntegral function.
Basically I need to take in two Int arguments and return the percentage of the numbers but when ...
Chimney asked 24/4, 2012 at 17:48
4
Solved
Goal
I would like to compute the 3D volume integral of a numeric scalar field.
Code
For this post, I will use an example of which the integral can be exactly computed. I have therefore chosen the f...
1
Solved
I want to run an integral for different values of "e" and "m" and put the results in a list.
m =[0.14, 0.14, 0.14, 1.30, 4.50]
e = [2/3, -1/3, -1/3, 2/3, -1/3]
def f(z, r):
ret...
Sidney asked 7/10, 2021 at 3:55
2
Solved
I am having a problem when using simpson's rule from scipy.integrate library. The Area calculated sometimes is negative even if all the numbers are positive and the values on the x-axis are increas...
Johnathon asked 18/9, 2019 at 16:7
2
Solved
I am writing a program in Python to solve the Schrödinger equation using the Free ICI Method (well, SICI method right now... but Free ICI is what it will turn into). If this does not sound familiar...
Jehanna asked 16/5, 2019 at 4:22
4
Solved
This is for a function to calculate the AUC using the Midpoint Rule. Using R how can I define a vector that contains the midpoints between values of a previous vector? Or how can I shift the values...
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
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
3
Solved
I've been using Python to calculate math equations. For example:
from sympy import Symbol, Derivative, Integral
x = Symbol('x')
d = Symbol('d')
Integral(8*x**(6/5)-7*x**(3/2),x).doit()
Which res...
1
Solved
I want to integrate the equation:
f(x) = integral(E^(-i * omega * t)), from -a to a.
I wrote the following code:
from sympy import *
from sympy.abc import a, omega, t
init_printing(use_unic...
6
I dont understand integral part of PID controller. Let's assume this pseudocode from Wikipedia:
previous_error = 0
integral = 0
start:
error = setpoint - measured_value
integral = integral + er...
Yoko asked 24/11, 2012 at 15:4
3
Solved
I would like to lambdify the function Integral(t**t,(t,0,x)). It works, but my new function, which was returned by lambdify, doesn't return a number but only sympy.integrals.integrals.Integral clas...
1
Solved
The MWE below shows two ways of integrating the same 2D kernel density estimate, obtained for this data using the stats.gaussian_kde() function.
The integration is performed for all (x, y) below t...
Trump asked 9/3, 2016 at 21:2
1
I am getting the following error code when trying to evaluate a definite integral in Python.
AttributeError Traceback (most recent call last)
<ipython-input-7-2be8718c68ec> in <module>...
5
I am trying to extract the integral and fractional parts from a decimal value (both parts should be integers):
decimal decimalValue = 12.34m;
int integral = (int) decimal.Truncate(decimalValue);
i...
2
Solved
The full mathematical problem is here.
Briefly I want to integrate a function with a double integral. The inner integral has boundaries 20 and x-2, while the outer has boundaries 22 and 30.
I kno...
2
Solved
When using curve_fit from scipy.optimize to fit a some data in python, one first defines the fitting function (e.g. a 2nd order polynomial) as follows:
def f(x, a, b):
return a*x**2+b*x
And the...
Maggs asked 19/5, 2015 at 17:11
1
Solved
Using the recent version of sympy (0.7.6) I get the following bad result when determining the integral of a function with support [0,y):
from sympy import *
a,b,c,x,z = symbols("a,b,c,x,z",real = ...
2
Solved
According to http://en.cppreference.com/w/cpp/language/reinterpret_cast, it is known that reinterpret_cast a pointer to an integral of sufficient size and back yield the same value. I'm wondering w...
Theory asked 11/3, 2015 at 5:21
2
Solved
I'm using scipy.integrate.dblquad, and I get this error:
UserWarning: The maximum number of subdivisions (50) has been achieved.
If increasing the limit yields no improvement ...
I want to incre...
Shuck asked 3/1, 2014 at 23:58
1
Solved
In SymPy, is it possible to apply limits to an indefinite integral and evaluate it?
import sympy
from sympy.abc import theta
y = sympy.sin(theta)
Y_indef = sympy.Integral(y)
Y_def = sympy.Integr...
4
Solved
I was reading Setting an int to Infinity in C++. I understand that when one needs true infinity, one is supposed to use numeric_limits<float>::infinity(); I guess the rationale behind it is t...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.