Skip to content

Commit 5457d33

Browse files
committed
Fix tutorial to work with older Mathematica versions
1 parent ec601a1 commit 5457d33

1 file changed

Lines changed: 10 additions & 52 deletions

File tree

Source/Documentation/English/Tutorials/Teukolsky.nb

Lines changed: 10 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -412,41 +412,9 @@ cases.\
412412
\>", "Text",ExpressionUUID->"c1e296c9-3753-432e-9f5d-f6978c6ed7b0"],
413413

414414
Cell["\<\
415-
In most cases, all three methods produce consistent numerical results:\
415+
In most cases, all three methods produce consistent numerical results.\
416416
\>", "Text",ExpressionUUID->"144df0aa-25fc-46e7-b1cd-94313a27ad2f"],
417417

418-
Cell[BoxData[
419-
RowBox[{
420-
RowBox[{"TeukolskyRadial", "[",
421-
RowBox[{"s", ",", "l", ",", "m", ",", "a", ",", "\[Omega]", ",",
422-
RowBox[{"\"\<BoundaryConditions\>\"", "\[Rule]", "\"\<In\>\""}], ",",
423-
RowBox[{"Method", "\[Rule]", "\"\<MST\>\""}]}], "]"}], "[", "10",
424-
"]"}]], "Input",
425-
CellLabel->"In[34]:=",ExpressionUUID->"1aaae077-6a74-43c0-84f9-dcb41d0bf16e"],
426-
427-
Cell[BoxData[
428-
RowBox[{
429-
RowBox[{"TeukolskyRadial", "[",
430-
RowBox[{"s", ",", "l", ",", "m", ",", "a", ",", "\[Omega]", ",",
431-
RowBox[{"\"\<BoundaryConditions\>\"", "\[Rule]", "\"\<In\>\""}], ",",
432-
RowBox[{"Method", "\[Rule]", "\"\<HeunC\>\""}]}], "]"}], "[", "10",
433-
"]"}]], "Input",
434-
CellLabel->"In[35]:=",ExpressionUUID->"69dfd9b3-0be5-4adf-8865-5ed2ea00eb7b"],
435-
436-
Cell[BoxData[
437-
RowBox[{
438-
RowBox[{"TeukolskyRadial", "[",
439-
RowBox[{"s", ",", "l", ",", "m", ",", "a", ",", "\[Omega]", ",",
440-
RowBox[{"\"\<BoundaryConditions\>\"", "\[Rule]", "\"\<In\>\""}], ",",
441-
RowBox[{"Method", "\[Rule]",
442-
RowBox[{"{",
443-
RowBox[{"\"\<NumericalIntegration\>\"", ",",
444-
RowBox[{"\"\<Domain\>\"", "\[Rule]",
445-
RowBox[{"{",
446-
RowBox[{"3", ",", "20"}], "}"}]}]}], "}"}]}]}], "]"}], "[", "10",
447-
"]"}]], "Input",
448-
CellLabel->"In[36]:=",ExpressionUUID->"4ad8d5c2-00a2-4762-834d-7b8c503f4f64"],
449-
450418
Cell[CellGroupData[{
451419

452420
Cell["MST method", \
@@ -584,16 +552,15 @@ Cell[BoxData[
584552
RowBox[{"{",
585553
RowBox[{"\"\<NumericalIntegration\>\"", ",",
586554
RowBox[{"\"\<Domain\>\"", "\[Rule]",
587-
RowBox[{"<|",
555+
RowBox[{"{",
588556
RowBox[{
589557
RowBox[{"\"\<In\>\"", "\[Rule]",
590558
RowBox[{"{",
591559
RowBox[{"3", ",", "20"}], "}"}]}], ",",
592560
RowBox[{"\"\<Up\>\"", "\[Rule]",
593561
RowBox[{"{",
594-
RowBox[{"4", ",", "16"}], "}"}]}]}], "|>"}]}]}], "}"}]}]}],
595-
"]"}]], "Input",
596-
CellLabel->"In[41]:=",ExpressionUUID->"042bb969-a920-4423-b7d4-5a1bc178b9a2"],
562+
RowBox[{"4", ",", "16"}], "}"}]}]}], "}"}]}]}], "}"}]}]}],
563+
"]"}]], "Input",ExpressionUUID->"042bb969-a920-4423-b7d4-5a1bc178b9a2"],
597564

598565
Cell[BoxData[
599566
RowBox[{"R", "=",
@@ -640,21 +607,12 @@ HeunC directly maps onto a solution satisfying \[OpenCurlyDoubleQuote]Up\
640607
\>", "Text",ExpressionUUID->"36a2c230-7524-4864-aa29-cf3422cd3c5c"],
641608

642609
Cell[BoxData[
643-
RowBox[{"R", "=",
644-
RowBox[{"TeukolskyRadial", "[",
645-
RowBox[{"s", ",", "l", ",", "m", ",", "a", ",", "\[Omega]", ",",
646-
RowBox[{"Method", "\[Rule]", "\"\<HeunC\>\""}]}], "]"}]}]], "Input",
647-
CellLabel->"In[44]:=",ExpressionUUID->"407eec7d-3d5a-49db-8e45-cdfb1a16b357"],
648-
649-
Cell[BoxData[
650-
RowBox[{"Table", "[",
651-
RowBox[{
652-
RowBox[{
653-
RowBox[{"R", "[", "\"\<In\>\"", "]"}], "[", "r", "]"}], ",",
654-
RowBox[{"{",
655-
RowBox[{"r", ",", "3", ",", "20"}], "}"}]}], "]"}]], "Input",
656-
CellLabel->
657-
"In[45]:=",ExpressionUUID->"d017fb68-ed18-4dac-b9f2-0333078059ad"]
610+
RowBox[{
611+
RowBox[{"R", "=",
612+
RowBox[{"TeukolskyRadial", "[",
613+
RowBox[{"s", ",", "l", ",", "m", ",", "a", ",", "\[Omega]", ",",
614+
RowBox[{"Method", "\[Rule]", "\"\<HeunC\>\""}]}], "]"}]}],
615+
";"}]], "Input",ExpressionUUID->"407eec7d-3d5a-49db-8e45-cdfb1a16b357"]
658616
}, Open ]]
659617
}, Open ]],
660618

0 commit comments

Comments
 (0)