Vinzent Steinberg

Results 122 comments of Vinzent Steinberg

bc.. That's a nice idea and easy to implement. We could even have poly.append_high_order() and poly.append_low_order() or something to solve the problems you described. What about (re-)using sympy's polys? p....

bc.. Nice! How do you want to fit nonlinear functions? Using overdetermined equation systems? If it can't be formulated as a linear system, we'll need a nonlinear solver with global...

bc.. Why the string magic in horner_code()? Do you think it's faster than a loop? p. Original comment: "http://code.google.com/p/mpmath/issues/detail?id=102#c12":http://code.google.com/p/mpmath/issues/detail?id=102#c12 p. Original author: "https://code.google.com/u/[email protected]/":https://code.google.com/u/[email protected]/

bc.. >>> poly(range(100)).compile() ## s_push: parser stack overflow Traceback (most recent call last): File "", line 1, in File "polynomials.py", line 182, in compile return horner_fun(self.coeffs[::-1]) File "polynomials.py", line 76,...

bc.. In [26]: c = map(mpf, range(10)) In [27]: f2 = lambda x: horner(c, x) In [28]: f1 = poly(c).**call** In [29]: %timeit f2(7) 1000 loops, best of 3: 304...

``` I guess you mean mpmathify should support this. ``` Original comment: http://code.google.com/p/mpmath/issues/detail?id=144#c1 Original author: https://code.google.com/u/[email protected]/

``` Do we need complex infinity in mpmath? ``` Original comment: http://code.google.com/p/mpmath/issues/detail?id=144#c3 Original author: https://code.google.com/u/[email protected]/

``` +one Returning None for a comparison might be unexpected, so I think absmin/max are still needed. ``` Original comment: http://code.google.com/p/mpmath/issues/detail?id=151#c1 Original author: https://code.google.com/u/[email protected]/

``` Yeah, LU_decomp just would have to be fixed to expect None from comparisons, otherwise None False. ``` Original comment: http://code.google.com/p/mpmath/issues/detail?id=151#c3 Original author: https://code.google.com/u/[email protected]/

``` Test script to demonstrate new functionality. ``` Original comment: http://code.google.com/p/mpmath/issues/detail?id=158#c1 Original author: https://code.google.com/u/[email protected]/