1 (* Content-type: application/vnd.wolfram.mathematica *)
3 (*** Wolfram Notebook File ***)
4 (* http://www.wolfram.com/nb *)
6 (* CreatedBy='Mathematica 10.0' *)
9 (* Internal cache information:
10 NotebookFileLineBreakTest
11 NotebookFileLineBreakTest
12 NotebookDataPosition[ 158, 7]
13 NotebookDataLength[ 11519, 371]
14 NotebookOptionsPosition[ 10578, 333]
15 NotebookOutlinePosition[ 10914, 348]
16 CellTagsIndexPosition[ 10871, 345]
19 (* Beginning of Notebook Content *)
24 RowBox[{"r_", ",", "c_", ",", "kap_"}], "]"}], ":=",
30 RowBox[{"-", "c"}], " ", "r"}], "]"}]}], ")"}], "^", "kap"}]}], "\n",
33 RowBox[{"r_", ",", "k0_", ",", "q_"}], "]"}], ":=",
36 RowBox[{"I", " ", "k0", " ", "r"}], "]"}], " ",
39 RowBox[{"k0", " ", "r"}], ")"}], "^",
41 RowBox[{"-", "q"}], ")"}]}]}]}], "\n",
44 RowBox[{"integrand", "[",
46 "r_", ",", "k_", ",", "k0_", ",", "c_", ",", "kap_", ",", "q_", ",",
50 RowBox[{"r", ",", "c", ",", "kap"}], "]"}], " ",
52 RowBox[{"r", ",", "k0", ",", "q"}], "]"}], " ", "r", " ",
53 RowBox[{"BesselJ", "[",
55 RowBox[{"k", " ", "r"}]}], "]"}]}]}],
56 "\[IndentingNewLine]"}], "\[IndentingNewLine]",
58 RowBox[{"Lsum30", "[",
59 RowBox[{"kap_", ",", "c_", ",", "k0_", ",", "k_"}], "]"}], ":=",
67 RowBox[{"-", "1"}], ")"}], "^",
69 RowBox[{"1", "+", "sig"}], ")"}]}], "*",
77 RowBox[{"k", "^", "2"}], "-",
81 RowBox[{"I", "*", "c", "*", "sig"}]}], ")"}], "^", "2"}]}],
83 RowBox[{"k", "^", "2"}]}], "]"}]}], "+",
87 RowBox[{"I", "*", "c", "*", "sig"}]}], ")"}], "*",
88 RowBox[{"ArcSin", "[",
92 RowBox[{"I", "*", "c", "*", "sig"}]}], ")"}], "/", "k"}],
93 "]"}]}]}], ")"}], "*",
94 RowBox[{"Binomial", "[",
95 RowBox[{"kap", ",", "sig"}], "]"}]}], ")"}], "/",
96 RowBox[{"k0", "^", "3"}]}], ",",
98 RowBox[{"sig", ",", "0", ",", "kap"}], "}"}]}],
99 "]"}]}], "\[IndentingNewLine]",
101 RowBox[{"Nint30", "[",
102 RowBox[{"kap_", ",", "c_", ",", "k0_", ",", "k_"}], "]"}], ":=",
103 RowBox[{"NIntegrate", "[",
105 RowBox[{"integrand", "[",
107 "r", ",", "k", ",", "k0", ",", "c", ",", "kap", ",", "3", ",", "0"}],
110 RowBox[{"r", ",", "0", ",", "Infinity"}], "}"}]}],
111 "]"}]}], "\[IndentingNewLine]",
113 RowBox[{"Lsum30relerror", "[",
114 RowBox[{"kappa_", ",", "c_", ",", "k0_", ",", "k_"}], "]"}], ":=",
119 RowBox[{"NIntegrate", "[",
121 RowBox[{"integrand", "[",
123 "r", ",", "k", ",", "k0", ",", "c", ",", "kappa", ",", "3", ",",
126 RowBox[{"r", ",", "0", ",", "Infinity"}], "}"}]}], "]"}], "-",
127 RowBox[{"Lsum30", "[",
128 RowBox[{"kappa", ",", "c", ",", "k0", ",", "k"}], "]"}]}], ")"}], "/",
130 RowBox[{"Lsum30", "[",
131 RowBox[{"kappa", ",", "c", ",", "k0", ",", "k"}], "]"}]}],
133 CellChangeTimes->{{3.725113471451489*^9, 3.725113518541342*^9},
134 3.72511361142743*^9, {3.7251136649255037`*^9, 3.725113665100748*^9},
135 3.725113940122211*^9, {3.72511397606431*^9, 3.725114004686063*^9}, {
136 3.7251140520462313`*^9, 3.725114052164033*^9}}],
141 RowBox[{"Lsum30relerror", "[",
142 RowBox[{"6", ",", "0.1", ",", "1", ",", "1.1"}], "]"}]], "Input",
143 CellChangeTimes->{{3.7251136200622*^9, 3.7251136322203493`*^9}}],
145 Cell[BoxData["6.70650792232631`*^-12"], "Output",
146 CellChangeTimes->{3.725113638647744*^9, 3.7251136705456123`*^9,
147 3.725113945893931*^9}]
153 RowBox[{"Lsum30relerror", "[",
154 RowBox[{"2", ",", "0.1", ",", "1.8", ",", "0.7"}], "]"}]], "Input",
155 CellChangeTimes->{{3.725113688094325*^9, 3.72511371089297*^9}, {
156 3.725113953012788*^9, 3.725113957835388*^9}}],
158 Cell[BoxData["0.9975419499206724`"], "Output",
159 CellChangeTimes->{{3.725113689091052*^9, 3.725113711464198*^9}, {
160 3.72511394863025*^9, 3.725113958377577*^9}}]
166 RowBox[{"Lsum30", "[",
167 RowBox[{"2", ",", "0.1", ",", "1.8", ",", "0.7"}], "]"}]], "Input",
168 CellChangeTimes->{{3.7251140122908077`*^9, 3.725114027355405*^9}, {
169 3.7251140719110518`*^9, 3.72511408374263*^9}}],
172 RowBox[{"0.00006715230791048965`", "\[VeryThinSpace]", "+",
173 RowBox[{"0.41841799501968396`", " ", "\[ImaginaryI]"}]}]], "Output",
175 3.7251140276493177`*^9, {3.725114072392956*^9, 3.7251140841186037`*^9}}]
181 RowBox[{"Nint30", "[",
182 RowBox[{"2", ",", "0.1", ",", "1.8", ",", "0.7"}], "]"}]], "Input",
183 CellChangeTimes->{{3.72511403724128*^9, 3.725114037839789*^9}, {
184 3.725114078108095*^9, 3.725114082476921*^9}}],
187 RowBox[{"0.00006715230791033052`", "\[VeryThinSpace]", "+",
188 RowBox[{"0.0010284870104265479`", " ", "\[ImaginaryI]"}]}]], "Output",
189 CellChangeTimes->{{3.72511403840551*^9, 3.725114086040118*^9}}]
202 RowBox[{"-", "1"}], ")"}], "^",
204 RowBox[{"1", "+", "sig"}], ")"}]}], "*",
212 RowBox[{"k", "^", "2"}], "-",
216 RowBox[{"I", "*", "c", "*", "sig"}]}], ")"}], "^", "2"}]}],
218 RowBox[{"k", "^", "2"}]}], "]"}]}], "+",
222 RowBox[{"I", "*", "c", "*", "sig"}]}], ")"}], "*",
223 RowBox[{"ArcSin", "[",
227 RowBox[{"I", "*", "c", "*", "sig"}]}], ")"}], "/", "k"}],
228 "]"}]}]}], ")"}], "*",
229 RowBox[{"Binomial", "[",
230 RowBox[{"kap", ",", "sig"}], "]"}]}], ")"}], "/",
231 RowBox[{"k0", "^", "3"}]}], ",",
233 RowBox[{"sig", ",", "0", ",", "kap"}], "}"}]}], "]"}]], "Input",
234 CellChangeTimes->{{3.725113829800209*^9, 3.725113829800631*^9}}],
238 UnderoverscriptBox["\[Sum]",
239 RowBox[{"sig", "=", "0"}], "kap"],
244 RowBox[{"-", "1"}], ")"}],
245 RowBox[{"1", "+", "sig"}]], " ",
252 SuperscriptBox["k", "2"], "-",
256 RowBox[{"\[ImaginaryI]", " ", "c", " ", "sig"}]}], ")"}], "2"]}],
257 SuperscriptBox["k", "2"]]]}], "+",
261 RowBox[{"\[ImaginaryI]", " ", "c", " ", "sig"}]}], ")"}], " ",
262 RowBox[{"ArcSin", "[",
265 RowBox[{"\[ImaginaryI]", " ", "c", " ", "sig"}]}], "k"], "]"}]}]}],
267 RowBox[{"Binomial", "[",
268 RowBox[{"kap", ",", "sig"}], "]"}]}],
269 SuperscriptBox["k0", "3"]]}]], "Output",
270 CellChangeTimes->{3.7251138695080853`*^9}]
275 RowBox[{"Lsum30alt", "[",
276 RowBox[{"kap_", ",", "c_", ",", "k0_", ",", "k_"}], "]"}], ":=",
284 RowBox[{"-", "1"}], ")"}], "^",
286 RowBox[{"1", "+", "sig"}], ")"}]}], "*",
294 RowBox[{"k", "^", "2"}], "-",
298 RowBox[{"I", "*", "c", "*", "sig"}]}], ")"}], "^", "2"}]}],
300 RowBox[{"k", "^", "2"}]}], "]"}]}], "+",
304 RowBox[{"I", "*", "c", "*", "sig"}]}], ")"}], "*",
307 RowBox[{"ArcSin", "[",
311 RowBox[{"I", "*", "c", "*", "sig"}]}], ")"}], "/", "k"}],
313 RowBox[{"I", "*", "Pi"}]}], ")"}]}]}], ")"}], "*",
314 RowBox[{"Binomial", "[",
315 RowBox[{"kap", ",", "sig"}], "]"}]}], ")"}], "/",
316 RowBox[{"k0", "^", "3"}]}], ",",
318 RowBox[{"sig", ",", "0", ",", "kap"}], "}"}]}], "]"}]}]], "Input",
319 CellChangeTimes->{{3.725114285602276*^9, 3.725114340572805*^9}}],
324 RowBox[{"Lsum30alt", "[",
325 RowBox[{"2", ",", "0.1", ",", "1.8", ",", "0.7"}], "]"}]], "Input",
326 CellChangeTimes->{{3.7251143362072897`*^9, 3.725114336572289*^9}}],
329 RowBox[{"0.00006715230791043414`", "\[VeryThinSpace]", "+",
330 RowBox[{"0.4184179950196838`", " ", "\[ImaginaryI]"}]}]], "Output",
331 CellChangeTimes->{3.725114342830419*^9}]
334 WindowSize->{1280, 758},
335 WindowMargins->{{0, Automatic}, {Automatic, 0}},
336 FrontEndVersion->"10.0 for Linux x86 (64-bit) (December 4, 2014)",
337 StyleDefinitions->"Default.nb"
339 (* End of Notebook Content *)
341 (* Internal cache information *)
348 (*NotebookFileOutline
350 Cell[558, 20, 3847, 115, 231, "Input"],
352 Cell[4430, 139, 180, 3, 32, "Input"],
353 Cell[4613, 144, 140, 2, 34, "Output"]
356 Cell[4790, 151, 230, 4, 32, "Input"],
357 Cell[5023, 157, 160, 2, 32, "Output"]
360 Cell[5220, 164, 226, 4, 32, "Input"],
361 Cell[5449, 170, 241, 4, 32, "Output"]
364 Cell[5727, 179, 222, 4, 32, "Input"],
365 Cell[5952, 185, 213, 3, 32, "Output"]
368 Cell[6202, 193, 1309, 40, 55, "Input"],
369 Cell[7514, 235, 1072, 34, 94, "Output"]
371 Cell[8601, 272, 1567, 46, 99, "Input"],
373 Cell[10193, 322, 179, 3, 32, "Input"],
374 Cell[10375, 327, 187, 3, 32, "Output"]
380 (* End of internal cache information *)