- #1
magimbu
- 2
- 0
problem with integration for WKB approximation in MATLAB
hi all,
i have been having troubles with getting MATLAB to solve the following problem (the language is not the MATLAB one, the functions are not solvable by the symbolic integration and i was trying to get one of the quad functions to do it)(r1,r2 are numbers):
int(function*cos(int(function2,rprime,r,r2)),r,r1,r2)
As you can see the problem is that inside the cosinues there is an integral that goes from r ( variable of the first integral) to r2, so i can t solve it numerically, because i need it in function of r in order to perform the big integral.
I thought a couple integral function would exist but i am not able to find any ( the doublequad only works if its only one function integreded twice).
I hope what i wrote cna be understood, and appreciate your help and time!
JN
hi all,
i have been having troubles with getting MATLAB to solve the following problem (the language is not the MATLAB one, the functions are not solvable by the symbolic integration and i was trying to get one of the quad functions to do it)(r1,r2 are numbers):
int(function*cos(int(function2,rprime,r,r2)),r,r1,r2)
As you can see the problem is that inside the cosinues there is an integral that goes from r ( variable of the first integral) to r2, so i can t solve it numerically, because i need it in function of r in order to perform the big integral.
I thought a couple integral function would exist but i am not able to find any ( the doublequad only works if its only one function integreded twice).
I hope what i wrote cna be understood, and appreciate your help and time!
JN
Last edited: