I used my computer program to get .
EDIT: I programmed the wrong function, the poster had the correct answer.
I need to confirm my own numerical calculation of the following integral with another package - possibly one that calculates to more decimal places. If someone can point me to such software or confirm the result I'd be grateful.
Integral=2553.871 when r=5 & R=27 (angles in radians)
I've derived some possible equations for the integral but they are all giving results that are less than 1% from the numerical results, so I can't tell if the equations are wrong or the numerical answers are wrong.
For example, one equation generates an answer of 2551.2952, another 2553.5994.
If someone could plug in other values of r & R and supply the results, that would also be great.
That seems a little bit out. I forgot to mention that angles are in radians (in case you used degrees). Can you double check please. I'm quite sure the result is around 2550 (just by measuring the volume the integral generates). Please don't forget that the trig function is ARCCOS.
Your result seems multiplied by 1-r/R or possibly ARCCOS((R-r)/(R+r)).
The program I wrote divided the interval into 10,000,000 slices, but 1,000,000 gave the same result to 7 significant figures. I don't know how many significant figures the programming language I used works with, but it might be 20. I just read the manual and it states double-precision floating point accuracy.What are the settings used for the numerical integrator? Do we know what error limit the integrator is using? It looks like these values are good for six significant digits.