-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBorwein_curious_Pi_approximation.nb
More file actions
161 lines (142 loc) · 5.04 KB
/
Copy pathBorwein_curious_Pi_approximation.nb
File metadata and controls
161 lines (142 loc) · 5.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 13.2' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 158, 7]
NotebookDataLength[ 5002, 153]
NotebookOptionsPosition[ 3688, 122]
NotebookOutlinePosition[ 4084, 138]
CellTagsIndexPosition[ 4041, 135]
WindowFrame->Normal*)
(* Beginning of Notebook Content *)
Notebook[{
Cell[BoxData[
RowBox[{"(*", " ",
RowBox[{"Curious", " ",
RowBox[{"Borwein", "'"}], "s", " ", "\[Pi]", " ", "approximation"}], " ",
"*)"}]], "Input",
CellChangeTimes->{{3.9879398594451427`*^9,
3.987939884211376*^9}},ExpressionUUID->"6e9ab3fe-43eb-444f-8cab-\
4a134eb0e9bc"],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"ex", "=",
RowBox[{
SuperscriptBox[
RowBox[{"(",
RowBox[{"1", "+",
FractionBox["1", "p"]}], ")"}],
RowBox[{"1", "+", "p"}]], "==", "p"}]}]], "Input",
CellChangeTimes->{{3.9879395201800127`*^9, 3.987939544430121*^9}},
CellLabel->"In[10]:=",ExpressionUUID->"deb339e2-bfc9-4ceb-8802-22b48ce23697"],
Cell[BoxData[
RowBox[{
SuperscriptBox[
RowBox[{"(",
RowBox[{"1", "+",
FractionBox["1", "p"]}], ")"}],
RowBox[{"1", "+", "p"}]], "\[Equal]", "p"}]], "Output",
CellChangeTimes->{{3.98793953933461*^9, 3.987939545259506*^9}},
CellLabel->"Out[10]=",ExpressionUUID->"7b614b7d-c506-4680-b5b9-77cf4a84f156"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"Solve", "[", "ex", "]"}]], "Input",
CellChangeTimes->{{3.987939546524969*^9, 3.987939552010984*^9}},
CellLabel->"In[11]:=",ExpressionUUID->"b78daf46-8cc9-4aaa-919e-93e2d05c8198"],
Cell[BoxData[
TemplateBox[{
"Solve", "nsmet",
"\"This system cannot be solved with the methods available to Solve.\"", 2,
11, 15, 19866208557646929957, "Local"},
"MessageTemplate"]], "Message", "MSG",
CellChangeTimes->{3.987939553410947*^9},
CellLabel->
"During evaluation of \
In[11]:=",ExpressionUUID->"8e65822f-b037-4b1f-a39a-d92d15427dc3"],
Cell[BoxData[
RowBox[{"Solve", "[",
RowBox[{
SuperscriptBox[
RowBox[{"(",
RowBox[{"1", "+",
FractionBox["1", "p"]}], ")"}],
RowBox[{"1", "+", "p"}]], "\[Equal]", "p"}], "]"}]], "Output",
CellChangeTimes->{3.987939553416766*^9},
CellLabel->"Out[11]=",ExpressionUUID->"e480824d-70f4-48ef-9704-e29dab14fafc"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"p", "=",
RowBox[{"p", "/.",
RowBox[{"FindRoot", "[",
RowBox[{"ex", ",", " ",
RowBox[{"{",
RowBox[{"p", ",", "\[Pi]"}], "}"}]}], "]"}]}]}]], "Input",
CellChangeTimes->{{3.9879395560519*^9, 3.987939586939938*^9}},
CellLabel->"In[14]:=",ExpressionUUID->"7f585484-bd0a-49bf-af9a-237e58fe4183"],
Cell[BoxData["3.141041525410788`"], "Output",
CellChangeTimes->{{3.9879395760516853`*^9, 3.987939587327215*^9}},
CellLabel->"Out[14]=",ExpressionUUID->"0b24cc9d-daf2-48ed-a6b7-1266cd629855"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"PercentForm", "[",
FractionBox["p", "\[Pi]"], "]"}]], "Input",
CellChangeTimes->{{3.987939591195612*^9, 3.987939627639612*^9}},
CellLabel->"In[17]:=",ExpressionUUID->"ca328de8-c20c-46ea-a710-39c0bbf20fe7"],
Cell[BoxData[
TagBox[
InterpretationBox[
StyleBox["\<\"99.98%\"\>",
ShowStringCharacters->False],
0.9998245704520683,
AutoDelete->True],
PercentForm]], "Output",
CellChangeTimes->{{3.98793959573085*^9, 3.987939627934863*^9}},
CellLabel->
"Out[17]//PercentForm=",ExpressionUUID->"8d80478d-02ce-42cd-86e2-\
d3e0bbe59dfa"]
}, Open ]]
},
WindowSize->{808, 911},
WindowMargins->{{12, Automatic}, {Automatic, 24}},
FrontEndVersion->"13.2 for Mac OS X ARM (64-bit) (January 30, 2023)",
StyleDefinitions->"Default.nb",
ExpressionUUID->"48bd23b1-d161-4a3b-b7b5-573ef617a7f2"
]
(* End of Notebook Content *)
(* Internal cache information *)
(*CellTagsOutline
CellTagsIndex->{}
*)
(*CellTagsIndex
CellTagsIndex->{}
*)
(*NotebookFileOutline
Notebook[{
Cell[558, 20, 287, 7, 30, "Input",ExpressionUUID->"6e9ab3fe-43eb-444f-8cab-4a134eb0e9bc"],
Cell[CellGroupData[{
Cell[870, 31, 347, 9, 50, "Input",ExpressionUUID->"deb339e2-bfc9-4ceb-8802-22b48ce23697"],
Cell[1220, 42, 322, 8, 52, "Output",ExpressionUUID->"7b614b7d-c506-4680-b5b9-77cf4a84f156"]
}, Open ]],
Cell[CellGroupData[{
Cell[1579, 55, 204, 3, 30, "Input",ExpressionUUID->"b78daf46-8cc9-4aaa-919e-93e2d05c8198"],
Cell[1786, 60, 360, 9, 28, "Message",ExpressionUUID->"8e65822f-b037-4b1f-a39a-d92d15427dc3"],
Cell[2149, 71, 336, 9, 52, "Output",ExpressionUUID->"e480824d-70f4-48ef-9704-e29dab14fafc"]
}, Open ]],
Cell[CellGroupData[{
Cell[2522, 85, 340, 8, 30, "Input",ExpressionUUID->"7f585484-bd0a-49bf-af9a-237e58fe4183"],
Cell[2865, 95, 192, 2, 34, "Output",ExpressionUUID->"0b24cc9d-daf2-48ed-a6b7-1266cd629855"]
}, Open ]],
Cell[CellGroupData[{
Cell[3094, 102, 234, 4, 46, "Input",ExpressionUUID->"ca328de8-c20c-46ea-a710-39c0bbf20fe7"],
Cell[3331, 108, 341, 11, 48, "Output",ExpressionUUID->"8d80478d-02ce-42cd-86e2-d3e0bbe59dfa"]
}, Open ]]
}
]
*)