tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
L\¬Qc@sdZddddddddd    d
d d d ddddddddddddgZdZddlZddlZddlZy#ddl    m
Z e ddƒZ Wne k
rÀd „Z nXdZdZdZdZdZdZdZdZdefd!„ƒYZdefd"„ƒYZdefd#„ƒYZd$efd%„ƒYZd    eefd&„ƒYZd'efd(„ƒYZd)eefd*„ƒYZd
efd+„ƒYZd,efd-„ƒYZ d efd.„ƒYZ!d efd/„ƒYZ"d ee!fd0„ƒYZ#dee!e"fd1„ƒYZ$eeee#e!e$ee"gZ%iee6ee6ee6ee 6Z&yddl'Z'WnBe k
r²ddl(Z(d2e)fd3„ƒYZ*e*ƒZ'[([*nXy e'j+WnGe,k
re-e'j.ƒd4ƒròe'j.ƒ`/nd5„Z0d6„Z1nCXe'j+ƒZ+e-e+d4ƒr,e+`/ne+d7„Z1e+d8„Z0['[+e2d9„Z3de)fd:„ƒYZ4e5d;„Z6ej7j8e4ƒd<e)fd=„ƒYZ9de)fd>„ƒYZ:d?e)fd@„ƒYZ;dAdB„Z<idCdD6dEdF6dGdH6dGdI6dJdK6dJdL6dJdM6dJdN6dAdO6dAdP6dAdQ6dAdR6dAdS6dAdT6dAdU6dAdV6dW„Z=dX„Z>dY„Z?dZ„Z@d[„ZAd\d]„ZBd^„ZCd_„ZDd`e)fda„ƒYZEeEƒjFZGd\db„ZHdc„ZIdd„ZJi    dedF6dfdH6dgdI6dhdK6didL6djdM6dkdN6dldO6dmdP6dn„ZKe5e5do„ZLe:dpdqdredsee#egdtgdudvdwdxdydJƒZMe:dpdzdredsee#eee$gdtgƒZNe:dpdzdredsgdtgƒZOddlPZPePjQd{ePjRePjSBePjTBƒjUZVePjQd|ƒjUZWePjQd}ƒjUZXePjQd~ePjRƒZY[PyddlZZ[Wne k
rLnXe2d„Z\d€„Z]d„Z^dJd‚„Z_dƒ„Z`d„„Zae4d…ƒZbe4d†ƒZce4d‡ƒZde4dAƒZee4dJƒZfe4dƒZgebecfZheidˆkrddljZjddl(Z(ejjke(jleiƒndS(‰sË    
This is a Py2.3 implementation of decimal floating point arithmetic based on
the General Decimal Arithmetic Specification:
 
    http://speleotrove.com/decimal/decarith.html
 
and IEEE standard 854-1987:
 
    www.cs.berkeley.edu/~ejr/projects/754/private/drafts/854-1987/dir.html
 
Decimal floating point has finite precision with arbitrarily large bounds.
 
The purpose of this module is to support arithmetic using familiar
"schoolhouse" rules and to avoid some of the tricky representation
issues associated with binary floating point.  The package is especially
useful for financial applications or for contexts where users have
expectations that are at odds with binary floating point (for instance,
in binary floating point, 1.00 % 0.1 gives 0.09999999999999995 instead
of the expected Decimal('0.00') returned by decimal floating point).
 
Here are some examples of using the decimal module:
 
>>> from decimal import *
>>> setcontext(ExtendedContext)
>>> Decimal(0)
Decimal('0')
>>> Decimal('1')
Decimal('1')
>>> Decimal('-.0123')
Decimal('-0.0123')
>>> Decimal(123456)
Decimal('123456')
>>> Decimal('123.45e12345678901234567890')
Decimal('1.2345E+12345678901234567892')
>>> Decimal('1.33') + Decimal('1.27')
Decimal('2.60')
>>> Decimal('12.34') + Decimal('3.87') - Decimal('18.41')
Decimal('-2.20')
>>> dig = Decimal(1)
>>> print dig / Decimal(3)
0.333333333
>>> getcontext().prec = 18
>>> print dig / Decimal(3)
0.333333333333333333
>>> print dig.sqrt()
1
>>> print Decimal(3).sqrt()
1.73205080756887729
>>> print Decimal(3) ** 123
4.85192780976896427E+58
>>> inf = Decimal(1) / Decimal(0)
>>> print inf
Infinity
>>> neginf = Decimal(-1) / Decimal(0)
>>> print neginf
-Infinity
>>> print neginf + inf
NaN
>>> print neginf * inf
-Infinity
>>> print dig / 0
Infinity
>>> getcontext().traps[DivisionByZero] = 1
>>> print dig / 0
Traceback (most recent call last):
  ...
  ...
  ...
DivisionByZero: x / 0
>>> c = Context()
>>> c.traps[InvalidOperation] = 0
>>> print c.flags[InvalidOperation]
0
>>> c.divide(Decimal(0), Decimal(0))
Decimal('NaN')
>>> c.traps[InvalidOperation] = 1
>>> print c.flags[InvalidOperation]
1
>>> c.flags[InvalidOperation] = 0
>>> print c.flags[InvalidOperation]
0
>>> print c.divide(Decimal(0), Decimal(0))
Traceback (most recent call last):
  ...
  ...
  ...
InvalidOperation: 0 / 0
>>> print c.flags[InvalidOperation]
1
>>> c.flags[InvalidOperation] = 0
>>> c.traps[InvalidOperation] = 0
>>> print c.divide(Decimal(0), Decimal(0))
NaN
>>> print c.flags[InvalidOperation]
1
>>>
tDecimaltContexttDefaultContextt BasicContexttExtendedContexttDecimalExceptiontClampedtInvalidOperationtDivisionByZerotInexacttRoundedt    SubnormaltOverflowt    Underflowt
ROUND_DOWNt ROUND_HALF_UPtROUND_HALF_EVENt ROUND_CEILINGt ROUND_FLOORtROUND_UPtROUND_HALF_DOWNt
ROUND_05UPt
setcontextt
getcontextt localcontexts1.70iÿÿÿÿN(t
namedtuplet DecimalTuplessign digits exponentcGs|S(N((targs((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt<lambda>“scBseZdZd„ZRS(s1Base exception class.
 
    Used exceptions derive from this.
    If an exception derives from another exception besides this (such as
    Underflow (Inexact, Rounded, Subnormal) that indicates that it is only
    called if the others are present.  This isn't actually used for
    anything, though.
 
    handle  -- Called when context._raise_error is called and the
               trap_enabler is not set.  First argument is self, second is the
               context.  More arguments can be given, those being after
               the explanation in _raise_error (For example,
               context._raise_error(NewError, '(-x)!', self._sign) would
               call NewError().handle(context, self._sign).)
 
    To define a new exception, it should be sufficient to have it derive
    from DecimalException.
    cGsdS(N((tselftcontextR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pythandle´s(t__name__t
__module__t__doc__R(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR¡scBseZdZRS(s)Exponent of a 0 changed to fit bounds.
 
    This occurs and signals clamped if the exponent of a result has been
    altered in order to fit the constraints of a specific concrete
    representation.  This may occur when the exponent of a zero result would
    be outside the bounds of a representation, or when a large normal
    number would have an encoded exponent that cannot be represented.  In
    this latter case, the exponent is reduced to fit and the corresponding
    number of zero digits are appended to the coefficient ("fold-down").
    (R R!R"(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR¸s
cBseZdZd„ZRS(s0An invalid operation was performed.
 
    Various bad things cause this:
 
    Something creates a signaling NaN
    -INF + INF
    0 * (+-)INF
    (+-)INF / (+-)INF
    x % 0
    (+-)INF % x
    x._rescale( non-integer )
    sqrt(-x) , x > 0
    0 ** 0
    x ** (non-integer)
    x ** (+-)INF
    An operand is invalid
 
    The result of the operation after these is a quiet positive NaN,
    except when the cause is a signaling NaN, in which case the result is
    also a quiet NaN, but with the original sign, and an optional
    diagnostic information.
    cGs:|r6t|dj|djdtƒ}|j|ƒStS(Nitn(t_dec_from_triplet_signt_inttTruet_fix_nant_NaN(RRRtans((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRÛs# (R R!R"R(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRÄstConversionSyntaxcBseZdZd„ZRS(sÝTrying to convert badly formed string.
 
    This occurs and signals invalid-operation if an string is being
    converted to a number and it does not conform to the numeric string
    syntax.  The result is [0,qNaN].
    cGstS(N(R)(RRR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRès(R R!R"R(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR+áscBseZdZd„ZRS(s²Division by 0.
 
    This occurs and signals division-by-zero if division of a finite number
    by zero was attempted (during a divide-integer or divide operation, or a
    power operation with negative right-hand operand), and the dividend was
    not zero.
 
    The result of the operation is [sign,inf], where sign is the exclusive
    or of the signs of the operands for divide, or is 1 for an odd power of
    -0, for power.
    cGst|S(N(t_SignedInfinity(RRtsignR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRøs(R R!R"R(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRës tDivisionImpossiblecBseZdZd„ZRS(sóCannot perform the division adequately.
 
    This occurs and signals invalid-operation if the integer result of a
    divide-integer or remainder operation had too many digits (would be
    longer than precision).  The result is [0,qNaN].
    cGstS(N(R)(RRR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRs(R R!R"R(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR.ûstDivisionUndefinedcBseZdZd„ZRS(sîUndefined result of division.
 
    This occurs and signals invalid-operation if division by zero was
    attempted (during a divide-integer, divide, or remainder operation), and
    the dividend is also zero.  The result is [0,qNaN].
    cGstS(N(R)(RRR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRs(R R!R"R(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR/scBseZdZRS(s­Had to round, losing information.
 
    This occurs and signals inexact whenever the result of an operation is
    not exact (that is, it needed to be rounded and any discarded digits
    were non-zero), or if an overflow or underflow condition occurs.  The
    result in all cases is unchanged.
 
    The inexact signal may be tested (or trapped) to determine if a given
    operation (or sequence of operations) was inexact.
    (R R!R"(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR    s
tInvalidContextcBseZdZd„ZRS(sìInvalid context.  Unknown rounding, for example.
 
    This occurs and signals invalid-operation if an invalid context was
    detected during an operation.  This can occur if contexts are not checked
    on creation and either the precision exceeds the capability of the
    underlying concrete representation or an unknown or unsupported rounding
    was specified.  These aspects of the context need only be checked when
    the values are required to be used.  The result is [0,qNaN].
    cGstS(N(R)(RRR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR(s(R R!R"R(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR0s    cBseZdZRS(sÙNumber got rounded (not  necessarily changed during rounding).
 
    This occurs and signals rounded whenever the result of an operation is
    rounded (that is, some zero or non-zero digits were discarded from the
    coefficient), or if an overflow or underflow condition occurs.  The
    result in all cases is unchanged.
 
    The rounded signal may be tested (or trapped) to determine if a given
    operation (or sequence of operations) caused a loss of precision.
    (R R!R"(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR
+s
cBseZdZRS(s˜Exponent < Emin before rounding.
 
    This occurs and signals subnormal whenever the result of a conversion or
    operation is subnormal (that is, its adjusted exponent is less than
    Emin, before any rounding).  The result in all cases is unchanged.
 
    The subnormal signal may be tested (or trapped) to determine if a given
    or operation (or sequence of operations) yielded a subnormal result.
    (R R!R"(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR 7s    cBseZdZd„ZRS(sNumerical overflow.
 
    This occurs and signals overflow if the adjusted exponent of a result
    (from a conversion or from an operation that is not an attempt to divide
    by zero), after rounding, would be greater than the largest value that
    can be handled by the implementation (the value Emax).
 
    The result depends on the rounding mode:
 
    For round-half-up and round-half-even (and for round-half-down and
    round-up, if implemented), the result of the operation is [sign,inf],
    where sign is the sign of the intermediate result.  For round-down, the
    result is the largest finite number that can be represented in the
    current precision, with the sign of the intermediate result.  For
    round-ceiling, the result is the same as for round-down if the sign of
    the intermediate result is 1, or is [0,inf] otherwise.  For round-floor,
    the result is the same as for round-down if the sign of the intermediate
    result is 0, or is [1,inf] otherwise.  In all cases, Inexact and Rounded
    will also be raised.
    cGs·|jttttfkr#t|S|dkrk|jtkrFt|St|d|j|j    |jdƒS|dkr³|jt
krŽt|St|d|j|j    |jdƒSdS(Nit9i( troundingRRRRR,RR$tprectEmaxR(RRR-R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRXs   (R R!R"R(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR BscBseZdZRS(sxNumerical underflow with result rounded to 0.
 
    This occurs and signals underflow if a result is inexact and the
    adjusted exponent of the result would be smaller (more negative) than
    the smallest value that can be handled by the implementation (the value
    Emin).  That is, the result is both inexact and subnormal.
 
    The result after an underflow will be a subnormal number rounded, if
    necessary, so that its exponent is not less than Etiny.  This may result
    in 0 with the sign of the intermediate result and an exponent of Etiny.
 
    In all cases, Inexact, Rounded, and Subnormal will also be raised.
    (R R!R"(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR hs t MockThreadingcBseZed„ZRS(cCs |jtS(N(tmodulesR (Rtsys((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytlocals(R R!R7R8(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR5Žst__decimal_context__cCsA|tttfkr.|jƒ}|jƒn|tjƒ_dS(s%Set this thread's context to context.N(RRRtcopyt clear_flagst    threadingt currentThreadR9(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRžs  cCsBytjƒjSWn*tk
r=tƒ}|tjƒ_|SXdS(sÍReturns this thread's context.
 
        If this thread does not yet have a context, returns
        a new context and sets this thread's context.
        New contexts are copies of DefaultContext.
        N(R<R=R9tAttributeErrorR(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR¥s      cCs6y |jSWn$tk
r1tƒ}||_|SXdS(sÍReturns this thread's context.
 
        If this thread does not yet have a context, returns
        a new context and sets this thread's context.
        New contexts are copies of DefaultContext.
        N(R9R>R(t_localR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR¹s           cCs;|tttfkr.|jƒ}|jƒn||_dS(s%Set this thread's context to context.N(RRRR:R;R9(RR?((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRÇs  cCs"|dkrtƒ}nt|ƒS(s^Return a context manager for a copy of the supplied context
 
    Uses a copy of the current context if no context is specified
    The returned context manager creates a local decimal context
    in a with statement:
        def sin(x):
             with localcontext() as ctx:
                 ctx.prec += 2
                 # Rest of sin calculation algorithm
                 # uses a precision 2 greater than normal
             return +s  # Convert result to normal precision
 
         def sin(x):
             with localcontext(ExtendedContext):
                 # Rest of sin calculation algorithm
                 # uses the Extended Context from the
                 # General Decimal Arithmetic Specification
             return +s  # Convert result to normal context
 
    >>> setcontext(DefaultContext)
    >>> print getcontext().prec
    28
    >>> with localcontext():
    ...     ctx = getcontext()
    ...     ctx.prec += 2
    ...     print ctx.prec
    ...
    30
    >>> with localcontext(ExtendedContext):
    ...     print getcontext().prec
    ...
    9
    >>> print getcontext().prec
    28
    N(tNoneRt_ContextManager(tctx((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRÐs$ cBsreZdZdZdd‚d„Zd„ZeeƒZd„Zd    „Z    d‚d‚d
„Z
d „Z d „Z d „Z d‚d„Zd‚d„Zd‚d„Zd‚d„Zd‚d„Zd‚d„Zd‚d„Zd„Zd„Zd„Zed‚d„Zd‚d„Zd‚d„Zd‚d„Zed‚d„Zd‚d„ZeZ d‚d„Z!d‚d„Z"d‚d „Z#e#Z$d‚d!„Z%d"„Z&d‚d#„Z'e%Z(e'Z)d‚d$„Z*d‚d%„Z+d‚d&„Z,d‚d'„Z-d‚d(„Z.d‚d)„Z/d‚d*„Z0d+„Z1d,„Z2e2Z3d-„Z4e5e4ƒZ4d.„Z6e5e6ƒZ6d/„Z7d0„Z8d1„Z9d2„Z:d3„Z;d4„Z<d5„Z=d6„Z>d7„Z?d8„Z@d9„ZAd:„ZBd;„ZCeDd<e<d=e=d>e>d?e?d@e@dAeAdBeBdCeCƒZEd‚dD„ZFd‚dE„ZGdF„ZHd‚d‚dG„ZId‚dH„ZJd‚dI„ZKd‚d‚edJ„ZLdK„ZMdL„ZNdM„ZOd‚d‚dN„ZPd‚d‚dO„ZQeQZRd‚dP„ZSd‚dQ„ZTd‚dR„ZUdS„ZVdT„ZWdU„ZXd‚dV„ZYd‚dW„ZZdX„Z[dY„Z\dZ„Z]d[„Z^d\„Z_d‚d]„Z`d^„Zad_„Zbd`„Zcda„Zdd‚db„Zedc„Zfdd„Zgde„Zhd‚df„Zidg„Zjdh„Zkd‚di„Zldj„Zmd‚dk„Znd‚dl„Zodm„Zpdn„Zqd‚do„Zrd‚dp„Zsd‚dq„Ztd‚dr„Zud‚ds„Zvd‚dt„Zwd‚du„Zxd‚dv„Zyd‚dw„Zzd‚dx„Z{dy„Z|d‚dz„Z}d‚d{„Z~d‚d|„Zd}„Z€d~„Zd„Z‚d‚d‚d€„ZƒRS(ƒs,Floating point class for decimal arithmetic.t_expR&R%t _is_specialt0c    CsÄtj|ƒ}t|tƒršt|jƒƒ}|dkrh|dkrTtƒ}n|jt    d|ƒS|j
dƒdkr‰d|_ n    d|_ |j
dƒ}|dk    r|j
dƒp¿d}t |j
d    ƒp×d
ƒ}t t ||ƒƒ|_|t|ƒ|_t|_n|j
d ƒ}|dk    r{t t |p?d
ƒƒjd
ƒ|_|j
d ƒrod |_qd|_nd
|_d|_t|_|St|t tfƒrû|dkrÇd|_ n    d|_ d|_t t|ƒƒ|_t|_|St|tƒr>|j|_|j |_ |j|_|j|_|St|tƒrŠ|j|_ t |j ƒ|_t |jƒ|_t|_|St|ttfƒr^t|ƒdkrÀtdƒ‚nt|dt tfƒoæ|ddksøtdƒ‚n|d|_ |ddkr7d
|_|d|_t|_n#g}    xt|dD]h}
t|
t tfƒr¤d|
kozdknr¤|    s‘|
dkr°|    j|
ƒq°qHtdƒ‚qHW|ddkrødjt t |    ƒƒ|_|d|_t|_nbt|dt tfƒrNdjt t |    p)dgƒƒ|_|d|_t|_n tdƒ‚|St|t!ƒr°tj"|ƒ}|j|_|j |_ |j|_|j|_|St#d|ƒ‚dS(sòCreate a decimal point instance.
 
        >>> Decimal('3.14')              # string input
        Decimal('3.14')
        >>> Decimal((0, (3, 1, 4), -2))  # tuple (sign, digit_tuple, exponent)
        Decimal('3.14')
        >>> Decimal(314)                 # int or long
        Decimal('314')
        >>> Decimal(Decimal(314))        # another decimal instance
        Decimal('314')
        >>> Decimal('  3.14  \n')        # leading and trailing whitespace okay
        Decimal('3.14')
        sInvalid literal for Decimal: %rR-t-iitinttfracttexpREtdiagtsignaltNR#tFistInvalid tuple size in creation of Decimal from list or tuple.  The list or tuple should have exactly three elements.s|Invalid sign.  The first value in the tuple should be an integer; either 0 for a positive number or 1 for a negative number.ii    sTThe second value in the tuple must be composed of integers in the range 0 through 9.sUThe third value in the tuple must be an integer, or one of the strings 'F', 'n', 'N'.sCannot convert %r to DecimalN(ii(R#RM($tobjectt__new__t
isinstancet
basestringt_parsertstripR@Rt _raise_errorR+tgroupR%RGtstrR&tlenRCtFalseRDtlstripR'tlongtabsRt_WorkRepR-RJtlistttuplet
ValueErrortappendtjointmaptfloatt
from_floatt    TypeError( tclstvalueRRtmtintparttfracpartRJRKtdigitstdigit((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRPs¤                $                                     )       1  $       cCsÛt|ttfƒr||ƒStj|ƒs=tj|ƒrM|t|ƒƒStjd|ƒdkrnd}nd}t|ƒj    ƒ\}}|j
ƒd}t |t |d|ƒ| ƒ}|t krÍ|S||ƒSdS(s.Converts a float to a decimal number, exactly.
 
        Note that Decimal.from_float(0.1) is not the same as Decimal('0.1').
        Since 0.1 is not exactly representable in binary floating point, the
        value is stored as the nearest representable value which is
        0x1.999999999999ap-4.  The exact equivalent of the value in decimal
        is 0.1000000000000000055511151231257827021181583404541015625.
 
        >>> Decimal.from_float(0.1)
        Decimal('0.1000000000000000055511151231257827021181583404541015625')
        >>> Decimal.from_float(float('nan'))
        Decimal('NaN')
        >>> Decimal.from_float(float('inf'))
        Decimal('Infinity')
        >>> Decimal.from_float(-float('inf'))
        Decimal('-Infinity')
        >>> Decimal.from_float(-0.0)
        Decimal('-0')
 
        gð?iiiN(RQRGR[t_mathtisinftisnantreprtcopysignR\tas_integer_ratiot
bit_lengthR$RWR(RgtfR-R#tdtktresult((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRe–s
    ! cCs9|jr5|j}|dkr"dS|dkr5dSndS(srReturns whether the number is not actually one.
 
        0 if a number
        1 if NaN
        2 if sNaN
        R#iRMii(RDRC(RRJ((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt_isnan¼s          cCs$|jdkr |jrdSdSdS(syReturns whether the number is infinite
 
        0 if finite or not a number
        1 if +INF
        -1 if -INF
        RNiÿÿÿÿii(RCR%(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt _isinfinityËs
    cCs³|jƒ}|dkr!t}n |jƒ}|s9|r¯|dkrQtƒ}n|dkrp|jtd|ƒS|dkr|jtd|ƒS|r¢|j|ƒS|j|ƒSdS(s½Returns whether the number is not actually one.
 
        if self, other are sNaN, signal
        if self, other are NaN return nan
        return 0
 
        Done before operations.
        itsNaNiN(RyR@RYRRURR((RtotherRt self_is_nant other_is_nan((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt _check_nansØs"
               cCs­|dkrtƒ}n|js*|jr©|jƒrI|jtd|ƒS|jƒrh|jtd|ƒS|jƒr‡|jtd|ƒS|jƒr©|jtd|ƒSndS(sCVersion of _check_nans used for the signaling comparisons
        compare_signal, __le__, __lt__, __ge__, __gt__.
 
        Signal InvalidOperation if either self or other is a (quiet
        or signaling) NaN.  Signaling NaNs take precedence over quiet
        NaNs.
 
        Return 0 if neither operand is a NaN.
 
        scomparison involving sNaNscomparison involving NaNiN(R@RRDtis_snanRURtis_qnan(RR|R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt_compare_check_nansøs(                      
cCs|jp|jdkS(suReturn True if self is nonzero; otherwise return False.
 
        NaNs and infinities are considered nonzero.
        RE(RDR&(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt __nonzero__scCsd|js|jrQ|jƒ}|jƒ}||kr:dS||krJdSdSn|sp|sadSd|j Sn|sd|jS|j|jkr—dS|j|jkr­dS|jƒ}|jƒ}||kr=|jd|j|j}|jd|j|j}||krdS||kr/d|j Sd|jSn#||krTd|jSd|j SdS(s¸Compare the two non-NaN decimal instances self and other.
 
        Returns -1 if self < other, 0 if self == other and 1
        if self > other.  This routine is for internal use only.iiÿÿÿÿiREN(RDRzR%tadjustedR&RC(RR|tself_inft    other_inft self_adjustedtother_adjustedt self_paddedt other_padded((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt_cmp s>             cCsKt|dtƒ}|tkr"|S|j||ƒr8tS|j|ƒdkS(Nt allow_floati(t_convert_otherR'tNotImplementedRRYR‹(RR|R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__eq__`s  cCsKt|dtƒ}|tkr"|S|j||ƒr8tS|j|ƒdkS(NRŒi(RR'RŽRR‹(RR|R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__ne__hs  cCsQt|dtƒ}|tkr"|S|j||ƒ}|r>tS|j|ƒdkS(NRŒi(RR'RŽR‚RYR‹(RR|RR*((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__lt__ps cCsQt|dtƒ}|tkr"|S|j||ƒ}|r>tS|j|ƒdkS(NRŒi(RR'RŽR‚RYR‹(RR|RR*((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__le__ys cCsQt|dtƒ}|tkr"|S|j||ƒ}|r>tS|j|ƒdkS(NRŒi(RR'RŽR‚RYR‹(RR|RR*((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__gt__‚s cCsQt|dtƒ}|tkr"|S|j||ƒ}|r>tS|j|ƒdkS(NRŒi(RR'RŽR‚RYR‹(RR|RR*((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__ge__‹s cCs\t|dtƒ}|js*|rI|jrI|j||ƒ}|rI|Snt|j|ƒƒS(s­Compares one to another.
 
        -1 => a < b
        0  => a = b
        1  => a > b
        NaN => one is NaN
        Like __cmp__, but returns Decimal instances.
        traiseit(RR'RDRRR‹(RR|RR*((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytcompare”s    cCsî|jrH|jƒr$tdƒ‚qH|jƒr4dS|jrAdSdSnt|ƒ}tj|ƒ|krst|ƒS|j    ƒr¼t
|j ƒƒ}td|j |j td|jd ƒƒSt|j|jt|jƒ|jjd
ƒfƒS( sx.__hash__() <==> hash(x)s"Cannot hash a signaling NaN value.ii,Úûÿi/Ëiÿÿÿÿi
ii@iREllÿÿÿÿ(RDR€Rftis_nanR%RdRRethasht
_isintegerR]tto_integral_valueR-RGtpowRJRCRXR&trstrip(Rt self_as_floattop((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__hash__§s"           
 +    cCs(t|jttt|jƒƒ|jƒS(seRepresents the number as a triple tuple.
 
        To show the internals exactly as they are.
        (RR%R_RcRGR&RC(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytas_tupleÛscCsdt|ƒS(s0Represents the number as an instance of Decimal.s Decimal('%s')(RW(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__repr__âsc    CsÃddg|j}|jrc|jdkr3|dS|jdkrQ|d|jS|d|jSn|jt|jƒ}|jdkr|d    kr|}nE|s¬d
}n6|jd krÐ|d
d d
}n|d
d d
}|dkr d }d d | |j}nZ|t|jƒkrI|jd |t|jƒ}d}n|j| }d |j|}||kr|d}n7|dkr”tƒ}nddg|jd||}||||S(s–Return string representation of the number in scientific notation.
 
        Captures all of the information in the underlying representation.
        RIRFRNtInfinityR#tNaNR{iiúÿÿÿiREit.tetEs%+dN(R%RDRCR&RXR@Rtcapitals(    RtengRR-t
leftdigitstdotplaceRjRkRJ((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__str__çs:                         cCs|jdtd|ƒS(sConvert to engineering-type string.
 
        Engineering notation has an exponent which is a multiple of 3, so there
        are up to 3 digits left of the decimal place.
 
        Same rules for when in exponential and when as a value as in __str__.
        R¨R(R«R'(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt to_eng_stringscCs~|jr(|jd|ƒ}|r(|Sn|dkr@tƒ}n| re|jtkre|jƒ}n |jƒ}|j|ƒS(sRReturns a copy with the sign switched.
 
        Rounds, if it has reason.
        RN(    RDRR@RR2Rtcopy_abst copy_negatet_fix(RRR*((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__neg__%s       cCs~|jr(|jd|ƒ}|r(|Sn|dkr@tƒ}n| re|jtkre|jƒ}n t|ƒ}|j|ƒS(shReturns a copy, unless it is a sNaN.
 
        Rounds the number (if more then precision digits)
        RN(    RDRR@RR2RR­RR¯(RRR*((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__pos__;s       cCsl|s|jƒS|jr8|jd|ƒ}|r8|Sn|jrV|jd|ƒ}n|jd|ƒ}|S(sÉReturns the absolute value of self.
 
        If the keyword argument 'round' is false, do not round.  The
        expression self.__abs__(round=False) is equivalent to
        self.copy_abs().
        R(R­RDRR%R°R±(RtroundRR*((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__abs__Ps
        c
Csqt|ƒ}|tkr|S|dkr4tƒ}n|jsF|jr¿|j||ƒ}|rb|S|jƒr¦|j|jkrœ|jƒrœ|jt    dƒSt
|ƒS|jƒr¿t
|ƒSnt |j |j ƒ}d}|j tkr|j|jkrd}n| r[| r[t |j|jƒ}|r6d}nt|d|ƒ}|j|ƒ}|S|s¦t||j |jdƒ}|j||j ƒ}|j|ƒ}|S|sñt||j |jdƒ}|j||j ƒ}|j|ƒ}|St|ƒ}t|ƒ}t|||jƒ\}}tƒ}    |j|jkrØ|j|jkrvt|d|ƒ}|j|ƒ}|S|j|jkr˜||}}n|jdkrÌd|    _|j|j|_|_qd|    _n6|jdkrd|    _d\|_|_n    d|    _|jdkr3|j|j|    _n|j|j|    _|j|    _t
|    ƒ}|j|ƒ}|S(sbReturns self + other.
 
        -INF + INF (or the reverse) cause InvalidOperation errors.
        s
-INF + INFiiREN(ii(RRŽR@RRDRRzR%RURRtminRCR2RR$R¯tmaxR3t_rescaleR]t
_normalizeR-RGRJ(
RR|RR*RJt negativezeroR-top1top2Rx((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__add__fs|     
  !                             cCsit|ƒ}|tkr|S|js.|jrP|j|d|ƒ}|rP|Sn|j|jƒd|ƒS(sReturn self - otherR(RRŽRDRR»R®(RR|RR*((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__sub__¾s  cCs/t|ƒ}|tkr|S|j|d|ƒS(sReturn other - selfR(RRŽR¼(RR|R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__rsub__Ìs  cCsÇt|ƒ}|tkr|S|dkr4tƒ}n|j|jA}|jsV|jrÉ|j||ƒ}|rr|S|jƒrœ|s”|jt    dƒSt
|S|jƒrÉ|s¾|jt    dƒSt
|Sn|j |j }| sç| r t |d|ƒ}|j |ƒ}|S|jdkrCt ||j|ƒ}|j |ƒ}|S|jdkrzt ||j|ƒ}|j |ƒ}|St|ƒ}t|ƒ}t |t|j|jƒ|ƒ}|j |ƒ}|S(s\Return self * other.
 
        (+-) INF * 0 (or its reverse) raise InvalidOperation.
        s (+-)INF * 0s 0 * (+-)INFREt1N(RRŽR@RR%RDRRzRURR,RCR$R¯R&R]RWRG(RR|Rt
resultsignR*t    resultexpR¹Rº((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__mul__ÔsH         "c Cslt|ƒ}|tkrtS|d
kr4tƒ}n|j|jA}|jsV|jrã|j||ƒ}|rr|S|jƒrš|jƒrš|jt    dƒS|jƒr®t
|S|jƒrã|jt dƒt |d|j ƒƒSn|s|sÿ|jtdƒS|jtd|ƒS|s1|j|j}d}nt|jƒt|jƒ|jd}|j|j|}t|ƒ}t|ƒ}    |dkr¶t|jd||    jƒ\}}
n$t|j|    jd| ƒ\}}
|
r|d    dkrG|d7}qGnG|j|j} x4|| krF|ddkrF|d}|d7}qWt |t|ƒ|ƒ}|j|ƒS( sReturn self / other.s(+-)INF/(+-)INFsDivision by infinityREs0 / 0sx / 0iii
iN(RRŽR@RR%RDRRzRURR,RR$tEtinyR/RRCRXR&R3R]tdivmodRGRWR¯( RR|RR-R*RJtcoefftshiftR¹Rºt    remaindert    ideal_exp((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt __truediv__ sP          '   &$
c Cs‹|j|jA}|jƒr(|j}nt|j|jƒ}|jƒ|jƒ}| sr|jƒsr|dkr—t|ddƒ|j||jƒfS||jkrot    |ƒ}t    |ƒ}|j
|j
krð|j d|j
|j
9_ n|j d|j
|j
9_ t |j |j ƒ\}}    |d|jkrot|t |ƒdƒt|jt |    ƒ|ƒfSn|jtdƒ}
|
|
fS(s½Return (self // other, self % other), to context.prec precision.
 
        Assumes that neither self nor other is a NaN, that self is not
        infinite and that other is nonzero.
        iþÿÿÿREii
s%quotient too large in //, % or divmod(R%RzRCR´R„R$R¶R2R3R]RJRGRÃRWRUR.( RR|RR-RÇtexpdiffR¹RºtqtrR*((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt_divideHs*             cCs/t|ƒ}|tkr|S|j|d|ƒS(s)Swaps self/other and returns __truediv__.R(RRŽRÈ(RR|R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt __rtruediv__is  cCs8t|ƒ}|tkr|S|dkr4tƒ}n|j||ƒ}|rV||fS|j|jA}|jƒr·|jƒrš|jtdƒ}||fSt    ||jtdƒfSn|s|sß|jt
dƒ}||fS|jt d|ƒ|jtdƒfSn|j ||ƒ\}}|j |ƒ}||fS(s6
        Return (self // other, self % other)
        sdivmod(INF, INF)sINF % xs divmod(0, 0)sx // 0sx % 0N(RRŽR@RRR%RzRURR,R/RRÌR¯(RR|RR*R-tquotientRÆ((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt
__divmod__ss0    
 
 
cCs/t|ƒ}|tkr|S|j|d|ƒS(s(Swaps self/other and returns __divmod__.R(RRŽRÏ(RR|R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt __rdivmod__—s  cCsÄt|ƒ}|tkr|S|dkr4tƒ}n|j||ƒ}|rP|S|jƒrl|jtdƒS|s›|rˆ|jtdƒS|jtdƒSn|j    ||ƒd}|j
|ƒ}|S(s
        self % other
        sINF % xsx % 0s0 % 0iN( RRŽR@RRRzRURR/RÌR¯(RR|RR*RÆ((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__mod__žs"     cCs/t|ƒ}|tkr|S|j|d|ƒS(s%Swaps self/other and returns __mod__.R(RRŽRÑ(RR|R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__rmod__¹s  c Cs||d krtƒ}nt|dtƒ}|j||ƒ}|rF|S|jƒrb|jtdƒS|s‘|r~|jtdƒS|jtdƒSn|jƒr¶t    |ƒ}|j
|ƒSt |j |j ƒ}|sót |jd|ƒ}|j
|ƒS|jƒ|jƒ}||jdkr)|jtƒS|dkrW|j||jƒ}|j
|ƒSt|ƒ}t|ƒ}|j|jkr¡|jd|j|j9_n|jd|j|j9_t|j|jƒ\}}    d    |    |d@|jkr|    |j8}    |d7}n|d|jkr.|jtƒS|j}
|    d
krWd|
}
|     }    nt |
t|    ƒ|ƒ}|j
|ƒS( sI
        Remainder nearest to 0-  abs(remainder-near) <= other/2
        R•sremainder_near(infinity, x)sremainder_near(x, 0)sremainder_near(0, 0)REiiþÿÿÿi
iiN(R@RRR'RRzRURR/RR¯R´RCR$R%R„R3R.R¶R2R]RJRGRÃRW( RR|RR*tideal_exponentRÉR¹RºRÊRËR-((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytremainder_nearÀsZ               
                  
 
cCsÝt|ƒ}|tkr|S|dkr4tƒ}n|j||ƒ}|rP|S|jƒr|jƒrx|jtdƒSt|j    |j    ASn|sÉ|r¶|jt
d|j    |j    AƒS|jt dƒSn|j ||ƒdS(s self // others
INF // INFsx // 0s0 // 0iN( RRŽR@RRRzRURR,R%RR/RÌ(RR|RR*((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt __floordiv__ s$       cCs/t|ƒ}|tkr|S|j|d|ƒS(s*Swaps self/other and returns __floordiv__.R(RRŽRÕ(RR|R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt __rfloordiv__'s  cCsU|jƒr?|jƒr'tdƒ‚n|jr6dnd}n t|ƒ}t|ƒS(sFloat representation.s%Cannot convert signaling NaN to floats-nantnan(RyR€R`R%RWRd(Rts((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt    __float__.s    cCsœ|jrB|jƒr$tdƒ‚qB|jƒrBtdƒ‚qBnd|j}|jdkrz|t|jƒd|jS|t|j|j p“dƒSdS(s1Converts self to an int, truncating if necessary.sCannot convert NaN to integers"Cannot convert infinity to integeriÿÿÿÿii
REN(    RDRyR`Rzt OverflowErrorR%RCRGR&(RRØ((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__int__8s       cCs|S(N((R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytrealGscCs
tdƒS(Ni(R(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytimagKscCs|S(N((R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt    conjugateOscCstt|ƒƒS(N(tcomplexRd(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt __complex__RscCst|jƒƒS(sCConverts to a long.
 
        Equivalent to long(int(self))
        (R[RÛ(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__long__UscCsk|j}|j|j}t|ƒ|kra|t|ƒ|jdƒ}t|j||jtƒSt    |ƒS(s2Decapitate the payload of a NaN to fit the contextRE(
R&R3t_clampRXRZR$R%RCR'R(RRtpayloadtmax_payload_len((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR(\s     cCs/|jr/|jƒr"|j|ƒSt|ƒSn|jƒ}|jƒ}|sº|j|g|j}tt    |j
|ƒ|ƒ}||j
kr­|j t ƒt |jd|ƒSt|ƒSnt|jƒ|j
|j}||kr|j td|jƒ}|j tƒ|j tƒ|S||k}|r4|}n|j
|kr¹t|jƒ|j
|}    |    dkr‹t |jd|dƒ}d}    n|j|j}
|
||    ƒ} |j|     pºd} | dkrtt| ƒdƒ} t| ƒ|jkr| d } |d7}qn||kr5|j td|jƒ}nt |j| |ƒ}| rf|rf|j tƒn|r||j tƒn| r’|j tƒn|j tƒ|sµ|j t ƒn|S|rÏ|j tƒn|jdkr%|j
|kr%|j t ƒ|jd|j
|} t |j| |ƒSt|ƒS(sÜRound if it is necessary to keep self within prec precision.
 
        Rounds and fixes the exponent.  Does not raise on a sNaN.
 
        Arguments:
        self - Decimal instance
        context - context used.
        REs
above EmaxiR¾iiÿÿÿÿ(RDRyR(RRÂtEtopR4RâR´RµRCRURR$R%RXR&R3R R    R
t_pick_rounding_functionR2RWRGR R (RRRÂRåtexp_maxtnew_exptexp_minR*tself_is_subnormalRltrounding_methodtchangedRÄR‰((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR¯hsn
                        
    cCst|j|ƒrdSdSdS(s(Also known as round-towards-0, truncate.iiÿÿÿÿN(t
_all_zerosR&(RR3((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt _round_downÎscCs|j|ƒ S(sRounds away from 0.(Rî(RR3((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt    _round_upÕscCs5|j|dkrdSt|j|ƒr-dSdSdS(sRounds 5 up (away from 0)t56789iiiÿÿÿÿN(R&Rí(RR3((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt_round_half_upÙs
cCs't|j|ƒrdS|j|ƒSdS(s Round 5 downiÿÿÿÿN(t _exact_halfR&Rñ(RR3((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt_round_half_downâscCsJt|j|ƒr9|dks5|j|ddkr9dS|j|ƒSdS(s!Round 5 to even, rest to nearest.iit02468iÿÿÿÿN(RòR&Rñ(RR3((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt_round_half_evenés#cCs(|jr|j|ƒS|j|ƒ SdS(s(Rounds up (not away from 0 if negative.)N(R%Rî(RR3((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt_round_ceilingñs     cCs(|js|j|ƒS|j|ƒ SdS(s'Rounds down (not towards 0 if negative)N(R%Rî(RR3((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt _round_floorøs     cCs<|r*|j|ddkr*|j|ƒS|j|ƒ SdS(s)Round down unless digit prec-1 is 0 or 5.it05N(R&Rî(RR3((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt _round_05upÿs RRRRRRRRcCst|dtƒ}|js$|jr+|dkr<tƒ}n|jdkr^|jtd|ƒS|jdkr€|jtd|ƒS|jdkr˜|}qm|jdkr°|}qm|jdkrì|sÕ|jtdƒSt|j    |j    A}qm|jdkrm|s|jtdƒSt|j    |j    A}qmnBt
|j    |j    At t |j ƒt |j ƒƒ|j|jƒ}t|dtƒ}|j||ƒS(    s:Fused multiply-add.
 
        Returns self*other+third with no rounding of the intermediate
        product self*other.
 
        self and other are multiplied together, with no rounding of
        the result.  The third operand is then added to the result,
        and a single final rounding is performed.
        R•RMR{R#RNsINF * 0 in fmas0 * INF in fmaN(RR'RDR@RRCRURR,R%R$RWRGR&R»(RR|tthirdRtproduct((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytfmas6                   c
Cszt|dtƒ}t|dtƒ}|d kr<tƒ}n|jƒ}|jƒ}|jƒ}|sr|sr|r|dkr‘|jtd|ƒS|dkr°|jtd|ƒS|dkrÏ|jtd|ƒS|râ|j|ƒS|rõ|j|ƒS|j|ƒS|jƒo#|jƒo#|jƒs6|jtdƒS|dkrR|jtdƒS|sh|jtdƒS|j    ƒ|j
kr|jtdƒS| r«| r«|jtd    ƒS|j ƒrÀd}n    |j }t t|ƒƒ}t|jƒƒ}t|jƒƒ}    |j|td
|j|ƒ|}x)t|    jƒD]}
t|d
|ƒ}q3Wt||    j|ƒ}t|t|ƒdƒS( s!Three argument version of __pow__R•iR{s@pow() 3rd argument not allowed unless all arguments are integersisApow() 2nd argument cannot be negative when 3rd argument specifiedspow() 3rd argument cannot be 0sSinsufficient precision: pow() 3rd argument must not have more than precision digitssXat least one of pow() 1st argument and 2nd argument must be nonzero ;0**0 is not definedi
N(RR'R@RRyRURR(R™R„R3t_isevenR%R\RGR]RšR›RJtxrangeR$RW( RR|tmoduloRR}R~t modulo_is_nanR-tbasetexponentti((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt _power_modulo=sd                                               $cCsEt|ƒ}|j|j}}x(|ddkrI|d}|d7}q"Wt|ƒ}|j|j}}x(|ddkr“|d}|d7}qlW|dkrv||9}x(|ddkrÔ|d}|d7}q­W|dkrådS|d|}    |jdkr |     }    n|jƒrT|jdkrT|jt|ƒ}
t|    |
|dƒ} nd} t    ddd| |    | ƒS|jdkry|d} | dkrI|| @|kr°dSt
|ƒd} |d
d }|t t |ƒƒkrêdSt | ||ƒ} t |||ƒ}| dks(|dkr,dS| |kr<dSd | }nû| d kr@t
|ƒd d } td | |ƒ\}}|rŒdSx(|d dkr¶|d }| d8} qW|dd}|t t |ƒƒkrádSt | ||ƒ} t |||ƒ}| dks|dkr#dS| |kr3dSd| }ndS|d|krXdS| |}t    dt |ƒ|ƒS|dkr|d|d}}n|dkrÐt t t||ƒƒƒ| krÐdSt
|ƒ}|dkrt t t|ƒ|ƒƒ| krdS|d| }}x<|d|dkoCdknr_|d}|d}q$Wx<|d |d ko‚dknrž|d }|d }qcW|dkrw|dkrÇ||krÇdSt||ƒ\}}|dkrìdSdt
|ƒ | >}xMtrQt|||dƒ\}}||kr8Pq||d||}qW||kog|dksndS|}n|dkr¡||dt|ƒkr¡dS||}||9}|d|krÉdSt |ƒ}|jƒr#|jdkr#|jt|ƒ}
t||
|t |ƒƒ} nd} t    d|d| || ƒS(shAttempt to compute self**other exactly.
 
        Given Decimals self and other and an integer p, attempt to
        compute an exact result for the power self**other, with p
        digits of precision.  Return None if self**other is not
        exactly representable in p digits.
 
        Assumes that elimination of special cases has already been
        performed: self and other must both be nonspecial; self must
        be positive and not numerically equal to 1; other must be
        nonzero.  For efficiency, other._exp should not be too large,
        so that 10**abs(other._exp) is a feasible calculation.i
iiR¾REiiiii]iAiiilidN(iiii(R]RGRJR@R-R™R%RCR´R$t_nbitsRXRWt_decimal_lshift_exactRÃR\R't    _log10_lb(RR|tptxtxctxetytyctyeRRÓtzerost
last_digitR¥temaxRÆRiR#txc_bitstremtaRÊRËtstr_xc((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt _power_exact‘sÒ: 
 
 
 
 
 
 
    / /'
'
           &
 
  cCsÙ|d k    r|j|||ƒSt|ƒ}|tkr;|S|d krStƒ}n|j||ƒ}|ro|S|s’|s‹|jtdƒStSnd}|j    dkrð|j
ƒrË|j ƒsád}qán|rá|jtdƒS|j ƒ}n|s |j    dkrt |ddƒSt|Sn|jƒrV|j    dkrCt|St |ddƒSn|tkr-|j
ƒrí|j    dkr†d}n'||jkr¡|j}n t|ƒ}|j|}|d|jkrd|j}|jtƒqn'|jtƒ|jtƒd|j}t |dd| |ƒS|jƒ}|jƒr{|j    dk|dkkrpt |ddƒSt|Snd }t}    |jƒ|jƒ}
|dk|j    dkkrò|
tt|jƒƒkr0t |d|jdƒ}q0n>|jƒ} |
tt| ƒƒkr0t |d| dƒ}n|d kr”|j||jdƒ}|d k    r”|dkrˆt d|j|jƒ}nt}    q”n|d kr„|j} t|ƒ} | j| j }}t|ƒ}|j|j }}|j!dkr| }nd}x`trht"||||| |ƒ\}}|dd    tt|ƒƒ| dr[Pn|d7}q    Wt |t|ƒ|ƒ}n|    rÆ|j
ƒ rÆt|jƒ|jkró|jdt|jƒ}t |j    |jd||j|ƒ}n|j#ƒ}|j$ƒxt%D]}d|j&|<qW|j'|ƒ}|jtƒ|j(t)r`|jt*ƒn|j(t+r†|jt+d
|j    ƒnxLt*t)ttt,fD]#}|j(|rœ|j|ƒqœqœWn|j'|ƒ}|S( sHReturn self ** other [ % modulo].
 
        With two arguments, compute self**other.
 
        With three arguments, compute (self**other) % modulo.  For the
        three argument form, the following restrictions on the
        arguments hold:
 
         - all three arguments must be integral
         - other must be nonnegative
         - either self or other (or both) must be nonzero
         - modulo must be nonzero and must have at most p digits,
           where p is the context precision.
 
        If any of these restrictions is violated the InvalidOperation
        flag is raised.
 
        The result of pow(self, other, modulo) is identical to the
        result that would be obtained by computing (self**other) %
        modulo with unbounded precision, but is computed more
        efficiently.  It is always exact.
        s0 ** 0iis+x ** y with x negative and y not an integerRER¾iii
