Questions tagged [integrate]

Avoid using this tag as it is vague. For system integration, use tag [integration]; for numerical integration, use tag [numerical integration] as well as the tag for the computing language you are using.

Please avoid using this tag as it is vague. For system integration, use tag [integration]; for numerical integration, use tag [numerical integration] as well as the tag for the computing language you are using.

465 questions
2
votes
2 answers

Automatic partial derivation of integrals of polynoms

I've been searching for a C/C++ library that does symbolic differantation and integrals of polynoms, but haven't found one that suits my needs. I'm afraid that the problem is that I'm not using the correct terminology. The problem is this : given a…
Noam
  • 23
  • 2
2
votes
1 answer

Combining Cocos2D view into an existing tabbar app

I have an app with a main tabBar view and I would like to add a cocos2D game in one of those tabs. Is there any way to integrate it without reprograming all in cocos2d? Thanks
k20
  • 2,008
  • 1
  • 17
  • 23
2
votes
0 answers

How to Integrate GitLab with Jasmine

I would like to ask, about if somebody can explain to me, if it is possible to integrate jasmine with gitlab, to run automatically unit test every moment when it pass a deploy.. I has been looking arround but I can not find information. thanks..
2
votes
2 answers

Using scipy.integrate.quad to perform 3D integral

Motivation for the question I'm trying to integrate a function f(x,y,z) over all space. I have tried using scipy.integrate.tplquad & scipy.integrate.nquad for the integration, but both methods return the integral as 0 (when the integral should be…
Ben Pepper
  • 37
  • 6
2
votes
1 answer

Function integration returns “only length-1 arrays can be converted to Python scalars”

I'm trying to integrate a function into a given range that shows the flow of particles in a zero-angle (theta) direction as a function of the energy E of the particles. I've tried several ways and got different errors but there are two that persist…
2
votes
2 answers

Filter data that falls under the value of a predefined circle

I have a plot like My goal is to filter out all the data that falls inside the inner circle. I have tried ways to filter only by the data that draws the circle, problem is that is has X and Y values and they're in all 4 spaces of a cartesian map,…
Cris
  • 787
  • 1
  • 5
  • 19
2
votes
1 answer

Integrate in R is failing when upper limit is Inf

I need to numerically approximate the variance of the logarithm of the sum of two log-normal random variables. I'd like to do this in R, here's an example: ################ ## Setup data ## ################ sdX1 = 0.33 sdX2 = 0.70 muX1 =…
user13317
  • 451
  • 3
  • 13
2
votes
3 answers

Python integrals

I'm trying to solve the integral of (2**(1/2)*y**(1/2)/2)**2 from 0 to 5 (also shown here). I've been using func = lambda y: ( 2**(1/2) * y**(1/2)/2 )**2 and a == 0 and b == 5 from scipy import integrate integrate.quad(func, a b) For some…
Nona Urbiz
  • 4,873
  • 16
  • 57
  • 84
2
votes
3 answers

How to calculate the mass of a inhomogenous sphere?

I want to calculated the mass of a sphere based on a threedimensional discret inhomogenous density distribution. Lets say a set of 3x3x3 cubes of different densities is inscribed by a sphere. What is the fastest way to sum up the partitioned masses…
surcouf
  • 21
  • 2
2
votes
3 answers

Perforce: Is it possible to execute an integrate command on multiple files (not folders)?

I'm trying to execute an "Integrate" perforce command (see: http://www.perforce.com/perforce/doc.current/manuals/cmdref/integrate.html) on a list of files and not on a single file or a specific folder. Is such a thing possible ? In other words, is…
Hussein Khalil
  • 1,585
  • 2
  • 25
  • 47
2
votes
2 answers

Wordpress inside Laravel Integration

I have one system (built in Laravel 4.2) and I want to integrate it with Wordpress. Only authenticaed users can access this blog. I think in 2 options: 1 -> In routes.php include something like Route::group(array('before' => 'auth')), function() { …
Andre Trevas
  • 51
  • 10
2
votes
2 answers

I can't integrate cause of math range error

I can't integrate this in python (1/1+t))+(-1/exp(t)) [0,np.inf] import numpy as np from math import exp from scipy.integrate import quad print(quad(lamba t: (1/1+t))+(-1/exp(t)),0,np.inf) It must show Euler constant
Davidmp11
  • 23
  • 2
2
votes
1 answer

How to define a function value at a point for an integral in R?

I would like to calculate the following double integral, with lower bound = -Inf and upper bound = Inf for both integrals. How can I define the function value to be zero for M=0 and/or leave out the numerical integration over M=0? It is a density…
Seb
  • 21
  • 2
2
votes
1 answer

Python: Piecewise function integration error: "TypeError: cannot determine truth value of ..."

This code runs correctly: import sympy as sp def xon (ton, t): return (t-ton)/5 xonInt = sp.integrate (xon(ton, t),t) print xonInt But when the function becomes piecewise, e.g.: import sympy as sp def xon (ton, t): if ton <= t: …
user_185051
  • 426
  • 5
  • 19
2
votes
1 answer

WP is_user_logged_in() doesn't work in integrated site

I am trying to integrate the WP functions in a external php file. The problem is that user's and login's authentication functions like is_user_logged_in(), is_admin(), etc doesn't work at all. However, Post's functions are working correct. So, it…
Greg
  • 343
  • 3
  • 17