29 Commits

Author SHA1 Message Date
Sergey B Kirpichev 0e1bd9496d Restrict libmp exports to public API
This is following namespace:
```
{'BACKEND', 'ComplexResult', 'MPZ', 'MPZ_ONE', 'NoConvergence',
 'catalan_fixed', 'dps_to_prec', 'euler_fixed', 'fhalf', 'finf',
 'fnan', 'fninf', 'fnone', 'fone', 'from_float', 'from_int', 'from_man_exp',
 'from_rational', 'from_str', 'fzero', 'giant_steps', 'ifac', 'ifib',
 'int_types', 'isqrt', 'mpc_abs', 'mpc_exp', 'mpc_pow', 'mpc_pow_int',
 'mpc_pow_mpf', 'mpc_sqrt', 'mpf_abs', 'mpf_add', 'mpf_atan', 'mpf_atan2',
 'mpf_bernoulli', 'mpf_ceil', 'mpf_cmp', 'mpf_cos', 'mpf_cosh_sinh', 'mpf_div',
 'mpf_e', 'mpf_eq', 'mpf_exp', 'mpf_floor', 'mpf_ge', 'mpf_gt', 'mpf_le',
 'mpf_log', 'mpf_lt', 'mpf_mod', 'mpf_mul', 'mpf_neg', 'mpf_pi', 'mpf_pow',
 'mpf_pow_int', 'mpf_shift', 'mpf_sign', 'mpf_sin', 'mpf_sqrt', 'mpf_sub',
 'mpf_tan', 'normalize', 'phi_fixed', 'prec_to_dps', 'repr_dps',
 'round_nearest', 'sqrtrem', 'to_float', 'to_int', 'to_man_exp', 'to_rational',
 'to_str'}
```

Closes #704
2026-05-25 08:31:19 +03:00
Sergey B Kirpichev 8d2c851247 Add moving sofa demo
Closes #96
2025-03-03 12:12:17 +03:00
Sergey B Kirpichev e7e9102cf6 Fix demos
Closes #216
2024-02-23 17:40:24 +03:00
Sergey B Kirpichev 1531f23a90 Drop pre-sphinx documentation stuff 2023-05-18 14:25:27 +03:00
Sergey B Kirpichev e96cf85130 Reorganize imports in demo/ (no star imports) 2023-05-09 07:27:20 +03:00
Fangchen Li dfc289289d Drop py2 support (#629)
* remove xrange compat shim
* remove str compat shim
* remove exec compat shim
* remove object from class defination
* remove misc workarounds for python versions <3.5
* remove __future__ imports
* update readme
* Update setup.cfg

Closes #594

Co-authored-by: Fredrik Johansson <fredrik.johansson@gmail.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Colin B. Macdonald <cbm@m.fsf.org>
2023-03-30 04:50:18 +03:00
Christian Clauss 6489ed3bc1 Fix pycodestyle errors E703, E712, E713 (#665) 2023-03-28 10:29:30 +03:00
cclauss 15f68aa2f3 Use print() function in both Python 2 and Python 3
Legacy __print__ statements are syntax errors in Python 3 but __print()__ function works as expected in both Python 2 and Python 3.
2019-11-26 08:19:39 +01:00
Sergey B Kirpichev e6f3a56a41 Drop optional psyco deps (it's dead) 2018-09-24 19:48:03 +03:00
Sergey B Kirpichev affc2ef6e1 PEP 8 fixes:
E101 - mix of tabs and spaces
 W191 - use of tabs
 W291 - trailing whitespace
 W293 - trailing whitespace
 E111 - 4 spaces per indentation level
 E112 - 4 spaces per indentation level
 E113 - 4 spaces per indentation level
 W292 - no newline at end of file
 W391 - blank line at end of file

see http://pep8.readthedocs.org/
2014-11-21 17:08:07 +03:00
Fredrik Johansson 27eab13de6 convert line endings in trunk to unix format; rebuild docs 2010-07-28 20:09:06 +00:00
Fredrik Johansson 7890f6e0e6 fix output formatting of pi digits in base 2 and 3 2010-06-06 11:59:13 +00:00
Fredrik Johansson 633b9bbb53 update demo scripts 2010-01-17 20:40:21 +00:00
Fredrik Johansson cd3bc04394 secant -> findroot in manydigits.py 2008-10-14 16:50:46 +00:00
Fredrik Johansson 6064bf4893 plotting demos 2008-10-05 13:27:25 +00:00
Fredrik Johansson 4af6a1ddb4 update the manydigits demo script 2008-10-04 16:48:55 +00:00
Fredrik Johansson 34884dd05d fix pidigits demo script 2008-10-04 14:37:27 +00:00
Fredrik Johansson 4cc40bdf58 use chudnovsky's algorithm to compute pi 2008-07-02 10:45:36 +00:00
Fredrik Johansson a582fbefe8 cleanup for 0.7 2008-03-12 16:42:35 +00:00
Fredrik Johansson abc55f5140 fix a major inefficiency in cos_sin for huge arguments. add manydigits problems demo. tweaks to manual and some housekeeping 2008-03-12 14:16:05 +00:00
Fredrik Johansson 04cfbe63ec edits to readme and demo scripts 2008-03-12 12:27:03 +00:00
Fredrik Johansson 1f11b70f22 make taylor interval demo interactive 2008-03-12 12:15:41 +00:00
Fredrik Johansson 5531bde649 more documentation edits. moving demo directory 2008-03-12 11:43:07 +00:00
Fredrik Johansson f9114c6196 move tests, demos into main directory 2008-01-13 11:27:10 +00:00
Fredrik Johansson 340bcec1e3 refactoring lib into smaller pieces. many docstrings added 2007-10-11 14:23:37 +00:00
Fredrik Johansson 6739e369fc fix pidigits.py 2007-10-05 12:17:52 +00:00
Fredrik Johansson 3e1ebc0ef6 oops, pidigits.py was accidentally broken 2007-09-28 21:24:32 +00:00
Fredrik Johansson 725d650ecf tidy pidigits 2007-09-25 22:29:09 +00:00
Fredrik Johansson 798f35992f reorganize; add pidigits.py demo 2007-09-25 22:00:30 +00:00