s
above EmaxN(-R@RRRŽRRRURt_OneR%R™RýR®R$R,RzR3RGRCR
R    R„RYt_log10_exp_boundRXRWR4RÂRR&R'R]RJR-t_dpowerR:R;t_signalsttrapsR¯tflagsR R R R(RR|RÿRR*t result_signt
multiplierRJtself_adjtexacttboundRÂRR    R
R R R RtextraRÄRÉt
newcontextt    exception((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__pow__~sÊ                                          
    "& 
     cCs/t|ƒ}|tkr|S|j|d|ƒS(s%Swaps self/other and returns __pow__.R(RRŽR%(RR|R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__rpow__V    s  cCs|dkrtƒ}n|jr@|jd|ƒ}|r@|Sn|j|ƒ}|jƒr_|S|sxt|jddƒS|j|j    ƒg|j
}t |j ƒ}|j }x;|j |ddkré||kré|d7}|d8}q¯Wt|j|j | |ƒS(s?Normalize- strip trailing 0s, change anything equal to 0 to 0e0RREiiN(R@RRDRR¯RzR$R%R4RåRâRXR&RC(RRR*tdupRçtendRJ((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt    normalize]    s$           &
cCs°t|dtƒ}|dkr*tƒ}n|dkrB|j}n|jsT|jr½|j||ƒ}|rp|S|jƒsˆ|jƒr½|jƒrª|jƒrªt|ƒS|j    t
dƒSn|s|j |j |ƒ}|j |j kr|j    t ƒ||kr|j    tƒqn|S|jƒ|j ko=|jknsR|j    t
dƒS|s}t|jd|j ƒ}|j|ƒS|jƒ}||jkr¨|j    t
dƒS||j d|jkrÒ|j    t
dƒS|j |j |ƒ}|jƒ|jkr |j    t
dƒSt|jƒ|jkr4|j    t
dƒS|r_|jƒ|jkr_|j    tƒn|j |j kr||kr|j    tƒn|j    t ƒn|j|ƒ}|S(    s‡Quantize self so its exponent is the same as that of exp.
 
        Similar to self._rescale(exp._exp) but with error checking.
        R•squantize with one INFs)target exponent out of bounds in quantizeREs9exponent of quantize result too large for current contextis7quantize result has too many digits for current contextN(RR'R@RR2RDRRzRRURR¶RCR
R    RÂR4R$R%R¯R„R3RXR&tEminR (RRJR2RtwatchexpR*R‡((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytquantizev    sb    
    
  (                       cCsbt|dtƒ}|js$|jrR|jƒr<|jƒpQ|jƒoQ|jƒS|j|jkS(s=Return True if self and other have the same exponent; otherwise
        return False.
 
        If either operand is a special value, the following rules are used:
           * return True if both operands are infinities
           * return True if both operands are NaNs
           * otherwise, return False.
        R•(RR'RDR—t is_infiniteRC(RR|((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt same_quantum½    s
   cCs|jrt|ƒS|s,t|jd|ƒS|j|kr`t|j|jd|j||ƒSt|jƒ|j|}|dkr¨t|jd|dƒ}d}n|j|}|||ƒ}|j| pÔd}|dkrütt    |ƒdƒ}nt|j||ƒS(ssRescale self so that the exponent is exp, either by padding with zeros
        or by truncating digits, using the given rounding mode.
 
        Specials are returned without change.  This operation is
        quiet: it raises no flags, and uses no information from the
        context.
 
        exp = exp to scale to (an integer)
        rounding = rounding mode
        REiR¾i(
RDRR$R%RCR&RXRæRWRG(RRJR2Rlt this_functionRìRÄ((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR¶Ì    s"    
           cCs”|dkrtdƒ‚n|js+| r5t|ƒS|j|jƒd||ƒ}|jƒ|jƒkr|j|jƒd||ƒ}n|S(s"Round a nonzero, nonspecial Decimal to a fixed number of
        significant figures, using the given rounding mode.
 
        Infinities, NaNs and zeros are returned unaltered.
 
        This operation is quiet: it raises no flags, and uses no
        information from the context.
 
        is'argument should be at least 1 in _roundi(R`RDRR¶R„(RtplacesR2R*((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt_roundî    s
 
 #cCsÐ|jr/|jd|ƒ}|r%|St|ƒS|jdkrHt|ƒS|sat|jddƒS|dkrytƒ}n|dkr‘|j}n|j    d|ƒ}||kr¿|j
t ƒn|j
t ƒ|S(sVRounds to a nearby integer.
 
        If no rounding mode is specified, take the rounding mode from
        the context.  This method raises the Rounded and Inexact flags
        when appropriate.
 
        See also: to_integral_value, which does exactly the same as
        this method except that it doesn't raise Inexact or Rounded.
        RiREN( RDRRRCR$R%R@RR2R¶RUR    R
(RR2RR*((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytto_integral_exact
s$
   
 
      cCsŒ|dkrtƒ}n|dkr0|j}n|jr_|jd|ƒ}|rU|St|ƒS|jdkrxt|ƒS|jd|ƒSdS(s@Rounds to the nearest integer, without raising inexact, rounded.RiN(R@RR2RDRRRCR¶(RR2RR*((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRš"
s        
 
cCs…|d
krtƒ}n|jre|jd|ƒ}|r=|S|jƒre|jdkret|ƒSn|s”t|jd|jdƒ}|j    |ƒS|jdkr³|j
t dƒS|j d}t |ƒ}|jd?}|jd@r |jd}t|jƒd?d}n |j}t|jƒdd?}||}|dkrZ|d|9}t}    n!t|d| ƒ\}}
|
}    ||8}d|} x2trÃ|| } | | kr²Pq’| | d?} q’W|    o×| | |k}    |    r|dkrý| d|} n| d| 9} ||7}n| d    dkr6| d7} ntdt| ƒ|ƒ}|jƒ}|jtƒ} |j    |ƒ}| |_|S( sReturn the square root of self.RiREiissqrt(-x), x > 0i
idiN(R@RRDRRzR%RR$RCR¯RURR3R]RJRGRXR&R'RÃRWt _shallow_copyt _set_roundingRR2(RRR*R3RžR¥tctlRÅR RÆR#RÊR2((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytsqrt5
s`                 
     
 
    
         cCst|dtƒ}|dkr*tƒ}n|js<|jr½|jƒ}|jƒ}|s`|r½|dkr…|dkr…|j|ƒS|dkrª|dkrª|j|ƒS|j||ƒSn|j|ƒ}|dkrê|j    |ƒ}n|dkrÿ|}n|}|j|ƒS(s Returns the larger value.
 
        Like max(self, other) except if one is not a number, returns
        NaN (and signals if one is sNaN).  Also rounds.
        R•iiiÿÿÿÿN(
RR'R@RRDRyR¯RR‹t compare_total(RR|RtsntonR5R*((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRµ˜
s&                cCst|dtƒ}|dkr*tƒ}n|js<|jr½|jƒ}|jƒ}|s`|r½|dkr…|dkr…|j|ƒS|dkrª|dkrª|j|ƒS|j||ƒSn|j|ƒ}|dkrê|j    |ƒ}n|dkrÿ|}n|}|j|ƒS(s¡Returns the smaller value.
 
        Like min(self, other) except if one is not a number, returns
        NaN (and signals if one is sNaN).  Also rounds.
        R•iiiÿÿÿÿN(
RR'R@RRDRyR¯RR‹R8(RR|RR9R:R5R*((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR´Â
s&             cCsD|jr tS|jdkr tS|j|j}|dt|ƒkS(s"Returns whether self is an integeriRE(RDRYRCR'R&RX(Rtrest((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR™ä
s     cCs2| s|jdkrtS|jd|jdkS(s:Returns True if self is even.  Assumes self is an integer.iiÿÿÿÿRô(RCR'R&(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRýí
scCs5y|jt|jƒdSWntk
r0dSXdS(s$Return the adjusted exponent of selfiiN(RCRXR&Rf(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR„ó
s cCs|S(s«Returns the same Decimal object.
 
        As we do not have different encodings for the same number, the
        received object already is in its canonical form.
        ((RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt    canonicalû
scCsAt|dtƒ}|j||ƒ}|r.|S|j|d|ƒS(s¶Compares self to the other operand numerically.
 
        It's pretty much like compare(), but all NaNs signal, with signaling
        NaNs taking precedence over quiet NaNs.
        R•R(RR'R‚R–(RR|RR*((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytcompare_signal s
cCsÝt|dtƒ}|jr)|j r)tS|j r@|jr@tS|j}|jƒ}|jƒ}|sm|rs||krçt|jƒ|jf}t|jƒ|jf}||krÆ|r¿tStSn||krã|rÜtStSntS|r0|dkrýtS|dkr tS|dkrtS|dkrptSqs|dkr@tS|dkrPtS|dkr`tS|dkrstSn||krƒtS||kr“tS|j    |j    kr¶|r¯tStSn|j    |j    krÙ|rÒtStSntS(sõCompares self to other using the abstract representations.
 
        This is not like the standard compare, which use their numerical
        value. Note that a total ordering is defined for all possible abstract
        representations.
        R•ii(
RR'R%t _NegativeOneRRyRXR&t_ZeroRC(RR|R-tself_nant    other_nantself_keyt    other_key((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR8 sf                    cCs7t|dtƒ}|jƒ}|jƒ}|j|ƒS(s–Compares self to other using abstract repr., ignoring sign.
 
        Like compare_total, but with operand's sign ignored and assumed to be 0.
        R•(RR'R­R8(RR|RØto((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytcompare_total_magX s  cCstd|j|j|jƒS(s'Returns a copy with the sign set to 0. i(R$R&RCRD(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR­c scCsE|jr%td|j|j|jƒStd|j|j|jƒSdS(s&Returns a copy with the sign inverted.iiN(R%R$R&RCRD(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR®g s    cCs1t|dtƒ}t|j|j|j|jƒS(s$Returns self with the sign of other.R•(RR'R$R%R&RCRD(RR|((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt    copy_signn sc
Cs–|d krtƒ}n|jd|ƒ}|r4|S|jƒdkrJtS|sTtS|jƒdkrpt|ƒS|j}|jƒ}|j    dkrÓ|t
t |j ddƒƒkrÓt dd|j dƒ}nŒ|j    dkr(|t
t |jƒ ddƒƒkr(t dd|jƒdƒ}n7|j    dkrj|| krjt ddd|dd| ƒ}nõ|j    dkr¬|| dkr¬t dd|d| dƒ}n³t|ƒ}|j|j}}|jdkrä| }nd}xZtrFt||||ƒ\}    }
|    d    d
t
t |    ƒƒ|dr9Pn|d7}qíWt dt |    ƒ|
ƒ}|jƒ}|jtƒ} |j|ƒ}| |_|S( sReturns e ** self.RiÿÿÿÿiiiR¾RER1ii
N(R@RRRzR?RRR3R„R%RXRWR4R$RÂR]RGRJR-R't_dexpR3R4RR¯R2( RRR*RtadjRžR5R¥R"RÄRJR2((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRJt sJ  
     26& " 
    &     cCstS(sÃReturn True if self is canonical; otherwise return False.
 
        Currently, the encoding of a Decimal instance is always
        canonical, so this method returns True for any Decimal.
        (R'(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt is_canonical¿ scCs|j S(sReturn True if self is finite; otherwise return False.
 
        A Decimal instance is considered finite if it is neither
        infinite nor a NaN.
        (RD(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt    is_finiteÇ scCs |jdkS(s8Return True if self is infinite; otherwise return False.RN(RC(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR-Ï scCs |jdkS(s>Return True if self is a qNaN or sNaN; otherwise return False.R#RM(R#RM(RC(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR—Ó scCs?|js| rtS|dkr,tƒ}n|j|jƒkS(s?Return True if self is a normal number; otherwise return False.N(RDRYR@RR*R„(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt    is_normal× s
  cCs |jdkS(s;Return True if self is a quiet NaN; otherwise return False.R#(RC(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRß scCs |jdkS(s8Return True if self is negative; otherwise return False.i(R%(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt    is_signedã scCs |jdkS(s?Return True if self is a signaling NaN; otherwise return False.RM(RC(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR€ç scCs?|js| rtS|dkr,tƒ}n|jƒ|jkS(s9Return True if self is subnormal; otherwise return False.N(RDRYR@RR„R*(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt is_subnormalë s
  cCs|j o|jdkS(s6Return True if self is a zero; otherwise return False.RE(RDR&(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytis_zeroó scCsù|jt|jƒd}|dkrBtt|ddƒƒdS|dkrnttd|ddƒƒdSt|ƒ}|j|j}}|dkrØt|d| ƒ}t|ƒ}t|ƒt|ƒ||kS|ttd| |ƒƒdS(sÌCompute a lower bound for the adjusted exponent of self.ln().
        In other words, compute r such that self.ln() >= 10**r.  Assumes
        that self is finite and positive and that self != 1.
        iii
iþÿÿÿiÿÿÿÿi(RCRXR&RWR]RGRJ(RRHRžR5R¥tnumtden((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt _ln_exp_bound÷ s      c
Csz|d    krtƒ}n|jd|ƒ}|r4|S|s>tS|jƒdkrTtS|tkrdtS|jdkrƒ|j    t
dƒSt |ƒ}|j |j }}|j}||jƒd}xVtrt|||ƒ}|ddttt|ƒƒƒ|dr
Pn|d7}qÂWtt |dkƒtt|ƒƒ| ƒ}|jƒ}|jtƒ}    |j|ƒ}|    |_|S(
s/Returns the natural (base e) logarithm of self.Risln of a negative valueiii
iiN(R@RRt_NegativeInfinityRzt    _InfinityRR?R%RURR]RGRJR3RQR't_dlogRXRWR\R$R3R4RR¯R2(
RRR*RžR5R¥RR0RÄR2((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytln s:                ,+     cCs|jt|jƒd}|dkr:tt|ƒƒdS|dkr^ttd|ƒƒdSt|ƒ}|j|j}}|dkrÐt|d| ƒ}td|ƒ}t|ƒt|ƒ||kdStd| |ƒ}t|ƒ||dkdS(    sÎCompute a lower bound for the adjusted exponent of self.log10().
        In other words, find r such that self.log10() >= 10**r.
        Assumes that self is finite and positive and that self != 1.
        iiþÿÿÿiÿÿÿÿii
içit231(RCRXR&RWR]RGRJ(RRHRžR5R¥RORP((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRB s     "c
CsÄ|d krtƒ}n|jd|ƒ}|r4|S|s>tS|jƒdkrTtS|jdkrs|jtdƒS|j    ddkrÍ|j    ddt
|j    ƒdkrÍt |j t
|j    ƒdƒ}nÀt |ƒ}|j|j}}|j}||jƒd}xVtrat|||ƒ}|dd    t
tt|ƒƒƒ|drTPn|d
7}q Wtt|dkƒtt|ƒƒ| ƒ}|jƒ}|jtƒ}    |j|ƒ}|    |_|S( s&Returns the base 10 logarithm of self.Rislog10 of a negative valueiR¾REiii
iN(R@RRRRRzRSR%RURR&RXRRCR]RGRJR3RR't_dlog10RWR\R$R3R4RR¯R2(
RRR*RžR5R¥RR0RÄR2((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytlog10` s:      7#         ,+     cCs||jd|ƒ}|r|S|dkr4tƒ}n|jƒrDtS|s]|jtddƒSt|jƒƒ}|j    |ƒS(sM Returns the exponent of the magnitude of self's MSD.
 
        The result is the integer which is the exponent of the magnitude
        of the most significant digit of self (as though it were truncated
        to a single digit while maintaining the value of that digit and
        without limiting the resulting exponent).
        Rslogb(0)iN(
RR@RRzRSRURRR„R¯(RRR*((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytlogb“ s       cCsJ|jdks|jdkr"tSx!|jD]}|dkr,tSq,WtS(s×Return True if self is a logical operand.
 
        For being logical, it must be a finite number with a sign of 0,
        an exponent of 0, and a coefficient whose digits must all be
        either 0 or 1.
        it01(R%RCRYR&R'(Rtdig((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt
_islogical± s  cCs¤|jt|ƒ}|dkr0d||}n|dkrM||j }n|jt|ƒ}|dkr}d||}n|dkrš||j }n||fS(NiRE(R3RX(RRtopatopbtdif((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt _fill_logical¿ s    cCsØ|dkrtƒ}nt|dtƒ}|jƒ sD|jƒ rQ|jtƒS|j||j|jƒ\}}dj    gt
||ƒD](\}}t t |ƒt |ƒ@ƒ^qˆƒ}t d|jdƒpÑddƒS(s;Applies an 'and' operation between self and other's digits.R•RIiREN(R@RRR'R\RURR`R&RbtzipRWRGR$RZ(RR|RR]R^RtbRx((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt logical_andÌ s   !GcCs;|dkrtƒ}n|jtdd|jdƒ|ƒS(sInvert all its digits.iR¾N(R@Rt logical_xorR$R3(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytlogical_invertÝ s  cCsØ|dkrtƒ}nt|dtƒ}|jƒ sD|jƒ rQ|jtƒS|j||j|jƒ\}}dj    gt
||ƒD](\}}t t |ƒt |ƒBƒ^qˆƒ}t d|jdƒpÑddƒS(s:Applies an 'or' operation between self and other's digits.R•RIiREN(R@RRR'R\RURR`R&RbRaRWRGR$RZ(RR|RR]R^RRbRx((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt
logical_orä s   !GcCsØ|dkrtƒ}nt|dtƒ}|jƒ sD|jƒ rQ|jtƒS|j||j|jƒ\}}dj    gt
||ƒD](\}}t t |ƒt |ƒAƒ^qˆƒ}t d|jdƒpÑddƒS(s;Applies an 'xor' operation between self and other's digits.R•RIiREN(R@RRR'R\RURR`R&RbRaRWRGR$RZ(RR|RR]R^RRbRx((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRdõ s   !GcCst|dtƒ}|dkr*tƒ}n|js<|jr½|jƒ}|jƒ}|s`|r½|dkr…|dkr…|j|ƒS|dkrª|dkrª|j|ƒS|j||ƒSn|jƒj    |jƒƒ}|dkrö|j
|ƒ}n|dkr |}n|}|j|ƒS(s8Compares the values numerically with their sign ignored.R•iiiÿÿÿÿN( RR'R@RRDRyR¯RR­R‹R8(RR|RR9R:R5R*((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytmax_mag s&             cCst|dtƒ}|dkr*tƒ}n|js<|jr½|jƒ}|jƒ}|s`|r½|dkr…|dkr…|j|ƒS|dkrª|dkrª|j|ƒS|j||ƒSn|jƒj    |jƒƒ}|dkrö|j
|ƒ}n|dkr |}n|}|j|ƒS(s8Compares the values numerically with their sign ignored.R•iiiÿÿÿÿN( RR'R@RRDRyR¯RR­R‹R8(RR|RR9R:R5R*((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytmin_mag$ s&             cCsá|dkrtƒ}n|jd|ƒ}|r4|S|jƒdkrJtS|jƒdkrytdd|j|jƒƒS|jƒ}|j    t
ƒ|j ƒ|j |ƒ}||kr»|S|j tdd|jƒdƒ|ƒS(s=Returns the largest representable number smaller than itself.RiÿÿÿÿiiR1R¾N(R@RRRzRRR$R3RåR:R4Rt_ignore_all_flagsR¯R¼RÂ(RRR*tnew_self((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt
next_minusB s"    
 cCsá|dkrtƒ}n|jd|ƒ}|r4|S|jƒdkrJtS|jƒdkrytdd|j|jƒƒS|jƒ}|j    t
ƒ|j ƒ|j |ƒ}||kr»|S|j tdd|jƒdƒ|ƒS(s=Returns the smallest representable number larger than itself.RiiÿÿÿÿR1iR¾N(R@RRRzRSR$R3RåR:R4RRiR¯R»RÂ(RRR*Rj((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt    next_plusY s"    
 cCs@t|dtƒ}|dkr*tƒ}n|j||ƒ}|rF|S|j|ƒ}|dkrn|j|ƒS|dkrŒ|j|ƒ}n|j|ƒ}|j    ƒrÚ|j
t d|j ƒ|j
t ƒ|j
tƒnb|jƒ|jkr<|j
tƒ|j
tƒ|j
t ƒ|j
tƒ|s<|j
tƒq<n|S(s‹Returns the number closest to self, in the direction towards other.
 
        The result is the closest representable number to self
        (excluding self) that is in the direction towards other,
        unless both have the same value.  If the two operands are
        numerically equal, then the result is a copy of self with the
        sign set to be the same as the sign of other.
        R•iiÿÿÿÿs Infinite result from next_towardN(RR'R@RRR‹RFRlRkRzRUR R%R    R
R„R*R R R(RR|RR*t
comparison((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt next_towardp s4              
     cCs¿|jƒrdS|jƒr dS|jƒ}|dkr<dS|dkrLdS|jƒrl|jredSdSn|dkr„tƒ}n|jd    |ƒrª|jr£d
Sd Sn|jr·d Sd SdS(sReturns an indication of the class of self.
 
        The class is one of the following strings:
          sNaN
          NaN
          -Infinity
          -Normal
          -Subnormal
          -Zero
          +Zero
          +Subnormal
          +Normal
          +Infinity
        R{R£is    +Infinityiÿÿÿÿs    -Infinitys-Zeros+ZeroRs
-Subnormals
+Subnormals-Normals+NormalN(R€RRzRNR%R@RRM(RRtinf((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt number_classž s,                    cCs
tdƒS(s'Just returns 10, as this is Decimal, :)i
(R(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytradixÈ scCsD|dkrtƒ}nt|dtƒ}|j||ƒ}|rF|S|jdkrb|jtƒS|j t    |ƒko†|jkns˜|jtƒS|j
ƒr®t |ƒSt    |ƒ}|j }|jt |ƒ}|dkród||}n|dkr || }n|||| }t|j|jdƒp:d|jƒS(s5Returns a rotated copy of self, value-of-other times.R•iREN(R@RRR'RRCRURR3RGRzRR&RXR$R%RZ(RR|RR*ttorottrotdigttopadtrotated((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytrotateÌ s,   )  
           cCs|dkrtƒ}nt|dtƒ}|j||ƒ}|rF|S|jdkrb|jtƒSd|j|j    }d|j|j    }|t
|ƒko§|kns¹|jtƒS|j ƒrÏt |ƒSt |j|j|jt
|ƒƒ}|j|ƒ}|S(s>Returns self operand after adding the second value to its exp.R•iiþÿÿÿiN(R@RRR'RRCRURR4R3RGRzRR$R%R&R¯(RR|RR*tliminftlimsupRv((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytscalebí s"   "  
%cCsg|dkrtƒ}nt|dtƒ}|j||ƒ}|rF|S|jdkrb|jtƒS|j t    |ƒko†|jkns˜|jtƒS|j
ƒr®t |ƒSt    |ƒ}|j }|jt |ƒ}|dkród||}n|dkr || }n|dkr&|| }n|d|}||j }t|j|jdƒp]d|jƒS(s5Returns a shifted copy of self, value-of-other times.R•iREN(R@RRR'RRCRURR3RGRzRR&RXR$R%RZ(RR|RR*RrRsRttshifted((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRÅs2   )  
             cCs|jt|ƒffS(N(t    __class__RW(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt
__reduce__-scCs)t|ƒtkr|S|jt|ƒƒS(N(ttypeRR{RW(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__copy__0scCs)t|ƒtkr|S|jt|ƒƒS(N(R}RR{RW(Rtmemo((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt __deepcopy__5sc Csô|dkrtƒ}nt|d|ƒ}|jrgt|j|ƒ}t|jƒƒ}t|||ƒS|ddkr‘ddg|j    |d<n|ddkrÃt
|j|j |j dƒ}n|j }|d}|dk    rn|ddkr |j|d    |ƒ}qn|dd
kr1|j| |ƒ}qn|dd krnt|j ƒ|krn|j||ƒ}qnn| r©|j d kr©|dd
kr©|jd |ƒ}n|j t|j ƒ}    |ddkrø| rï|dk    rïd    |}
qNd    }
nV|dd
kr|    }
n=|dd krN|j d krE|    d krE|    }
qNd    }
n|
d krud} d|
|j } n\|
t|j ƒkr±|j d|
t|j ƒ} d} n |j |
 pÁd} |j |
} |    |
} t|j| | | |ƒS(s|Format a Decimal instance according to the given specifier.
 
        The specifier should be a standard format specifier, with the
        form described in PEP 3101.  Formatting types 'e', 'E', 'f',
        'F', 'g', 'G', 'n' and '%' are supported.  If the formatting
        type is omitted it defaults to 'g' or 'G', depending on the
        value of context.capitals.
        t _localeconvR}tgtGt%it    precisionteEisfF%tgGiiúÿÿÿRERIN(R@Rt_parse_format_specifierRDt _format_signR%RWR­t _format_alignR§R$R&RCR2R1R¶RXt_format_number(Rt    specifierRRtspecR-tbodyR2R…R©RªRjRkRJ((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt
__format__<sV      "    
 %&                       
(s_exps_ints_signs _is_specialN(„R R!R"t    __slots__R@RPRet classmethodRyRzRR‚RƒR‹RRR‘R’R“R”R–RŸR R¡RYR«R¬R°R±R'R³R»t__radd__R¼R½RÁt__rmul__RÈRÌRÍt__div__t__rdiv__RÏRÐRÑRÒRÔRÕRÖRÙRÛt    __trunc__RÜtpropertyRÝRÞRàRáR(R¯RîRïRñRóRõRöR÷RùtdictRæRüRRR%R&R)R,R.R¶R1R2Ršt to_integralR7RµR´R™RýR„R<R=R8RER­R®RFRJRIRJR-R—RKRRLR€RMRNRQRURRXRYR\R`RcReRfRdRgRhRkRlRnRpRqRvRyRÅR|R~R€R(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRús“    $               !        @                       4        4
  V   7 ;    !  $    K      
                                  f                                         , T    íØ  G        "     c * "                     I                 K                                       2     3                  . *     !  '            cCs7tjtƒ}||_||_||_||_|S(s½Create a decimal instance directly, without any validation,
    normalization (e.g. removal of leading zeros) or argument
    conversion.
 
    This function is for *internal use only*.
    (RORPRR%R&RCRD(R-t coefficientRtspecialR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR$Œs                 RAcBs)eZdZd„Zd„Zd„ZRS(s­Context manager class to support localcontext().
 
      Sets a copy of the supplied context in __enter__() and restores
      the previous decimal context in __exit__()
    cCs|jƒ|_dS(N(R:t new_context(RRœ((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__init__ªscCs tƒ|_t|jƒ|jS(N(Rt saved_contextRRœ(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt    __enter__¬s  cCst|jƒdS(N(RRž(Rtttvttb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt__exit__°s(R R!R"RRŸR£(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRA¤s        c
BsçeZdZdNdNdNdNdNdNdNddNd„    Zd„Zd„Zd„Zd„ZeZ    dNd„Z
d„Z d    „Z d
„Z dNZd „Zd „Zd „Zdd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"d „Z#d!„Z$d"„Z%d#„Z&d$„Z'd%„Z(d&„Z)d'„Z*d(„Z+d)„Z,d*„Z-d+„Z.d,„Z/d-„Z0d.„Z1d/„Z2d0„Z3d1„Z4d2„Z5d3„Z6d4„Z7d5„Z8d6„Z9d7„Z:d8„Z;d9„Z<d:„Z=d;„Z>d<„Z?d=„Z@d>„ZAdNd?„ZBd@„ZCdA„ZDdB„ZEdC„ZFdD„ZGdE„ZHdF„ZIdG„ZJdH„ZKdI„ZLdJ„ZMdK„ZNdL„ZOdM„ZPePZQRS(OsßContains the context for a Decimal instance.
 
    Contains:
    prec - precision (for use in rounding, division, square roots..)
    rounding - rounding type (how you round)
    traps - If traps[exception] = 1, then the exception is
                    raised when it is caused.  Otherwise, a value is
                    substituted in.
    flags  - When an exception is caused, flags[exception] is set.
             (Whether or not the trap_enabler is set)
             Should be reset by user of Decimal instance.
    Emin -   Minimum exponent
    Emax -   Maximum exponent
    capitals -      If 1, 1*10^1 is printed as 1E+1.
                    If 0, printed as 1e1
    _clamp - If 1, change exponents if too high (Default 0)
    ic
s°y
t}
Wntk
rnX|dk    r0|n|
j|_|dk    rN|n|
j|_|dk    rl|n|
j|_|dk    rŠ|n|
j|_|dk    r¨|n|
j|_|dk    rÆ|n|
j|_|    dkrêg|_    n    |    |_    ˆdkr|
j
j ƒ|_
n:t ˆt ƒsEt ‡fd†tDƒƒ|_
n    ˆ|_
ˆdkrrt jtdƒ|_n:t ˆt ƒs£t ‡fd†tDƒƒ|_n    ˆ|_dS(Nc3s'|]}|t|ˆkƒfVqdS(N(RG(t.0RØ(R(sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pys    <genexpr>ásic3s'|]}|t|ˆkƒfVqdS(N(RG(R¤RØ(R(sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pys    <genexpr>ès(Rt    NameErrorR@R3R2R*R4R§Rât_ignored_flagsRR:RQR˜RtfromkeysR( RR3R2RRR*R4R§RâR¦tdc((RRsO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRÆs.
        "     "cCsÌg}|jdt|ƒƒg|jjƒD]\}}|r-|j^q-}|jddj|ƒdƒg|jjƒD]\}}|r||j^q|}|jddj|ƒdƒdj|ƒdS(sShow the current context.saContext(prec=%(prec)d, rounding=%(rounding)s, Emin=%(Emin)d, Emax=%(Emax)d, capitals=%(capitals)dsflags=[s, t]straps=[t)(RatvarsRtitemsR RbR(RRØRuR¡tnamesR ((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR¡ìs    11cCs%x|jD]}d|j|<q
WdS(sReset all flags to zeroiN(R(Rtflag((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR;øsc
CsCt|j|j|j|j|j|j|j|j|j    ƒ    }|S(s!Returns a shallow copy from self.(
RR3R2RRR*R4R§RâR¦(Rtnc((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR3ýsc
CsOt|j|j|jjƒ|jjƒ|j|j|j|j    |j
ƒ    }|S(sReturns a deep copy from self.( RR3R2RR:RR*R4R§RâR¦(RR¯((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR:scGsqtj||ƒ}||jkr4|ƒj||ŒSd|j|<|j|sa|ƒj||ŒS||ƒ‚dS(s#Handles an error
 
        If the flag is in _ignored_flags, returns the default response.
        Otherwise, it sets the flag, then, if the corresponding
        trap_enabler is set, it reraises the exception.  Otherwise, it returns
        the default value after setting the flag.
        iN(t_condition_maptgetR¦RRR(Rt    conditiont explanationRterror((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRU s  cCs |jtŒS(s$Ignore all flags, if they are raised(t _ignore_flagsR(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRi"scGs |jt|ƒ|_t|ƒS(s$Ignore the flags, if they are raised(R¦R^(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRµ&scGsQ|r,t|dttfƒr,|d}nx|D]}|jj|ƒq3WdS(s+Stop ignoring the flags, if they are raisediN(RQR_R^R¦tremove(RRR®((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt _regard_flags-s  cCst|j|jdƒS(s!Returns Etiny (= Emin - prec + 1)i(RGR*R3(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRÂ7scCst|j|jdƒS(s,Returns maximum exponent (= Emax - prec + 1)i(RGR4R3(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRå;scCs|j}||_|S(sÓSets the rounding type.
 
        Sets the rounding type, and returns the current (previous)
        rounding type.  Often used like:
 
        context = context.copy()
        # so you don't change the calling context
        # if an error occurs in the middle.
        rounding = context._set_rounding(ROUND_UP)
        val = self.__sub__(other, context=context)
        context._set_rounding(rounding)
 
        This will make it round up for that operation.
        (R2(RR}R2((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR4?s        REcCs‹t|tƒr1||jƒkr1|jtdƒSt|d|ƒ}|jƒr~t|jƒ|j    |j
kr~|jtdƒS|j |ƒS(s›Creates a new Decimal instance but using self as context.
 
        This method implements the to-number operation of the
        IBM Decimal specification.s/no trailing or leading whitespace is permitted.Rsdiagnostic info too long in NaN( RQRRRTRUR+RRyRXR&R3RâR¯(RRORv((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytcreate_decimalRs!    +    cCstj|ƒ}|j|ƒS(sÇCreates a new Decimal instance from a float but rounding using self
        as the context.
 
        >>> context = Context(prec=5, rounding=ROUND_DOWN)
        >>> context.create_decimal_from_float(3.1415926535897932)
        Decimal('3.1415')
        >>> context = Context(prec=5, traps=[Inexact])
        >>> context.create_decimal_from_float(3.1415926535897932)
        Traceback (most recent call last):
            ...
        Inexact: None
 
        (RReR¯(RRuRv((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytcreate_decimal_from_floatcscCs"t|dtƒ}|jd|ƒS(s[Returns the absolute value of the operand.
 
        If the operand is negative, the result is the same as using the minus
        operation on the operand.  Otherwise, the result is the same as using
        the plus operation on the operand.
 
        >>> ExtendedContext.abs(Decimal('2.1'))
        Decimal('2.1')
        >>> ExtendedContext.abs(Decimal('-100'))
        Decimal('100')
        >>> ExtendedContext.abs(Decimal('101.5'))
        Decimal('101.5')
        >>> ExtendedContext.abs(Decimal('-101.5'))
        Decimal('101.5')
        >>> ExtendedContext.abs(-1)
        Decimal('1')
        R•R(RR'R³(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR\uscCsNt|dtƒ}|j|d|ƒ}|tkrFtd|ƒ‚n|SdS(s«Return the sum of the two operands.
 
        >>> ExtendedContext.add(Decimal('12'), Decimal('7.00'))
        Decimal('19.00')
        >>> ExtendedContext.add(Decimal('1E+2'), Decimal('1.01E+4'))
        Decimal('1.02E+4')
        >>> ExtendedContext.add(1, Decimal(2))
        Decimal('3')
        >>> ExtendedContext.add(Decimal(8), 5)
        Decimal('13')
        >>> ExtendedContext.add(5, 5)
        Decimal('10')
        R•RsUnable to convert %s to DecimalN(RR'R»RŽRf(RRRbRË((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytaddŠs
 cCst|j|ƒƒS(N(RWR¯(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt_applyŸscCs|jd|ƒS(sûReturns the same Decimal object.
 
        As we do not have different encodings for the same number, the
        received object already is in its canonical form.
 
        >>> ExtendedContext.canonical(Decimal('2.50'))
        Decimal('2.50')
        R(R<(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR<¢s    cCs%t|dtƒ}|j|d|ƒS(s…Compares values numerically.
 
        If the signs of the operands differ, a value representing each operand
        ('-1' if the operand is less than zero, '0' if the operand is zero or
        negative zero, or '1' if the operand is greater than zero) is used in
        place of that operand for the comparison instead of the actual
        operand.
 
        The comparison is then effected by subtracting the second operand from
        the first and then returning a value according to the result of the
        subtraction: '-1' if the result is less than zero, '0' if the result is
        zero or negative zero, or '1' if the result is greater than zero.
 
        >>> ExtendedContext.compare(Decimal('2.1'), Decimal('3'))
        Decimal('-1')
        >>> ExtendedContext.compare(Decimal('2.1'), Decimal('2.1'))
        Decimal('0')
        >>> ExtendedContext.compare(Decimal('2.1'), Decimal('2.10'))
        Decimal('0')
        >>> ExtendedContext.compare(Decimal('3'), Decimal('2.1'))
        Decimal('1')
        >>> ExtendedContext.compare(Decimal('2.1'), Decimal('-3'))
        Decimal('1')
        >>> ExtendedContext.compare(Decimal('-3'), Decimal('2.1'))
        Decimal('-1')
        >>> ExtendedContext.compare(1, 2)
        Decimal('-1')
        >>> ExtendedContext.compare(Decimal(1), 2)
        Decimal('-1')
        >>> ExtendedContext.compare(1, Decimal(2))
        Decimal('-1')
        R•R(RR'R–(RRRb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR–­s!cCs%t|dtƒ}|j|d|ƒS(sCompares the values of the two operands numerically.
 
        It's pretty much like compare(), but all NaNs signal, with signaling
        NaNs taking precedence over quiet NaNs.
 
        >>> c = ExtendedContext
        >>> c.compare_signal(Decimal('2.1'), Decimal('3'))
        Decimal('-1')
        >>> c.compare_signal(Decimal('2.1'), Decimal('2.1'))
        Decimal('0')
        >>> c.flags[InvalidOperation] = 0
        >>> print c.flags[InvalidOperation]
        0
        >>> c.compare_signal(Decimal('NaN'), Decimal('2.1'))
        Decimal('NaN')
        >>> print c.flags[InvalidOperation]
        1
        >>> c.flags[InvalidOperation] = 0
        >>> print c.flags[InvalidOperation]
        0
        >>> c.compare_signal(Decimal('sNaN'), Decimal('2.1'))
        Decimal('NaN')
        >>> print c.flags[InvalidOperation]
        1
        >>> c.compare_signal(-1, 2)
        Decimal('-1')
        >>> c.compare_signal(Decimal(-1), 2)
        Decimal('-1')
        >>> c.compare_signal(-1, Decimal(2))
        Decimal('-1')
        R•R(RR'R=(RRRb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR=Ñs cCst|dtƒ}|j|ƒS(s+Compares two operands using their abstract representation.
 
        This is not like the standard compare, which use their numerical
        value. Note that a total ordering is defined for all possible abstract
        representations.
 
        >>> ExtendedContext.compare_total(Decimal('12.73'), Decimal('127.9'))
        Decimal('-1')
        >>> ExtendedContext.compare_total(Decimal('-127'),  Decimal('12'))
        Decimal('-1')
        >>> ExtendedContext.compare_total(Decimal('12.30'), Decimal('12.3'))
        Decimal('-1')
        >>> ExtendedContext.compare_total(Decimal('12.30'), Decimal('12.30'))
        Decimal('0')
        >>> ExtendedContext.compare_total(Decimal('12.3'),  Decimal('12.300'))
        Decimal('1')
        >>> ExtendedContext.compare_total(Decimal('12.3'),  Decimal('NaN'))
        Decimal('-1')
        >>> ExtendedContext.compare_total(1, 2)
        Decimal('-1')
        >>> ExtendedContext.compare_total(Decimal(1), 2)
        Decimal('-1')
        >>> ExtendedContext.compare_total(1, Decimal(2))
        Decimal('-1')
        R•(RR'R8(RRRb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR8ôscCst|dtƒ}|j|ƒS(s£Compares two operands using their abstract representation ignoring sign.
 
        Like compare_total, but with operand's sign ignored and assumed to be 0.
        R•(RR'RE(RRRb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyREscCst|dtƒ}|jƒS(sReturns a copy of the operand with the sign set to 0.
 
        >>> ExtendedContext.copy_abs(Decimal('2.1'))
        Decimal('2.1')
        >>> ExtendedContext.copy_abs(Decimal('-100'))
        Decimal('100')
        >>> ExtendedContext.copy_abs(-1)
        Decimal('1')
        R•(RR'R­(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR­s
cCst|dtƒ}t|ƒS(sReturns a copy of the decimal object.
 
        >>> ExtendedContext.copy_decimal(Decimal('2.1'))
        Decimal('2.1')
        >>> ExtendedContext.copy_decimal(Decimal('-1.00'))
        Decimal('-1.00')
        >>> ExtendedContext.copy_decimal(1)
        Decimal('1')
        R•(RR'R(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt copy_decimal&s
cCst|dtƒ}|jƒS(s(Returns a copy of the operand with the sign inverted.
 
        >>> ExtendedContext.copy_negate(Decimal('101.5'))
        Decimal('-101.5')
        >>> ExtendedContext.copy_negate(Decimal('-101.5'))
        Decimal('101.5')
        >>> ExtendedContext.copy_negate(1)
        Decimal('-1')
        R•(RR'R®(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR®3s
cCst|dtƒ}|j|ƒS(sCopies the second operand's sign to the first one.
 
        In detail, it returns a copy of the first operand with the sign
        equal to the sign of the second operand.
 
        >>> ExtendedContext.copy_sign(Decimal( '1.50'), Decimal('7.33'))
        Decimal('1.50')
        >>> ExtendedContext.copy_sign(Decimal('-1.50'), Decimal('7.33'))
        Decimal('1.50')
        >>> ExtendedContext.copy_sign(Decimal( '1.50'), Decimal('-7.33'))
        Decimal('-1.50')
        >>> ExtendedContext.copy_sign(Decimal('-1.50'), Decimal('-7.33'))
        Decimal('-1.50')
        >>> ExtendedContext.copy_sign(1, -2)
        Decimal('-1')
        >>> ExtendedContext.copy_sign(Decimal(1), -2)
        Decimal('-1')
        >>> ExtendedContext.copy_sign(1, Decimal(-2))
        Decimal('-1')
        R•(RR'RF(RRRb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRF@scCsNt|dtƒ}|j|d|ƒ}|tkrFtd|ƒ‚n|SdS(sˆDecimal division in a specified context.
 
        >>> ExtendedContext.divide(Decimal('1'), Decimal('3'))
        Decimal('0.333333333')
        >>> ExtendedContext.divide(Decimal('2'), Decimal('3'))
        Decimal('0.666666667')
        >>> ExtendedContext.divide(Decimal('5'), Decimal('2'))
        Decimal('2.5')
        >>> ExtendedContext.divide(Decimal('1'), Decimal('10'))
        Decimal('0.1')
        >>> ExtendedContext.divide(Decimal('12'), Decimal('12'))
        Decimal('1')
        >>> ExtendedContext.divide(Decimal('8.00'), Decimal('2'))
        Decimal('4.00')
        >>> ExtendedContext.divide(Decimal('2.400'), Decimal('2.0'))
        Decimal('1.20')
        >>> ExtendedContext.divide(Decimal('1000'), Decimal('100'))
        Decimal('10')
        >>> ExtendedContext.divide(Decimal('1000'), Decimal('1'))
        Decimal('1000')
        >>> ExtendedContext.divide(Decimal('2.40E+6'), Decimal('2'))
        Decimal('1.20E+6')
        >>> ExtendedContext.divide(5, 5)
        Decimal('1')
        >>> ExtendedContext.divide(Decimal(5), 5)
        Decimal('1')
        >>> ExtendedContext.divide(5, Decimal(5))
        Decimal('1')
        R•RsUnable to convert %s to DecimalN(RR'R”RŽRf(RRRbRË((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytdivideXs
 cCsNt|dtƒ}|j|d|ƒ}|tkrFtd|ƒ‚n|SdS(s/Divides two numbers and returns the integer part of the result.
 
        >>> ExtendedContext.divide_int(Decimal('2'), Decimal('3'))
        Decimal('0')
        >>> ExtendedContext.divide_int(Decimal('10'), Decimal('3'))
        Decimal('3')
        >>> ExtendedContext.divide_int(Decimal('1'), Decimal('0.3'))
        Decimal('3')
        >>> ExtendedContext.divide_int(10, 3)
        Decimal('3')
        >>> ExtendedContext.divide_int(Decimal(10), 3)
        Decimal('3')
        >>> ExtendedContext.divide_int(10, Decimal(3))
        Decimal('3')
        R•RsUnable to convert %s to DecimalN(RR'RÕRŽRf(RRRbRË((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt
divide_int}s
 cCsNt|dtƒ}|j|d|ƒ}|tkrFtd|ƒ‚n|SdS(sÝReturn (a // b, a % b).
 
        >>> ExtendedContext.divmod(Decimal(8), Decimal(3))
        (Decimal('2'), Decimal('2'))
        >>> ExtendedContext.divmod(Decimal(8), Decimal(4))
        (Decimal('2'), Decimal('0'))
        >>> ExtendedContext.divmod(8, 4)
        (Decimal('2'), Decimal('0'))
        >>> ExtendedContext.divmod(Decimal(8), 4)
        (Decimal('2'), Decimal('0'))
        >>> ExtendedContext.divmod(8, Decimal(4))
        (Decimal('2'), Decimal('0'))
        R•RsUnable to convert %s to DecimalN(RR'RÏRŽRf(RRRbRË((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRÔs
 cCs"t|dtƒ}|jd|ƒS(s#Returns e ** a.
 
        >>> c = ExtendedContext.copy()
        >>> c.Emin = -999
        >>> c.Emax = 999
        >>> c.exp(Decimal('-Infinity'))
        Decimal('0')
        >>> c.exp(Decimal('-1'))
        Decimal('0.367879441')
        >>> c.exp(Decimal('0'))
        Decimal('1')
        >>> c.exp(Decimal('1'))
        Decimal('2.71828183')
        >>> c.exp(Decimal('0.693147181'))
        Decimal('2.00000000')
        >>> c.exp(Decimal('+Infinity'))
        Decimal('Infinity')
        >>> c.exp(10)
        Decimal('22026.4658')
        R•R(RR'RJ(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRJ©scCs(t|dtƒ}|j||d|ƒS(s Returns a multiplied by b, plus c.
 
        The first two operands are multiplied together, using multiply,
        the third operand is then added to the result of that
        multiplication, using add, all with only one final rounding.
 
        >>> ExtendedContext.fma(Decimal('3'), Decimal('5'), Decimal('7'))
        Decimal('22')
        >>> ExtendedContext.fma(Decimal('3'), Decimal('-5'), Decimal('7'))
        Decimal('-8')
        >>> ExtendedContext.fma(Decimal('888565290'), Decimal('1557.96930'), Decimal('-86087.7578'))
        Decimal('1.38435736E+12')
        >>> ExtendedContext.fma(1, 3, 4)
        Decimal('7')
        >>> ExtendedContext.fma(1, Decimal(3), 4)
        Decimal('7')
        >>> ExtendedContext.fma(1, 3, Decimal(4))
        Decimal('7')
        R•R(RR'Rü(RRRbR5((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRüÁscCs
|jƒS(sReturn True if the operand is canonical; otherwise return False.
 
        Currently, the encoding of a Decimal instance is always
        canonical, so this method returns True for any Decimal.
 
        >>> ExtendedContext.is_canonical(Decimal('2.50'))
        True
        (RI(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRIØs    cCst|dtƒ}|jƒS(s,Return True if the operand is finite; otherwise return False.
 
        A Decimal instance is considered finite if it is neither
        infinite nor a NaN.
 
        >>> ExtendedContext.is_finite(Decimal('2.50'))
        True
        >>> ExtendedContext.is_finite(Decimal('-0.3'))
        True
        >>> ExtendedContext.is_finite(Decimal('0'))
        True
        >>> ExtendedContext.is_finite(Decimal('Inf'))
        False
        >>> ExtendedContext.is_finite(Decimal('NaN'))
        False
        >>> ExtendedContext.is_finite(1)
        True
        R•(RR'RJ(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRJãscCst|dtƒ}|jƒS(sUReturn True if the operand is infinite; otherwise return False.
 
        >>> ExtendedContext.is_infinite(Decimal('2.50'))
        False
        >>> ExtendedContext.is_infinite(Decimal('-Inf'))
        True
        >>> ExtendedContext.is_infinite(Decimal('NaN'))
        False
        >>> ExtendedContext.is_infinite(1)
        False
        R•(RR'R-(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR-ùs cCst|dtƒ}|jƒS(sOReturn True if the operand is a qNaN or sNaN;
        otherwise return False.
 
        >>> ExtendedContext.is_nan(Decimal('2.50'))
        False
        >>> ExtendedContext.is_nan(Decimal('NaN'))
        True
        >>> ExtendedContext.is_nan(Decimal('-sNaN'))
        True
        >>> ExtendedContext.is_nan(1)
        False
        R•(RR'R—(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR—s cCs"t|dtƒ}|jd|ƒS(sïReturn True if the operand is a normal number;
        otherwise return False.
 
        >>> c = ExtendedContext.copy()
        >>> c.Emin = -999
        >>> c.Emax = 999
        >>> c.is_normal(Decimal('2.50'))
        True
        >>> c.is_normal(Decimal('0.1E-999'))
        False
        >>> c.is_normal(Decimal('0.00'))
        False
        >>> c.is_normal(Decimal('-Inf'))
        False
        >>> c.is_normal(Decimal('NaN'))
        False
        >>> c.is_normal(1)
        True
        R•R(RR'RK(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRKscCst|dtƒ}|jƒS(sHReturn True if the operand is a quiet NaN; otherwise return False.
 
        >>> ExtendedContext.is_qnan(Decimal('2.50'))
        False
        >>> ExtendedContext.is_qnan(Decimal('NaN'))
        True
        >>> ExtendedContext.is_qnan(Decimal('sNaN'))
        False
        >>> ExtendedContext.is_qnan(1)
        False
        R•(RR'R(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR/s cCst|dtƒ}|jƒS(sReturn True if the operand is negative; otherwise return False.
 
        >>> ExtendedContext.is_signed(Decimal('2.50'))
        False
        >>> ExtendedContext.is_signed(Decimal('-12'))
        True
        >>> ExtendedContext.is_signed(Decimal('-0'))
        True
        >>> ExtendedContext.is_signed(8)
        False
        >>> ExtendedContext.is_signed(-8)
        True
        R•(RR'RL(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRL>scCst|dtƒ}|jƒS(sTReturn True if the operand is a signaling NaN;
        otherwise return False.
 
        >>> ExtendedContext.is_snan(Decimal('2.50'))
        False
        >>> ExtendedContext.is_snan(Decimal('NaN'))
        False
        >>> ExtendedContext.is_snan(Decimal('sNaN'))
        True
        >>> ExtendedContext.is_snan(1)
        False
        R•(RR'R€(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR€Os cCs"t|dtƒ}|jd|ƒS(sôReturn True if the operand is subnormal; otherwise return False.
 
        >>> c = ExtendedContext.copy()
        >>> c.Emin = -999
        >>> c.Emax = 999
        >>> c.is_subnormal(Decimal('2.50'))
        False
        >>> c.is_subnormal(Decimal('0.1E-999'))
        True
        >>> c.is_subnormal(Decimal('0.00'))
        False
        >>> c.is_subnormal(Decimal('-Inf'))
        False
        >>> c.is_subnormal(Decimal('NaN'))
        False
        >>> c.is_subnormal(1)
        False
        R•R(RR'RM(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRM_scCst|dtƒ}|jƒS(suReturn True if the operand is a zero; otherwise return False.
 
        >>> ExtendedContext.is_zero(Decimal('0'))
        True
        >>> ExtendedContext.is_zero(Decimal('2.50'))
        False
        >>> ExtendedContext.is_zero(Decimal('-0E+2'))
        True
        >>> ExtendedContext.is_zero(1)
        False
        >>> ExtendedContext.is_zero(0)
        True
        R•(RR'RN(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRNuscCs"t|dtƒ}|jd|ƒS(sþReturns the natural (base e) logarithm of the operand.
 
        >>> c = ExtendedContext.copy()
        >>> c.Emin = -999
        >>> c.Emax = 999
        >>> c.ln(Decimal('0'))
        Decimal('-Infinity')
        >>> c.ln(Decimal('1.000'))
        Decimal('0')
        >>> c.ln(Decimal('2.71828183'))
        Decimal('1.00000000')
        >>> c.ln(Decimal('10'))
        Decimal('2.30258509')
        >>> c.ln(Decimal('+Infinity'))
        Decimal('Infinity')
        >>> c.ln(1)
        Decimal('0')
        R•R(RR'RU(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRU†scCs"t|dtƒ}|jd|ƒS(s§Returns the base 10 logarithm of the operand.
 
        >>> c = ExtendedContext.copy()
        >>> c.Emin = -999
        >>> c.Emax = 999
        >>> c.log10(Decimal('0'))
        Decimal('-Infinity')
        >>> c.log10(Decimal('0.001'))
        Decimal('-3')
        >>> c.log10(Decimal('1.000'))
        Decimal('0')
        >>> c.log10(Decimal('2'))
        Decimal('0.301029996')
        >>> c.log10(Decimal('10'))
        Decimal('1')
        >>> c.log10(Decimal('70'))
        Decimal('1.84509804')
        >>> c.log10(Decimal('+Infinity'))
        Decimal('Infinity')
        >>> c.log10(0)
        Decimal('-Infinity')
        >>> c.log10(1)
        Decimal('0')
        R•R(RR'RX(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRXœscCs"t|dtƒ}|jd|ƒS(s4 Returns the exponent of the magnitude of the operand's MSD.
 
        The result is the integer which is the exponent of the magnitude
        of the most significant digit of the operand (as though the
        operand were truncated to a single digit while maintaining the
        value of that digit and without limiting the resulting exponent).
 
        >>> ExtendedContext.logb(Decimal('250'))
        Decimal('2')
        >>> ExtendedContext.logb(Decimal('2.50'))
        Decimal('0')
        >>> ExtendedContext.logb(Decimal('0.03'))
        Decimal('-2')
        >>> ExtendedContext.logb(Decimal('0'))
        Decimal('-Infinity')
        >>> ExtendedContext.logb(1)
        Decimal('0')
        >>> ExtendedContext.logb(10)
        Decimal('1')
        >>> ExtendedContext.logb(100)
        Decimal('2')
        R•R(RR'RY(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRY¸scCs%t|dtƒ}|j|d|ƒS(s”Applies the logical operation 'and' between each operand's digits.
 
        The operands must be both logical numbers.
 
        >>> ExtendedContext.logical_and(Decimal('0'), Decimal('0'))
        Decimal('0')
        >>> ExtendedContext.logical_and(Decimal('0'), Decimal('1'))
        Decimal('0')
        >>> ExtendedContext.logical_and(Decimal('1'), Decimal('0'))
        Decimal('0')
        >>> ExtendedContext.logical_and(Decimal('1'), Decimal('1'))
        Decimal('1')
        >>> ExtendedContext.logical_and(Decimal('1100'), Decimal('1010'))
        Decimal('1000')
        >>> ExtendedContext.logical_and(Decimal('1111'), Decimal('10'))
        Decimal('10')
        >>> ExtendedContext.logical_and(110, 1101)
        Decimal('100')
        >>> ExtendedContext.logical_and(Decimal(110), 1101)
        Decimal('100')
        >>> ExtendedContext.logical_and(110, Decimal(1101))
        Decimal('100')
        R•R(RR'Rc(RRRb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRcÒscCs"t|dtƒ}|jd|ƒS(s Invert all the digits in the operand.
 
        The operand must be a logical number.
 
        >>> ExtendedContext.logical_invert(Decimal('0'))
        Decimal('111111111')
        >>> ExtendedContext.logical_invert(Decimal('1'))
        Decimal('111111110')
        >>> ExtendedContext.logical_invert(Decimal('111111111'))
        Decimal('0')
        >>> ExtendedContext.logical_invert(Decimal('101010101'))
        Decimal('10101010')
        >>> ExtendedContext.logical_invert(1101)
        Decimal('111110010')
        R•R(RR'Re(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyReíscCs%t|dtƒ}|j|d|ƒS(sApplies the logical operation 'or' between each operand's digits.
 
        The operands must be both logical numbers.
 
        >>> ExtendedContext.logical_or(Decimal('0'), Decimal('0'))
        Decimal('0')
        >>> ExtendedContext.logical_or(Decimal('0'), Decimal('1'))
        Decimal('1')
        >>> ExtendedContext.logical_or(Decimal('1'), Decimal('0'))
        Decimal('1')
        >>> ExtendedContext.logical_or(Decimal('1'), Decimal('1'))
        Decimal('1')
        >>> ExtendedContext.logical_or(Decimal('1100'), Decimal('1010'))
        Decimal('1110')
        >>> ExtendedContext.logical_or(Decimal('1110'), Decimal('10'))
        Decimal('1110')
        >>> ExtendedContext.logical_or(110, 1101)
        Decimal('1111')
        >>> ExtendedContext.logical_or(Decimal(110), 1101)
        Decimal('1111')
        >>> ExtendedContext.logical_or(110, Decimal(1101))
        Decimal('1111')
        R•R(RR'Rf(RRRb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRfscCs%t|dtƒ}|j|d|ƒS(s˜Applies the logical operation 'xor' between each operand's digits.
 
        The operands must be both logical numbers.
 
        >>> ExtendedContext.logical_xor(Decimal('0'), Decimal('0'))
        Decimal('0')
        >>> ExtendedContext.logical_xor(Decimal('0'), Decimal('1'))
        Decimal('1')
        >>> ExtendedContext.logical_xor(Decimal('1'), Decimal('0'))
        Decimal('1')
        >>> ExtendedContext.logical_xor(Decimal('1'), Decimal('1'))
        Decimal('0')
        >>> ExtendedContext.logical_xor(Decimal('1100'), Decimal('1010'))
        Decimal('110')
        >>> ExtendedContext.logical_xor(Decimal('1111'), Decimal('10'))
        Decimal('1101')
        >>> ExtendedContext.logical_xor(110, 1101)
        Decimal('1011')
        >>> ExtendedContext.logical_xor(Decimal(110), 1101)
        Decimal('1011')
        >>> ExtendedContext.logical_xor(110, Decimal(1101))
        Decimal('1011')
        R•R(RR'Rd(RRRb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRdscCs%t|dtƒ}|j|d|ƒS(s³max compares two values numerically and returns the maximum.
 
        If either operand is a NaN then the general rules apply.
        Otherwise, the operands are compared as though by the compare
        operation.  If they are numerically equal then the left-hand operand
        is chosen as the result.  Otherwise the maximum (closer to positive
        infinity) of the two operands is chosen as the result.
 
        >>> ExtendedContext.max(Decimal('3'), Decimal('2'))
        Decimal('3')
        >>> ExtendedContext.max(Decimal('-10'), Decimal('3'))
        Decimal('3')
        >>> ExtendedContext.max(Decimal('1.0'), Decimal('1'))
        Decimal('1')
        >>> ExtendedContext.max(Decimal('7'), Decimal('NaN'))
        Decimal('7')
        >>> ExtendedContext.max(1, 2)
        Decimal('2')
        >>> ExtendedContext.max(Decimal(1), 2)
        Decimal('2')
        >>> ExtendedContext.max(1, Decimal(2))
        Decimal('2')
        R•R(RR'Rµ(RRRb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRµ6scCs%t|dtƒ}|j|d|ƒS(sÇCompares the values numerically with their sign ignored.
 
        >>> ExtendedContext.max_mag(Decimal('7'), Decimal('NaN'))
        Decimal('7')
        >>> ExtendedContext.max_mag(Decimal('7'), Decimal('-10'))
        Decimal('-10')
        >>> ExtendedContext.max_mag(1, -2)
        Decimal('-2')
        >>> ExtendedContext.max_mag(Decimal(1), -2)
        Decimal('-2')
        >>> ExtendedContext.max_mag(1, Decimal(-2))
        Decimal('-2')
        R•R(RR'Rg(RRRb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRgQscCs%t|dtƒ}|j|d|ƒS(s¸min compares two values numerically and returns the minimum.
 
        If either operand is a NaN then the general rules apply.
        Otherwise, the operands are compared as though by the compare
        operation.  If they are numerically equal then the left-hand operand
        is chosen as the result.  Otherwise the minimum (closer to negative
        infinity) of the two operands is chosen as the result.
 
        >>> ExtendedContext.min(Decimal('3'), Decimal('2'))
        Decimal('2')
        >>> ExtendedContext.min(Decimal('-10'), Decimal('3'))
        Decimal('-10')
        >>> ExtendedContext.min(Decimal('1.0'), Decimal('1'))
        Decimal('1.0')
        >>> ExtendedContext.min(Decimal('7'), Decimal('NaN'))
        Decimal('7')
        >>> ExtendedContext.min(1, 2)
        Decimal('1')
        >>> ExtendedContext.min(Decimal(1), 2)
        Decimal('1')
        >>> ExtendedContext.min(1, Decimal(29))
        Decimal('1')
        R•R(RR'R´(RRRb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR´bscCs%t|dtƒ}|j|d|ƒS(sÄCompares the values numerically with their sign ignored.
 
        >>> ExtendedContext.min_mag(Decimal('3'), Decimal('-2'))
        Decimal('-2')
        >>> ExtendedContext.min_mag(Decimal('-3'), Decimal('NaN'))
        Decimal('-3')
        >>> ExtendedContext.min_mag(1, -2)
        Decimal('1')
        >>> ExtendedContext.min_mag(Decimal(1), -2)
        Decimal('1')
        >>> ExtendedContext.min_mag(1, Decimal(-2))
        Decimal('1')
        R•R(RR'Rh(RRRb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRh}scCs"t|dtƒ}|jd|ƒS(sÎMinus corresponds to unary prefix minus in Python.
 
        The operation is evaluated using the same rules as subtract; the
        operation minus(a) is calculated as subtract('0', a) where the '0'
        has the same exponent as the operand.
 
        >>> ExtendedContext.minus(Decimal('1.3'))
        Decimal('-1.3')
        >>> ExtendedContext.minus(Decimal('-1.3'))
        Decimal('1.3')
        >>> ExtendedContext.minus(1)
        Decimal('-1')
        R•R(RR'R°(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytminusŽscCsNt|dtƒ}|j|d|ƒ}|tkrFtd|ƒ‚n|SdS(sàmultiply multiplies two operands.
 
        If either operand is a special value then the general rules apply.
        Otherwise, the operands are multiplied together
        ('long multiplication'), resulting in a number which may be as long as
        the sum of the lengths of the two operands.
 
        >>> ExtendedContext.multiply(Decimal('1.20'), Decimal('3'))
        Decimal('3.60')
        >>> ExtendedContext.multiply(Decimal('7'), Decimal('3'))
        Decimal('21')
        >>> ExtendedContext.multiply(Decimal('0.9'), Decimal('0.8'))
        Decimal('0.72')
        >>> ExtendedContext.multiply(Decimal('0.9'), Decimal('-0'))
        Decimal('-0.0')
        >>> ExtendedContext.multiply(Decimal('654321'), Decimal('654321'))
        Decimal('4.28135971E+11')
        >>> ExtendedContext.multiply(7, 7)
        Decimal('49')
        >>> ExtendedContext.multiply(Decimal(7), 7)
        Decimal('49')
        >>> ExtendedContext.multiply(7, Decimal(7))
        Decimal('49')
        R•RsUnable to convert %s to DecimalN(RR'RÁRŽRf(RRRbRË((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytmultiplyŸs
 cCs"t|dtƒ}|jd|ƒS(s"Returns the largest representable number smaller than a.
 
        >>> c = ExtendedContext.copy()
        >>> c.Emin = -999
        >>> c.Emax = 999
        >>> ExtendedContext.next_minus(Decimal('1'))
        Decimal('0.999999999')
        >>> c.next_minus(Decimal('1E-1007'))
        Decimal('0E-1007')
        >>> ExtendedContext.next_minus(Decimal('-1.00000003'))
        Decimal('-1.00000004')
        >>> c.next_minus(Decimal('Infinity'))
        Decimal('9.99999999E+999')
        >>> c.next_minus(1)
        Decimal('0.999999999')
        R•R(RR'Rk(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRk¿scCs"t|dtƒ}|jd|ƒS(sReturns the smallest representable number larger than a.
 
        >>> c = ExtendedContext.copy()
        >>> c.Emin = -999
        >>> c.Emax = 999
        >>> ExtendedContext.next_plus(Decimal('1'))
        Decimal('1.00000001')
        >>> c.next_plus(Decimal('-1E-1007'))
        Decimal('-0E-1007')
        >>> ExtendedContext.next_plus(Decimal('-1.00000003'))
        Decimal('-1.00000002')
        >>> c.next_plus(Decimal('-Infinity'))
        Decimal('-9.99999999E+999')
        >>> c.next_plus(1)
        Decimal('1.00000001')
        R•R(RR'Rl(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRlÓscCs%t|dtƒ}|j|d|ƒS(s´Returns the number closest to a, in direction towards b.
 
        The result is the closest representable number from the first
        operand (but not the first operand) that is in the direction
        towards the second operand, unless the operands have the same
        value.
 
        >>> c = ExtendedContext.copy()
        >>> c.Emin = -999
        >>> c.Emax = 999
        >>> c.next_toward(Decimal('1'), Decimal('2'))
        Decimal('1.00000001')
        >>> c.next_toward(Decimal('-1E-1007'), Decimal('1'))
        Decimal('-0E-1007')
        >>> c.next_toward(Decimal('-1.00000003'), Decimal('0'))
        Decimal('-1.00000002')
        >>> c.next_toward(Decimal('1'), Decimal('0'))
        Decimal('0.999999999')
        >>> c.next_toward(Decimal('1E-1007'), Decimal('-100'))
        Decimal('0E-1007')
        >>> c.next_toward(Decimal('-1.00000003'), Decimal('-10'))
        Decimal('-1.00000004')
        >>> c.next_toward(Decimal('0.00'), Decimal('-0.0000'))
        Decimal('-0.00')
        >>> c.next_toward(0, 1)
        Decimal('1E-1007')
        >>> c.next_toward(Decimal(0), 1)
        Decimal('1E-1007')
        >>> c.next_toward(0, Decimal(1))
        Decimal('1E-1007')
        R•R(RR'Rn(RRRb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRnçs cCs"t|dtƒ}|jd|ƒS(s³normalize reduces an operand to its simplest form.
 
        Essentially a plus operation with all trailing zeros removed from the
        result.
 
        >>> ExtendedContext.normalize(Decimal('2.1'))
        Decimal('2.1')
        >>> ExtendedContext.normalize(Decimal('-2.0'))
        Decimal('-2')
        >>> ExtendedContext.normalize(Decimal('1.200'))
        Decimal('1.2')
        >>> ExtendedContext.normalize(Decimal('-120'))
        Decimal('-1.2E+2')
        >>> ExtendedContext.normalize(Decimal('120.00'))
        Decimal('1.2E+2')
        >>> ExtendedContext.normalize(Decimal('0.00'))
        Decimal('0')
        >>> ExtendedContext.normalize(6)
        Decimal('6')
        R•R(RR'R)(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR)
scCs"t|dtƒ}|jd|ƒS(säReturns an indication of the class of the operand.
 
        The class is one of the following strings:
          -sNaN
          -NaN
          -Infinity
          -Normal
          -Subnormal
          -Zero
          +Zero
          +Subnormal
          +Normal
          +Infinity
 
        >>> c = Context(ExtendedContext)
        >>> c.Emin = -999
        >>> c.Emax = 999
        >>> c.number_class(Decimal('Infinity'))
        '+Infinity'
        >>> c.number_class(Decimal('1E-10'))
        '+Normal'
        >>> c.number_class(Decimal('2.50'))
        '+Normal'
        >>> c.number_class(Decimal('0.1E-999'))
        '+Subnormal'
        >>> c.number_class(Decimal('0'))
        '+Zero'
        >>> c.number_class(Decimal('-0'))
        '-Zero'
        >>> c.number_class(Decimal('-0.1E-999'))
        '-Subnormal'
        >>> c.number_class(Decimal('-1E-10'))
        '-Normal'
        >>> c.number_class(Decimal('-2.50'))
        '-Normal'
        >>> c.number_class(Decimal('-Infinity'))
        '-Infinity'
        >>> c.number_class(Decimal('NaN'))
        'NaN'
        >>> c.number_class(Decimal('-NaN'))
        'NaN'
        >>> c.number_class(Decimal('sNaN'))
        'sNaN'
        >>> c.number_class(123)
        '+Normal'
        R•R(RR'Rp(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRp"s/cCs"t|dtƒ}|jd|ƒS(s¿Plus corresponds to unary prefix plus in Python.
 
        The operation is evaluated using the same rules as add; the
        operation plus(a) is calculated as add('0', a) where the '0'
        has the same exponent as the operand.
 
        >>> ExtendedContext.plus(Decimal('1.3'))
        Decimal('1.3')
        >>> ExtendedContext.plus(Decimal('-1.3'))
        Decimal('-1.3')
        >>> ExtendedContext.plus(-1)
        Decimal('-1')
        R•R(RR'R±(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytplusTscCsQt|dtƒ}|j||d|ƒ}|tkrItd|ƒ‚n|SdS(s Raises a to the power of b, to modulo if given.
 
        With two arguments, compute a**b.  If a is negative then b
        must be integral.  The result will be inexact unless b is
        integral and the result is finite and can be expressed exactly
        in 'precision' digits.
 
        With three arguments, compute (a**b) % modulo.  For the
        three argument form, the following restrictions on the
        arguments hold:
 
         - all three arguments must be integral
         - b must be nonnegative
         - at least one of a or b must be nonzero
         - modulo must be nonzero and have at most 'precision' digits
 
        The result of pow(a, b, modulo) is identical to the result
        that would be obtained by computing (a**b) % modulo with
        unbounded precision, but is computed more efficiently.  It is
        always exact.
 
        >>> c = ExtendedContext.copy()
        >>> c.Emin = -999
        >>> c.Emax = 999
        >>> c.power(Decimal('2'), Decimal('3'))
        Decimal('8')
        >>> c.power(Decimal('-2'), Decimal('3'))
        Decimal('-8')
        >>> c.power(Decimal('2'), Decimal('-3'))
        Decimal('0.125')
        >>> c.power(Decimal('1.7'), Decimal('8'))
        Decimal('69.7575744')
        >>> c.power(Decimal('10'), Decimal('0.301029996'))
        Decimal('2.00000000')
        >>> c.power(Decimal('Infinity'), Decimal('-1'))
        Decimal('0')
        >>> c.power(Decimal('Infinity'), Decimal('0'))
        Decimal('1')
        >>> c.power(Decimal('Infinity'), Decimal('1'))
        Decimal('Infinity')
        >>> c.power(Decimal('-Infinity'), Decimal('-1'))
        Decimal('-0')
        >>> c.power(Decimal('-Infinity'), Decimal('0'))
        Decimal('1')
        >>> c.power(Decimal('-Infinity'), Decimal('1'))
        Decimal('-Infinity')
        >>> c.power(Decimal('-Infinity'), Decimal('2'))
        Decimal('Infinity')
        >>> c.power(Decimal('0'), Decimal('0'))
        Decimal('NaN')
 
        >>> c.power(Decimal('3'), Decimal('7'), Decimal('16'))
        Decimal('11')
        >>> c.power(Decimal('-3'), Decimal('7'), Decimal('16'))
        Decimal('-11')
        >>> c.power(Decimal('-3'), Decimal('8'), Decimal('16'))
        Decimal('1')
        >>> c.power(Decimal('3'), Decimal('7'), Decimal('-16'))
        Decimal('11')
        >>> c.power(Decimal('23E12345'), Decimal('67E189'), Decimal('123456789'))
        Decimal('11729830')
        >>> c.power(Decimal('-0'), Decimal('17'), Decimal('1729'))
        Decimal('-0')
        >>> c.power(Decimal('-23'), Decimal('0'), Decimal('65537'))
        Decimal('1')
        >>> ExtendedContext.power(7, 7)
        Decimal('823543')
        >>> ExtendedContext.power(Decimal(7), 7)
        Decimal('823543')
        >>> ExtendedContext.power(7, Decimal(7), 2)
        Decimal('1')
        R•RsUnable to convert %s to DecimalN(RR'R%RŽRf(RRRbRÿRË((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytpoweres
I cCs%t|dtƒ}|j|d|ƒS(s
Returns a value equal to 'a' (rounded), having the exponent of 'b'.
 
        The coefficient of the result is derived from that of the left-hand
        operand.  It may be rounded using the current rounding setting (if the
        exponent is being increased), multiplied by a positive power of ten (if
        the exponent is being decreased), or is unchanged (if the exponent is
        already equal to that of the right-hand operand).
 
        Unlike other operations, if the length of the coefficient after the
        quantize operation would be greater than precision then an Invalid
        operation condition is raised.  This guarantees that, unless there is
        an error condition, the exponent of the result of a quantize is always
        equal to that of the right-hand operand.
 
        Also unlike other operations, quantize will never raise Underflow, even
        if the result is subnormal and inexact.
 
        >>> ExtendedContext.quantize(Decimal('2.17'), Decimal('0.001'))
        Decimal('2.170')
        >>> ExtendedContext.quantize(Decimal('2.17'), Decimal('0.01'))
        Decimal('2.17')
        >>> ExtendedContext.quantize(Decimal('2.17'), Decimal('0.1'))
        Decimal('2.2')
        >>> ExtendedContext.quantize(Decimal('2.17'), Decimal('1e+0'))
        Decimal('2')
        >>> ExtendedContext.quantize(Decimal('2.17'), Decimal('1e+1'))
        Decimal('0E+1')
        >>> ExtendedContext.quantize(Decimal('-Inf'), Decimal('Infinity'))
        Decimal('-Infinity')
        >>> ExtendedContext.quantize(Decimal('2'), Decimal('Infinity'))
        Decimal('NaN')
        >>> ExtendedContext.quantize(Decimal('-0.1'), Decimal('1'))
        Decimal('-0')
        >>> ExtendedContext.quantize(Decimal('-0'), Decimal('1e+5'))
        Decimal('-0E+5')
        >>> ExtendedContext.quantize(Decimal('+35236450.6'), Decimal('1e-2'))
        Decimal('NaN')
        >>> ExtendedContext.quantize(Decimal('-35236450.6'), Decimal('1e-2'))
        Decimal('NaN')
        >>> ExtendedContext.quantize(Decimal('217'), Decimal('1e-1'))
        Decimal('217.0')
        >>> ExtendedContext.quantize(Decimal('217'), Decimal('1e-0'))
        Decimal('217')
        >>> ExtendedContext.quantize(Decimal('217'), Decimal('1e+1'))
        Decimal('2.2E+2')
        >>> ExtendedContext.quantize(Decimal('217'), Decimal('1e+2'))
        Decimal('2E+2')
        >>> ExtendedContext.quantize(1, 2)
        Decimal('1')
        >>> ExtendedContext.quantize(Decimal(1), 2)
        Decimal('1')
        >>> ExtendedContext.quantize(1, Decimal(2))
        Decimal('1')
        R•R(RR'R,(RRRb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR,µs7cCs
tdƒS(skJust returns 10, as this is Decimal, :)
 
        >>> ExtendedContext.radix()
        Decimal('10')
        i
(R(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRqïscCsNt|dtƒ}|j|d|ƒ}|tkrFtd|ƒ‚n|SdS(sReturns the remainder from integer division.
 
        The result is the residue of the dividend after the operation of
        calculating integer division as described for divide-integer, rounded
        to precision digits if necessary.  The sign of the result, if
        non-zero, is the same as that of the original dividend.
 
        This operation will fail under the same conditions as integer division
        (that is, if integer division on the same two operands would fail, the
        remainder cannot be calculated).
 
        >>> ExtendedContext.remainder(Decimal('2.1'), Decimal('3'))
        Decimal('2.1')
        >>> ExtendedContext.remainder(Decimal('10'), Decimal('3'))
        Decimal('1')
        >>> ExtendedContext.remainder(Decimal('-10'), Decimal('3'))
        Decimal('-1')
        >>> ExtendedContext.remainder(Decimal('10.2'), Decimal('1'))
        Decimal('0.2')
        >>> ExtendedContext.remainder(Decimal('10'), Decimal('0.3'))
        Decimal('0.1')
        >>> ExtendedContext.remainder(Decimal('3.6'), Decimal('1.3'))
        Decimal('1.0')
        >>> ExtendedContext.remainder(22, 6)
        Decimal('4')
        >>> ExtendedContext.remainder(Decimal(22), 6)
        Decimal('4')
        >>> ExtendedContext.remainder(22, Decimal(6))
        Decimal('4')
        R•RsUnable to convert %s to DecimalN(RR'RÑRŽRf(RRRbRË((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRÆ÷s
 cCs%t|dtƒ}|j|d|ƒS(sGReturns to be "a - b * n", where n is the integer nearest the exact
        value of "x / b" (if two integers are equally near then the even one
        is chosen).  If the result is equal to 0 then its sign will be the
        sign of a.
 
        This operation will fail under the same conditions as integer division
        (that is, if integer division on the same two operands would fail, the
        remainder cannot be calculated).
 
        >>> ExtendedContext.remainder_near(Decimal('2.1'), Decimal('3'))
        Decimal('-0.9')
        >>> ExtendedContext.remainder_near(Decimal('10'), Decimal('6'))
        Decimal('-2')
        >>> ExtendedContext.remainder_near(Decimal('10'), Decimal('3'))
        Decimal('1')
        >>> ExtendedContext.remainder_near(Decimal('-10'), Decimal('3'))
        Decimal('-1')
        >>> ExtendedContext.remainder_near(Decimal('10.2'), Decimal('1'))
        Decimal('0.2')
        >>> ExtendedContext.remainder_near(Decimal('10'), Decimal('0.3'))
        Decimal('0.1')
        >>> ExtendedContext.remainder_near(Decimal('3.6'), Decimal('1.3'))
        Decimal('-0.3')
        >>> ExtendedContext.remainder_near(3, 11)
        Decimal('3')
        >>> ExtendedContext.remainder_near(Decimal(3), 11)
        Decimal('3')
        >>> ExtendedContext.remainder_near(3, Decimal(11))
        Decimal('3')
        R•R(RR'RÔ(RRRb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRÔscCs%t|dtƒ}|j|d|ƒS(sNReturns a rotated copy of a, b times.
 
        The coefficient of the result is a rotated copy of the digits in
        the coefficient of the first operand.  The number of places of
        rotation is taken from the absolute value of the second operand,
        with the rotation being to the left if the second operand is
        positive or to the right otherwise.
 
        >>> ExtendedContext.rotate(Decimal('34'), Decimal('8'))
        Decimal('400000003')
        >>> ExtendedContext.rotate(Decimal('12'), Decimal('9'))
        Decimal('12')
        >>> ExtendedContext.rotate(Decimal('123456789'), Decimal('-2'))
        Decimal('891234567')
        >>> ExtendedContext.rotate(Decimal('123456789'), Decimal('0'))
        Decimal('123456789')
        >>> ExtendedContext.rotate(Decimal('123456789'), Decimal('+2'))
        Decimal('345678912')
        >>> ExtendedContext.rotate(1333333, 1)
        Decimal('13333330')
        >>> ExtendedContext.rotate(Decimal(1333333), 1)
        Decimal('13333330')
        >>> ExtendedContext.rotate(1333333, Decimal(1))
        Decimal('13333330')
        R•R(RR'Rv(RRRb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRv?scCst|dtƒ}|j|ƒS(sÝReturns True if the two operands have the same exponent.
 
        The result is never affected by either the sign or the coefficient of
        either operand.
 
        >>> ExtendedContext.same_quantum(Decimal('2.17'), Decimal('0.001'))
        False
        >>> ExtendedContext.same_quantum(Decimal('2.17'), Decimal('0.01'))
        True
        >>> ExtendedContext.same_quantum(Decimal('2.17'), Decimal('1'))
        False
        >>> ExtendedContext.same_quantum(Decimal('Inf'), Decimal('-Inf'))
        True
        >>> ExtendedContext.same_quantum(10000, -1)
        True
        >>> ExtendedContext.same_quantum(Decimal(10000), -1)
        True
        >>> ExtendedContext.same_quantum(10000, Decimal(-1))
        True
        R•(RR'R.(RRRb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR.\scCs%t|dtƒ}|j|d|ƒS(s3Returns the first operand after adding the second value its exp.
 
        >>> ExtendedContext.scaleb(Decimal('7.50'), Decimal('-2'))
        Decimal('0.0750')
        >>> ExtendedContext.scaleb(Decimal('7.50'), Decimal('0'))
        Decimal('7.50')
        >>> ExtendedContext.scaleb(Decimal('7.50'), Decimal('3'))
        Decimal('7.50E+3')
        >>> ExtendedContext.scaleb(1, 4)
        Decimal('1E+4')
        >>> ExtendedContext.scaleb(Decimal(1), 4)
        Decimal('1E+4')
        >>> ExtendedContext.scaleb(1, Decimal(4))
        Decimal('1E+4')
        R•R(RR'Ry(RRRb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRytscCs%t|dtƒ}|j|d|ƒS(s{Returns a shifted copy of a, b times.
 
        The coefficient of the result is a shifted copy of the digits
        in the coefficient of the first operand.  The number of places
        to shift is taken from the absolute value of the second operand,
        with the shift being to the left if the second operand is
        positive or to the right otherwise.  Digits shifted into the
        coefficient are zeros.
 
        >>> ExtendedContext.shift(Decimal('34'), Decimal('8'))
        Decimal('400000000')
        >>> ExtendedContext.shift(Decimal('12'), Decimal('9'))
        Decimal('0')
        >>> ExtendedContext.shift(Decimal('123456789'), Decimal('-2'))
        Decimal('1234567')
        >>> ExtendedContext.shift(Decimal('123456789'), Decimal('0'))
        Decimal('123456789')
        >>> ExtendedContext.shift(Decimal('123456789'), Decimal('+2'))
        Decimal('345678900')
        >>> ExtendedContext.shift(88888888, 2)
        Decimal('888888800')
        >>> ExtendedContext.shift(Decimal(88888888), 2)
        Decimal('888888800')
        >>> ExtendedContext.shift(88888888, Decimal(2))
        Decimal('888888800')
        R•R(RR'RÅ(RRRb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRŇscCs"t|dtƒ}|jd|ƒS(s¦Square root of a non-negative number to context precision.
 
        If the result must be inexact, it is rounded using the round-half-even
        algorithm.
 
        >>> ExtendedContext.sqrt(Decimal('0'))
        Decimal('0')
        >>> ExtendedContext.sqrt(Decimal('-0'))
        Decimal('-0')
        >>> ExtendedContext.sqrt(Decimal('0.39'))
        Decimal('0.624499800')
        >>> ExtendedContext.sqrt(Decimal('100'))
        Decimal('10')
        >>> ExtendedContext.sqrt(Decimal('1'))
        Decimal('1')
        >>> ExtendedContext.sqrt(Decimal('1.0'))
        Decimal('1.0')
        >>> ExtendedContext.sqrt(Decimal('1.00'))
        Decimal('1.0')
        >>> ExtendedContext.sqrt(Decimal('7'))
        Decimal('2.64575131')
        >>> ExtendedContext.sqrt(Decimal('10'))
        Decimal('3.16227766')
        >>> ExtendedContext.sqrt(2)
        Decimal('1.41421356')
        >>> ExtendedContext.prec
        9
        R•R(RR'R7(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR7¥scCsNt|dtƒ}|j|d|ƒ}|tkrFtd|ƒ‚n|SdS(s&Return the difference between the two operands.
 
        >>> ExtendedContext.subtract(Decimal('1.3'), Decimal('1.07'))
        Decimal('0.23')
        >>> ExtendedContext.subtract(Decimal('1.3'), Decimal('1.30'))
        Decimal('0.00')
        >>> ExtendedContext.subtract(Decimal('1.3'), Decimal('2.07'))
        Decimal('-0.77')
        >>> ExtendedContext.subtract(8, 5)
        Decimal('3')
        >>> ExtendedContext.subtract(Decimal(8), 5)
        Decimal('3')
        >>> ExtendedContext.subtract(8, Decimal(5))
        Decimal('3')
        R•RsUnable to convert %s to DecimalN(RR'R¼RŽRf(RRRbRË((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pytsubtractÅs
 cCs"t|dtƒ}|jd|ƒS(syConverts a number to a string, using scientific notation.
 
        The operation is not affected by the context.
        R•R(RR'R¬(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR¬ÜscCs"t|dtƒ}|jd|ƒS(syConverts a number to a string, using scientific notation.
 
        The operation is not affected by the context.
        R•R(RR'R«(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt to_sci_stringäscCs"t|dtƒ}|jd|ƒS(skRounds to an integer.
 
        When the operand has a negative exponent, the result is the same
        as using the quantize() operation using the given operand as the
        left-hand-operand, 1E+0 as the right-hand-operand, and the precision
        of the operand as the precision setting; Inexact and Rounded flags
        are allowed in this operation.  The rounding mode is taken from the
        context.
 
        >>> ExtendedContext.to_integral_exact(Decimal('2.1'))
        Decimal('2')
        >>> ExtendedContext.to_integral_exact(Decimal('100'))
        Decimal('100')
        >>> ExtendedContext.to_integral_exact(Decimal('100.0'))
        Decimal('100')
        >>> ExtendedContext.to_integral_exact(Decimal('101.5'))
        Decimal('102')
        >>> ExtendedContext.to_integral_exact(Decimal('-101.5'))
        Decimal('-102')
        >>> ExtendedContext.to_integral_exact(Decimal('10E+5'))
        Decimal('1.0E+6')
        >>> ExtendedContext.to_integral_exact(Decimal('7.89E+77'))
        Decimal('7.89E+77')
        >>> ExtendedContext.to_integral_exact(Decimal('-Inf'))
        Decimal('-Infinity')
        R•R(RR'R2(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR2ìscCs"t|dtƒ}|jd|ƒS(sLRounds to an integer.
 
        When the operand has a negative exponent, the result is the same
        as using the quantize() operation using the given operand as the
        left-hand-operand, 1E+0 as the right-hand-operand, and the precision
        of the operand as the precision setting, except that no flags will
        be set.  The rounding mode is taken from the context.
 
        >>> ExtendedContext.to_integral_value(Decimal('2.1'))
        Decimal('2')
        >>> ExtendedContext.to_integral_value(Decimal('100'))
        Decimal('100')
        >>> ExtendedContext.to_integral_value(Decimal('100.0'))
        Decimal('100')
        >>> ExtendedContext.to_integral_value(Decimal('101.5'))
        Decimal('102')
        >>> ExtendedContext.to_integral_value(Decimal('-101.5'))
        Decimal('-102')
        >>> ExtendedContext.to_integral_value(Decimal('10E+5'))
        Decimal('1.0E+6')
        >>> ExtendedContext.to_integral_value(Decimal('7.89E+77'))
        Decimal('7.89E+77')
        >>> ExtendedContext.to_integral_value(Decimal('-Inf'))
        Decimal('-Infinity')
        R•R(RR'Rš(RR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRš
sN(RR R!R"R@RR¡R;R3R:R~RURiRµR·RŸRÂRåR4R¸R¹R\RºR»R<R–R=R8RER­R¼R®RFR½R¾RÃRJRüRIRJR-R—RKRRLR€RMRNRURXRYRcReRfRdRµRgR´RhR¿RÀRkRlRnR)RpRÁRÂR,RqRÆRÔRvR.RyRÅR7RÃR¬RÄR2RšR™(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR³s¦ "                                                                  $    #                            %                                                                                                                         #        2     P    :        &    "                                         R]cBs)eZdZdd„Zd„ZeZRS(R-RGRJcCs‘|dkr*d|_d|_d|_nct|tƒrf|j|_t|jƒ|_|j|_n'|d|_|d|_|d|_dS(Niii(    R@R-RGRJRQRR%R&RC(RRh((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR0s             cCsd|j|j|jfS(Ns (%r, %r, %r)(R-RGRJ(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR¡?s(ssignsintsexpN(R R!RR@RR¡R«(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR]*s     icCsÔ|j|jkr!|}|}n |}|}tt|jƒƒ}tt|jƒƒ}|jtd||dƒ}||jd|kr¡d|_||_n|jd|j|j9_|j|_||fS(scNormalizes op1, op2 to have the same exp and length of coefficient.
 
    Done during addition.
    iÿÿÿÿiii
(RJRXRWRGR´(R¹RºR3ttmpR|ttmp_lent    other_lenRJ((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR·Fs          iREiR¾it2t3it4t5t6t7t8R1RRbR5RvR¥RucCs?|dkrtdƒ‚nd|}dt|ƒ||dS(s[Number of bits in binary representation of the positive integer n,
    or 0 if n == 0.
    is-The argument to _nbits should be nonnegative.s%xi(R`RX(R#t
correctionthex_n((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRis 
cCs{|dkrdS|dkr(|d|Stt|ƒƒ}t|ƒt|jdƒƒ}|| krjdS|d| SdS(s Given integers n and e, return n * 10**e if it's an integer, else None.
 
    The computation is designed to avoid computing large powers of 10
    unnecessarily.
 
    >>> _decimal_lshift_exact(3, 4)
    30000
    >>> _decimal_lshift_exact(300, -999999999)  # returns None
 
    ii
REN(RWR\RXRœR@(R#R¥tstr_ntval_n((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRvs   cCs^|dks|dkr'tdƒ‚nd}x*||krY||| |d?}}q0W|S(sóClosest integer to the square root of the positive integer n.  a is
    an initial approximation to the square root.  Any positive integer
    will do for a, but the closer a is to the square root of n the
    faster convergence will be.
 
    is3Both arguments to _sqrt_nearest should be positive.i(R`(R#RRb((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt _sqrt_nearest‹s cCs7d|>||?}}|d||d@|d@|kS(s‰Given an integer x and a nonnegative integer shift, return closest
    integer to x / 2**shift; use round-to-even in case of a tie.
 
    lii((R    RÅRbRÊ((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt_rshift_nearestšscCs/t||ƒ\}}|d||d@|kS(saClosest integer to a/b, a and b positive integers; rounds to even
    in the case of a tie.
 
    ii(RÃ(RRbRÊRË((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt _div_nearest¢sic     CsC||}d}x›||kr?tt|ƒƒ||>|kse||kr­t|ƒ||?|kr­tt||ƒd>|t||t||ƒ|ƒƒ}|d7}qWtdtt|ƒƒd|ƒ }t||ƒ}t||ƒ}x>t|dddƒD]&}t||ƒt|||ƒ}qWt|||ƒS(sÉInteger approximation to M*log(x/M), with absolute error boundable
    in terms only of x/M.
 
    Given positive integers x and M, return an integer approximation to
    M * log(x/M).  For L = 8 and 0.1 <= x/M <= 10 the difference
    between the approximation and the exact result is at most 22.  For
    L = 8 and 1.0 <= x/M <= 10.0 the difference is at most 15.  In
    both cases these are upper bounds on the error; it will usually be
    much smaller.iiiöÿÿÿiiÿÿÿÿ(    R[R\RÕRÓRÔRGRXRWRþ(    R    tMtLR tRtTtyshifttwRw((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt_ilogªs
/&'%$c
Csï|d7}tt|ƒƒ}||||dk}|dkrÄd|}|||}|dkru|d|9}nt|d| ƒ}t||ƒ}t|ƒ}t|||ƒ}||}    nd}t|d| ƒ}    t|    |dƒS(s¾Given integers c, e and p with c > 0, p >= 0, compute an integer
    approximation to 10**p * log10(c*10**e), with an absolute error of
    at most 1.  Assumes that c*10**e is not exactly 1.iiii
id(RXRWRÕRÜt _log10_digits(
R5R¥RR6RuRÖRwtlog_dtlog_10t log_tenpower((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRWÚs 
 
   c    Cs|d7}tt|ƒƒ}||||dk}|dkr•|||}|dkrk|d|9}nt|d| ƒ}t|d|ƒ}nd}|rúttt|ƒƒƒd}||dkrñt|t||ƒd|ƒ}qd}nd}t||dƒS(s´Given integers c, e and p with c > 0, compute an integer
    approximation to 10**p * log(c*10**e), with an absolute error of
    at most 1.  Assumes that c*10**e is not exactly 1.iiii
id(RXRWRÕRÜR\RÝ(    R5R¥RR6RuRwRÞR"t    f_log_ten((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRTüs"
  $    t _Log10MemoizecBs eZdZd„Zd„ZRS(s¾Class to compute, store, and allow retrieval of, digits of the
    constant log(10) = 2.302585....  This constant is needed by
    Decimal.ln, Decimal.log10, Decimal.exp and Decimal.__pow__.cCs d|_dS(Nt/23025850929940456840179914546843642076011014886(Rl(R((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR,scCsÈ|dkrtdƒ‚n|t|jƒkr³d}xatr™d||d}tttd||ƒdƒƒ}|| d|krŒPn|d7}q9W|jdƒd |_nt|j|d     ƒS(
stGiven an integer p >= 0, return floor(10**p)*log(10).
 
        For example, self.getdigits(3) returns 2302.
        isp should be nonnegativeii
iidREiÿÿÿÿi(    R`RXRlR'RWRÕRÜRœRG(RRR"RÖRl((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt    getdigits/s         "(R R!R"RRä(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRâ(s    c    Csîtt|ƒ|>|ƒ}tdtt|ƒƒd|ƒ }t||ƒ}t|ƒ|>}x9t|dddƒD]!}t|||||ƒ}quWxIt|dddƒD]1}t|ƒ|d>}t||||ƒ}q±W||S(sëGiven integers x and M, M > 0, such that x/M is small in absolute
    value, compute an integer approximation to M*exp(x/M).  For 0 <=
    x/M <= 2.4, the absolute error in the result is bounded by 60 (and
    is usually much smaller).iöÿÿÿiiiiÿÿÿÿi(RR[RGRXRWRÕRþ(    R    RÖR×RØRÙR tMshiftRRw((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt_iexpMs%c    CsÃ|d7}td|tt|ƒƒdƒ}||}||}|dkr^|d|}n|d| }t|t|ƒƒ\}}t|d|ƒ}tt|d|ƒdƒ||dfS(sÐCompute an approximation to exp(c*10**e), with p decimal places of
    precision.
 
    Returns integers d, f such that:
 
      10**(p-1) <= d <= 10**p, and
      (d-1)*10**f < exp(c*10**e) < (d+1)*10**f
 
    In other words, d*10**f is an approximation to exp(c*10**e) with p
    digits of precision, and with an error in d of at most 1.  This is
    almost, but not quite, the same as the error being < 1ulp: when d
    = 10**(p-1) the error could be up to 10 ulp.iiii
ièi(RµRXRWRÃRÝRÕRæ(    R5R¥RR"RÊRÅtcshifttquotR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRGrs
#
 
 c Cs*ttt|ƒƒƒ|}t||||dƒ}||}|dkra||d|}nt||d| ƒ}|dkrætt|ƒƒ|dk|dkkrÍd|ddd|}    }
q d|d| }    }
n:t||d |dƒ\}    }
t|    dƒ}    |
d7}
|    |
fS(s5Given integers xc, xe, yc and ye representing Decimals x = xc*10**xe and
    y = yc*10**ye, compute x**y.  Returns a pair of integers (c, e) such that:
 
      10**(p-1) <= c <= 10**p, and
      (c-1)*10**e < x**y < (c+1)*10**e
 
    in other words, c*10**e is an approximation to x**y with p digits
    of precision, and with an error in c of at most 1.  (This is
    almost, but not quite, the same as the error being < 1ulp: when c
    == 10**(p-1) we can only guarantee error < 10ulp.)
 
    We assume that: x is positive and not equal to 1, and y is nonzero.
    iii
(RXRWR\RTRÕRG( R
R R RRRbtlxcRÅtpcRÄRJ((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR–s
  ( !
idiFi5i(iiii
icCsA|dkrtdƒ‚nt|ƒ}dt|ƒ||dS(s@Compute a lower bound for 100*log10(c) for a positive integer c.is0The argument to _log10_lb should be nonnegative.id(R`RWRX(R5RÏtstr_c((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRÀs  cCsqt|tƒr|St|ttfƒr2t|ƒS|rTt|tƒrTtj|ƒS|rmtd|ƒ‚ntS(sÙConvert other to Decimal.
 
    Verifies that it's ok to use in an implicit construction.
    If allow_float is true, allow conversion from float;  this
    is used in the comparison methods (__eq__ and friends).
 
    sUnable to convert %s to Decimal(RQRRGR[RdReRfRŽ(R|R•RŒ((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRËs
 R3iR2RRR4iÿɚ;R*i6eÄR§i    s·        # A numeric string consists of:
#    \s*
    (?P<sign>[-+])?              # an optional sign, followed by either...
    (
        (?=\d|\.\d)              # ...a number (with at least one digit)
        (?P<int>\d*)             # having a (possibly empty) integer part
        (\.(?P<frac>\d*))?       # followed by an optional fractional part
        (E(?P<exp>[-+]?\d+))?    # followed by an optional exponent, or...
    |
        Inf(inity)?              # ...an infinity, or...
    |
        (?P<signal>s)?           # ...an (optionally signaling)
        NaN                      # NaN
        (?P<diag>\d*)            # with (possibly empty) diagnostic info.
    )
#    \s*
    \Z
s0*$s50*$s¼\A
(?:
   (?P<fill>.)?
   (?P<align>[<>=^])
)?
(?P<sign>[-+ ])?
(?P<zeropad>0)?
(?P<minimumwidth>(?!0)\d+)?
(?P<thousands_sep>,)?
(?:\.(?P<precision>0|(?!0)\d+))?
(?P<type>[eEfFgGn%])?
\Z
cCs>tj|ƒ}|dkr.td|ƒ‚n|jƒ}|d}|d}|ddk    |d<|dr­|dk    r‹td|ƒ‚n|dk    r­td|ƒ‚q­n|p¶d|d<|pÆd|d<|d    dkrêd
|d    <nt|d púd ƒ|d <|d dk    r+t|d ƒ|d <n|d dkrk|ddks[|ddkrkd|d <qkn|ddkrðd|d<|dkr tjƒ}n|ddk    rÃtd|ƒ‚n|d|d<|d|d<|d|d<n7|ddkr d|d<nddg|d<d|d<t|t    ƒ|d<|S(sParse and validate a format specifier.
 
    Turns a standard numeric format specifier into a dict, with the
    following entries:
 
      fill: fill character to pad field to minimum width
      align: alignment type, either '<', '>', '=' or '^'
      sign: either '+', '-' or ' '
      minimumwidth: nonnegative integer giving minimum width
      zeropad: boolean, indicating whether to pad with zeros
      thousands_sep: string to use as thousands separator, or ''
      grouping: grouping for thousands separators, in format
        used by localeconv
      decimal_point: string to use for decimal point
      precision: nonnegative integer giving precision, or None
      type: one of the characters 'eEfFgG%', or None
      unicode: boolean (always True for Python 3.x)
 
    sInvalid format specifier: tfilltaligntzeropads7Fill character conflicts with '0' in format specifier: s2Alignment conflicts with '0' in format specifier: t t>R-RFt minimumwidthRER…iR}R‡iR#R‚t thousands_sepsJExplicit thousands separator conflicts with 'n' type in format specifier: tgroupingt decimal_pointRIiR¤tunicodeN(
t_parse_format_specifier_regextmatchR@R`t    groupdictRGt_localet
localeconvRQRõ(t format_specRRit format_dictRìRí((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRˆDsP  
 
 
     
 
c    Csõ|d}|d}||t|ƒt|ƒ}|d}|dkrY|||}n|dkrv|||}nb|dkr“|||}nE|dkrÌt|ƒd}|| ||||}n td    ƒ‚|d
rñt|ƒ}n|S( sGiven an unpadded, non-aligned numeric string 'body' and sign
    string 'sign', add padding and alignment conforming to the given
    format specifier dictionary 'spec' (as produced by
    parse_format_specifier).
 
    Also converts result to unicode if necessary.
 
    RñRìRít<Rðt=t^isUnrecognised alignment fieldRõ(RXR`Rõ(    R-RŽRRñRìtpaddingRíRxthalf((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyRŠ˜s"
 
 
 
 
cCsˆddlm}m}|s gS|ddkr]t|ƒdkr]||d ||dƒƒS|dtjkrx|d Stdƒ‚dS(syConvert a localeconv-style grouping into a (possibly infinite)
    iterable of integers representing group lengths.
 
    iÿÿÿÿ(tchaintrepeatiiiþÿÿÿs unrecognised format for groupingN(t    itertoolsRRRXRùtCHAR_MAXR`(RóRR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt_group_lengths¹s "cCs|d}|d}g}xìt|ƒD]¢}|dkrHtdƒ‚nttt|ƒ|dƒ|ƒ}|jd|t|ƒ|| ƒ||  }||8}| r¹|dkr¹Pn|t|ƒ8}q'Wtt|ƒ|dƒ}|jd|t|ƒ|| ƒ|jt|ƒƒS(snInsert thousands separators into a digit string.
 
    spec is a dictionary whose keys should include 'thousands_sep' and
    'grouping'; typically it's the result of parsing the format
    specifier using _parse_format_specifier.
 
    The min_width keyword argument gives the minimum length of the
    result, which will be padded on the left with zeros if necessary.
 
    If necessary, the zero padding adds an extra '0' on the left to
    avoid a leading thousands separator.  For example, inserting
    commas every three digits in '123456', with min_width=8, gives
    '0,123,456', even though that has length 9.
 
    RòRóisgroup length should be positiveiRE(RR`R´RµRXRaRbtreversed(RlRt    min_widthtsepRótgroupsR6((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt_insert_thousands_sepÐs 
 
 !$ 
$cCs*|r
dS|ddkr"|dSdSdS(sDetermine sign character.RFR-s +RIN((t is_negativeR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR‰õs
cCsùt||ƒ}|r&|d|}n|dksB|ddkr…idd6dd6dd6dd6|d}|d    j||ƒ7}n|dd
kr¢|d
7}n|d rÍ|d t|ƒt|ƒ}nd}t|||ƒ}t||||ƒS( scFormat a number, given the following data:
 
    is_negative: true if the number is negative, else false
    intpart: string of digits that must appear before the decimal point
    fracpart: string of digits that must come after the point
    exp: exponent, as an integer
    spec: dictionary resulting from parsing the format specifier
 
    This function uses the information in spec to:
      insert separators (decimal separator and thousands separators)
      format the sign
      format the exponent
      add trailing '%' for the '%' type
      zero-pad if necessary
      fill and align if necessary
    RôiR}R†R¦R¥RƒR‚s{0}{1:+}R„RîRñ(R‰tformatRXR RŠ(R RjRkRJRR-techarR((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyR‹ÿs* 
!tInfs-InfR£t__main__(mR"t__all__t __version__R:t_copytmathRntnumberst_numberst collectionsRt _namedtupleRt ImportErrorRRRRRRRRtArithmeticErrorRRRR+tZeroDivisionErrorRR.R/R    R0R
R R R RR°R<R7ROR5R8R>thasattrR=R9RRR@RRRYR$tNumbertregisterRARR]R·RRRÓRÔRÕRÜRWRTRâRäRÝRæRGRRRRRRtretcompiletVERBOSEt
IGNORECASEtUNICODER÷RSRíRòRötlocaleRùRˆRŠRR R‰R‹RSRRR)R?RR>R,R tdoctestttestmodR6(((sO/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/decimal.pyt<module>ts2             
     &
 
 
      
               *ÿÿÿÿÿÿÿÿÿÿÿÿž ÿÿÿÿÿÿ} #%                     0    "    ,#  %    $    *#%                         T    !     %    
   )