Questions tagged [integral]

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

In numerical analysis field, algorithms for integration are a typical example of use for this tag. See also:

819 questions
-3
votes
1 answer

How do I integrate in java?

I'm working on a cumulative distribution function and I need to be able to solve integrals in Java. I've already tried Math3 in Apache Commons, but I cannot figure that out either. The type of integral I need to solve is for an Integral from a…
Logan
  • 51
  • 10
-3
votes
1 answer

Evaluate double integrals using Simpsons composite rule

I have previously created this code to evaluate an integral using Simpsons composite rule, and now need to modify it to evaluate double integrals. Does anyone have any idea how to go about this? I would be grateful for any help.. #include…
Ca01an
  • 19
  • 1
  • 10
-4
votes
1 answer

How to integrate following function in R?

I am not able to integrate this function. I am getting an error: argument "y" is missing, with no default. The answer to this problem is 1.
Amish Sharma
  • 196
  • 2
  • 12
-4
votes
1 answer

Integration inside a root-find function

I am trying to code a root finding algorithm in R that will solve an equation of the form: integral from xinitial->x of f(x) = a with inputs of xinitial, a and the form of function f(x). Do I need to use vectorize to set up the integral values…
CSW
  • 1
  • 1
-4
votes
2 answers

calculation of the integral method trapeze

I have already current code, but it still not working. If code is correct, please help how I can compile it. I had tried it to compile so: gfortran trap.f -fopenmp PROGRAM TRAP USE OMP_LIB DOUBLE PRECISION INTEG, TMPINT DOUBLE PRECISION A, B …
-4
votes
1 answer

Implementation of integral and infinite summation

I am having some trouble with implementing the following equation in Matlab: The trouble is with using numerical/symbolic variables/implementation. Can someone please write down the code to help me. Implementation would be great. The constants for…
GSM
  • 1
-4
votes
1 answer

how to implement this Integrate[x^n E^(x - 1), {x, 0, 1}] in matlab

hi I've search and read but I couldn't solve this one in matlab. please help me out to solve this problem integral_0^1 x^n e^(x-1) dx
user2283774
  • 13
  • 1
  • 3
-5
votes
1 answer

How to find integral in MATLAB?

How should I calculate the following integral in Matlab?
user7390857
1 2 3
54
55