f34449372f
fix a precision problem in RK4. fix mpf ** complex
Fredrik Johansson
2008-03-24 12:39:56 +00:00
bb2924b882
ODE solvers (Euler + 4th-order Runge Kutta method) and 2F1 function implemented.
Ondrej Certik
2008-03-24 12:00:41 +00:00
99ed84d71f
Relative imports converted to absolute ones so that mpmath works on python2.4.
Ondrej Certik
2008-03-23 21:48:29 +00:00
9693e830dc
add a high-order hypergeometric test case
Fredrik Johansson
2008-03-23 17:35:19 +00:00
ecfa2eb74f
implemented generic summation of hypergeometric series, using this to compute erf and hyp2f1 etc. bessel and incomplete gamma yet to be ported to use this implementation
Fredrik Johansson
2008-03-23 17:28:13 +00:00
1199100f36
optimize diffc and node initialization in integration
Mario Pernici
2008-03-23 16:51:40 +00:00
f201a8c022
optimize change of variables in integration
Fredrik Johansson
2008-03-23 00:52:25 +00:00
95c2b33781
remove some overheads in comparisons and conversions
Fredrik Johansson
2008-03-23 00:10:31 +00:00
cc52215d62
clean up code that uses a lot of fop() calls by making the rounding parameter optional (using fastest rounding as default). misc cleanup
Fredrik Johansson
2008-03-22 22:57:48 +00:00
8c7fb511b0
implement the agm (arithmetic-geometric mean) function
Fredrik Johansson
2008-03-22 15:48:59 +00:00
6126580b4c
sqrt_fixed2 needs more extra precision at high precision
Fredrik Johansson
2008-03-22 09:05:39 +00:00
245d1b66a3
implemented hypergeometric 2F1 and complete elliptic integrals K, E
Fredrik Johansson
2008-03-21 20:36:13 +00:00
7527a94215
efficient generation of integer logarithms and bernoulli numbers; implemented khinchin's, glaisher's and apery's constants and the golden ratio. many tests missing.
Fredrik Johansson
2008-03-21 19:40:45 +00:00
7571f1da54
more systematic tests for basic ops
Fredrik Johansson
2008-03-20 20:14:29 +00:00
3c46214b51
speed improvements to mpc (applying patch from mario pernici, issue 28)
Fredrik Johansson
2008-03-20 19:46:18 +00:00
26880f7cbd
fix fixed-point precision estimate and avoid inefficient conversion back to int in to_str at high precision (str() becomes several times faster)
Fredrik Johansson
2008-03-20 17:48:03 +00:00
1eb08e8845
implementing inverse hyperbolic functions in lib
Fredrik Johansson
2008-03-20 16:19:43 +00:00
28a4b6f889
compactify wrapper code for a few functions
Fredrik Johansson
2008-03-20 15:37:29 +00:00
0c0b3d2e97
tan and tanh implemented in lib
Fredrik Johansson
2008-03-20 13:29:29 +00:00
ef67b4cb74
asin and acos implemented in lib. fixed small bug in fneg
Fredrik Johansson
2008-03-20 12:05:53 +00:00
dc24ffb0ae
add support for trapping complex results
Fredrik Johansson
2008-03-20 11:01:00 +00:00
05ded70948
implement complex atan in libmpc. unify detection of complex values by introducing the ComplexResult exception
Fredrik Johansson
2008-03-20 10:37:37 +00:00
c435d73b77
implement mpc power on lib level (with significant speedup as a result)
Fredrik Johansson
2008-03-20 09:31:00 +00:00
f051e1c79a
big reorganization of various code related to complex arithmetic and special functions. speed of gamma and factorial improved considerably; bessel jn implemented for complex arguments
Fredrik Johansson
2008-03-20 08:10:39 +00:00
03143a5e98
don't compute both cos and sin when only one of them is needed; increase working precision in cos_sin (patch contributed by Mario)
Fredrik Johansson
2008-03-19 20:34:40 +00:00
aca0dea18c
implemented a function for generic euler-maclaurin summation
Fredrik Johansson
2008-03-19 10:18:51 +00:00
99f6bdbe67
use sqrt code that's 15% faster at low precision (contributed by Mario Pernici)
Fredrik Johansson
2008-03-13 20:17:04 +00:00
ae6c8a9b2f
Added pickle support to mpf.
Pearu Peterson
2008-03-13 08:59:58 +00:00
f4acb6aeb0
small addition to changelog
Fredrik Johansson
2008-03-12 16:50:33 +00:00
a582fbefe8
cleanup for 0.7
Fredrik Johansson
2008-03-12 16:42:35 +00:00
abc55f5140
fix a major inefficiency in cos_sin for huge arguments. add manydigits problems demo. tweaks to manual and some housekeeping
Fredrik Johansson
2008-03-12 14:16:05 +00:00
04cfbe63ec
edits to readme and demo scripts
Fredrik Johansson
2008-03-12 12:27:03 +00:00
1f11b70f22
make taylor interval demo interactive
Fredrik Johansson
2008-03-12 12:15:41 +00:00
5531bde649
more documentation edits. moving demo directory
Fredrik Johansson
2008-03-12 11:43:07 +00:00
2030e74f17
fix google analytics tracker
Fredrik Johansson
2008-03-12 07:42:25 +00:00
b6144f7990
document differentiation and interval arithmetic in the manual
Fredrik Johansson
2008-03-12 07:25:43 +00:00
420c4369c3
polishing manual. adding script for running the manual's doctests (shamelessly stolen from sympycore)
Fredrik Johansson
2008-03-12 04:33:54 +00:00
9255d41772
set pdf mime type
Fredrik Johansson
2008-03-12 02:53:15 +00:00
f66c58dbc6
more work on manual. rename clog2 and clog10 -> ln2, ln10
Fredrik Johansson
2008-03-12 02:51:15 +00:00
02b4d22651
work on the manual, continued
Fredrik Johansson
2008-03-11 12:21:01 +00:00
eb1bddd9cc
greatly lower fsqrt algorithm threshold based on new benchmarking. partial fix for issue 6 (power of interval containing zero)
Fredrik Johansson
2008-03-11 11:35:32 +00:00
71deae736c
implemented basic bessel functions. a few edits to the manual
Fredrik Johansson
2008-03-10 18:51:52 +00:00
6489ab4b33
Added a fix to easily run tests on linux (#21).
Ondrej Certik
2008-03-10 15:24:57 +00:00
391cd21092
add a basic test for fdivi
Fredrik Johansson
2008-03-10 02:31:27 +00:00
ac85718561
changelog update
Fredrik Johansson
2008-03-10 02:22:42 +00:00
0dc8ac7287
use faster rdiv code contributed by mario pernici
Fredrik Johansson
2008-03-10 02:19:59 +00:00
653b9e5080
more updates to manual
Fredrik Johansson
2008-03-10 01:51:51 +00:00
109298299a
tidy printing of complex numbers. more work on manual
Fredrik Johansson
2008-03-10 00:02:22 +00:00
26bec2aff3
describe the secant method in the manual
Fredrik Johansson
2008-03-09 22:39:33 +00:00
f87edd4387
implement secant method; more work on manual
Fredrik Johansson
2008-03-09 22:15:19 +00:00
01ee92a53e
also raise ZeroDivisionError on 0 / 0
Fredrik Johansson
2008-03-09 17:37:10 +00:00
ef0c76f0d6
make division by zero raise again
Fredrik Johansson
2008-03-08 21:35:26 +00:00
60d043d0cb
depopulating the apps subdirectory
Fredrik Johansson
2008-03-07 21:47:58 +00:00
3f61c05661
merge derivatives, polynomials, quad -> calculus
Fredrik Johansson
2008-03-07 21:36:59 +00:00
e5bae7f53e
document some more recent changes in the changelog
Fredrik Johansson
2008-03-07 21:27:02 +00:00
1e77ec5ca7
tidy lib
Fredrik Johansson
2008-03-07 21:22:03 +00:00
18cf3c6504
implement prec <-> dps translation functions in lib
Fredrik Johansson
2008-03-07 20:40:02 +00:00
1715a5b2c8
adding 1 digit to output makes repr work as intended when prec != 53. move a few trig tests to the right place.
Fredrik Johansson
2008-03-07 20:30:08 +00:00
7e5fa46941
fix typo that broke directed rounding for sin
Fredrik Johansson
2008-03-07 20:10:09 +00:00
55b2b14339
add hard trig test cases
Fredrik Johansson
2008-03-07 20:07:23 +00:00
dcf13b4caa
fix accuracy problems near roots for cos and sin
Fredrik Johansson
2008-03-07 20:06:46 +00:00
07497afd63
restore use of the agm algorithm for computing pi at high prec
Fredrik Johansson
2008-03-07 14:19:18 +00:00
67711bb721
guard against typos for Context attributes
Fredrik Johansson
2008-03-07 13:09:13 +00:00
5efb88b5e5
rename round_half_even -> round_nearest. update changelog
Fredrik Johansson
2008-03-07 13:06:40 +00:00
6526161f64
also use Mario's inline squaring
Fredrik Johansson
2008-03-07 12:45:24 +00:00
7986a816cb
use Mario Pernici's fast integer power code (with adjustments for rounding). lowered the cutoff for using exact pow
Fredrik Johansson
2008-03-07 12:40:50 +00:00
2f3b7fb892
performance tweaks and cleanup; exp and log 10-20% faster at low prec
Fredrik Johansson
2008-03-07 03:28:29 +00:00
136a8ed770
fix __sub__ benchmark
Fredrik Johansson
2008-03-07 02:19:32 +00:00
951bf0bc44
tweak string conversion cutoff
Fredrik Johansson
2008-03-07 02:04:56 +00:00
5029eb012c
monster edit: changed representation of mpfs to (sign, man, exp, bc). using ._mpf_ property to identify mpf numbers. these changes and others result in a total 10% speedup of mpmath unit tests. deprecating the half-down and half-up rounding modes.
Fredrik Johansson
2008-03-07 01:37:09 +00:00
bc0f9563a6
some cleanup; implement the magic constant eps
Fredrik Johansson
2008-03-06 15:43:26 +00:00
7752c2a250
documentation updates
Fredrik Johansson
2008-03-06 03:33:38 +00:00
08206f540f
deprecating "mpf.prec" and related properties; use "mp.prec" instead. introduced safe decorators / context managers for changing precision
Fredrik Johansson
2008-03-06 03:21:47 +00:00
2b7eb385e3
tag manual.html as html
Fredrik Johansson
2008-03-06 00:12:07 +00:00
afd8572683
add in-progress new manual
Fredrik Johansson
2008-03-06 00:07:34 +00:00
7a07095102
implement functions nstr, nprint for condensed printing; use for polyroots doctest example
Fredrik Johansson
2008-03-04 18:32:18 +00:00
58b8a43666
remove a whitespace character
Fredrik Johansson
2008-03-04 11:31:34 +00:00
b098478048
added polynomial functions
Fredrik Johansson
2008-03-04 11:16:33 +00:00
d5a90d60c0
fix benchmark.py
Fredrik Johansson
2008-03-04 04:30:52 +00:00
4a96146819
implement a lazy fraction mpf generator
Fredrik Johansson
2008-03-04 04:09:03 +00:00
bb9881cb11
add a missing entry to the changelog
Fredrik Johansson
2008-03-04 03:38:12 +00:00
b0df2ec1ee
delete lib_old
Fredrik Johansson
2008-03-04 03:34:47 +00:00
671c292c78
fast computation of exp(n) at high precision. update changelog
Fredrik Johansson
2008-03-04 03:32:36 +00:00
4f548f8446
implement catalan's constant and fast computation of e
Fredrik Johansson
2008-03-04 02:11:42 +00:00
4b7fdd9f8f
rename fpow -> fpowi; implement fpow for general real powers
Fredrik Johansson
2008-03-04 01:14:27 +00:00
efc21661fd
speed up multiplication by small integers
Fredrik Johansson
2008-03-04 00:10:16 +00:00
f0362fc3c9
collapse namespace, initial changes
Fredrik Johansson
2008-03-03 23:41:05 +00:00
961981e225
add functions for numerical differentiation
Fredrik Johansson
2008-03-03 13:14:40 +00:00
b66fc2fe9e
Make mpmath doc strings to be nice with epydoc.
Pearu Peterson
2008-02-28 18:52:22 +00:00
02d47b3744
apply Mario Pernici speed improvement to fpow
Fredrik Johansson
2008-02-28 17:45:38 +00:00
4280fac8c2
fix __mpcval__
Fredrik Johansson
2008-02-16 15:10:16 +00:00
668c86b4ba
support reading __mpfval__ and __mpcval__ special methods. use convert_lossless in more places
Fredrik Johansson
2008-02-16 15:04:51 +00:00
fb99cb0da8
implement the ldexp function
Fredrik Johansson
2008-02-13 18:11:17 +00:00
a22492652f
fix obscure bug in to_int
Fredrik Johansson
2008-02-13 11:32:54 +00:00
69459c0cde
apply pearu's patch for comparison methods. fix from_float(nan)
Fredrik Johansson
2008-01-27 17:45:50 +00:00
479b236d5d
enable from_float to load inf/nan. fix several compatibility issues in tests that appeared after i upgraded my python install
Fredrik Johansson
2008-01-20 20:57:04 +00:00
1058204f1c
fix documentation typos; remove duplicate functions in util.py
Fredrik Johansson
2008-01-14 03:58:32 +00:00
f724f47a87
fix date
Fredrik Johansson
2008-01-13 16:01:05 +00:00
a4f6ccc70c
cleanup
Fredrik Johansson
2008-01-13 15:42:59 +00:00