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
1 answer

The functions "integrate.quad" in python and "integral",'integrate' in R give erroneous results

I need to evaluate several integrals, and I am using the normal(0,1) density to test out. In python import scipy.integrate as integrate import scipy.stats import numpy as np def integrand(x): return scipy.stats.norm(0, 1).pdf(x) print…
Ye Tian
  • 353
  • 1
  • 2
  • 17
2
votes
1 answer

Stripe API on Xamarin.Forms

Has anyone here tried integrating the Stripe API on Xamarin.Forms? I've been looking through the internet and I can't find any resources about it. I just started training on Xamarin and I don't know much. It would be very nice if someone could me…
AlexaMayer
  • 161
  • 3
  • 9
2
votes
1 answer

P4: I made a mistake renaming files and loose its history. How can I fix it?

I was asked to change the extension of a file to another like: file.a --> file.b The thing I did (wrong) was something like : cp file.a file.b p4 add file.b p4 delete file.a And then submitted to my branch. The thing is my team want to keep…
avalencia
  • 33
  • 8
2
votes
2 answers

Speeding up a function involving mapply and integrate

I've inherited R some code and it runs incredibly slowly. Most of the time is spent evaluating the functions of the form (there are about 15 such functions with different integrands G): TMin <- 0.5 F <- function (t, d) { result <- ifelse(((d >…
mawir
  • 177
  • 2
  • 10
2
votes
1 answer

Integration not successful in Python QuTiP

I have been trying to use QuTiP to solve a quantum mechanics matrix differential equation (a Lindblad equation). Here is the code: from qutip import * from matplotlib import * import numpy as np hamiltonian = np.array([[215, -104.1, 5.1, -4.3 …
TanMath
  • 598
  • 1
  • 9
  • 27
2
votes
1 answer

Precision issue of integrate function in R

When using the integrate() function in R, some precision issues make me confused. For example, I want to integrate this function: p <- function(x)exp(-x^2) I choose the interval [-1e3,1e3], and it gives the right answer: > integrate(p, -1e3,…
qqwqert007
  • 125
  • 1
  • 1
  • 8
2
votes
2 answers

How to integrate KIE Workbench 6.1.0.Final (Drools Guvnor) Project with Java Application

I am using KIE Workbench 6.1.0.Final and my Eclipse project where I am trying to execute rules is also 6.1.0 Runtime enabled. I like to know how I can execute/load rules created using Drools Guvnor, from my java application. Before posting this…
spiderman
  • 31
  • 1
  • 4
2
votes
5 answers

Definite integral over one variable in a function with two variables in Scipy

I am trying to calculate the definite integral of a function with multiple variables over just one variable in scipy. This is kind of like what my code looks like- from scipy.integrate import quad import numpy as np def integrand(x,y): return…
Hannah
  • 165
  • 2
  • 3
  • 13
2
votes
2 answers

Branch view for a file that has been split into multiple files

I have a large source file in Perforce that has been split up into several smaller files in a branch. I want to create a branch view that can handle this, but perforce (2009.1) only sees the last of the multiple files. For example, I created: p4…
ScottJ
  • 1,080
  • 12
  • 20
2
votes
1 answer

Integrating SimpleWebSocketServer with django and apache

I use django and apache with mod_wsgi. I'm trying this module: https://github.com/opiate/SimpleWebSocketServer Basically I'm trying to integrate websocket server with my django app, so I can share variables and do db queries with both servers. this…
user3599803
  • 6,435
  • 17
  • 69
  • 130
2
votes
4 answers

Integrate C++ Win32 Console project classes into Visual C++ (Windows forms application) project in Visual Studio 2008

I have written some classes, the back end of a project in C++ (win32 project) and then wanted to add a GUI to it. Visual C++ seemed to be a good solution but after having the GUI part done I couldn't integrate the plain C++ code. Does someone have…
user286628
2
votes
0 answers

Implementation 3D Secure Paypal Cardinal Commerce with C# sample code

I am working in asp.net C# application with 4.0 framework. I need to integrate cardinal commerce payment API. Can you anybody give any sample code and or CMPCDotNet.dll file for that API integration using C#?
2
votes
2 answers

Quickbooks PHP DevKit

I am currently in the process of integrating my php website with the desktop version of Quickbooks. The application resides on a remote computer and will need to remain in sync with the mysql db on my server. After a great deal of research it…
user1769667
  • 329
  • 1
  • 5
  • 16
2
votes
2 answers

Is it possible to integrate Vaadin with Rails??? If so, how?

As i see Vaadin is a Java based UI framework. But it has some really nice set of widgets and a very good layout engine. Is it possible to integrate Rails and Vaadin? JSON perhaps??
Shripad Krishna
  • 10,463
  • 4
  • 52
  • 65
2
votes
2 answers

Compute multiple Integral and plot them (with R)

I'm having trouble to compute and then plot multiple integral. It would be great if you could help me. So I have this function > f = function(x, mu = 30, s = 12){dnorm(x, mu, s)} which i want to integrate multiple time between z(1:100) to +Inf to…
Boo
  • 155
  • 1
  • 12