You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mathics/builtin/numbers/constants.py
+10-11Lines changed: 10 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -457,7 +457,7 @@ class Khinchin(MPMathConstant):
457
457
458
458
459
459
classPi(MPMathConstant, SympyConstant):
460
-
"""
460
+
u"""
461
461
<dl>
462
462
<dt>'Pi'</dt>
463
463
<dd>is the constant \u03c0.
@@ -466,19 +466,18 @@ class Pi(MPMathConstant, SympyConstant):
466
466
>> N[Pi]
467
467
= 3.14159
468
468
469
-
Force using the value given from numpy to compute Pi.
470
-
>> N[Pi, Method->"numpy"]
471
-
= 3.14159
469
+
Pi to a numeric precision of 20 digits:
470
+
>> N[Pi, 20]
471
+
= 3.1415926535897932385
472
+
473
+
Note that the above is not the same thing as the number of digits <i>after</i> the decimal point. This may differ from similar concepts from other mathematical libraries, including those which Mathics uses!
472
474
473
-
Force using the value given from sympy to compute Pi to 3 places,
0 commit comments