Vinzent Steinberg

Results 189 comments of Vinzent Steinberg

bc.. There should be a parameter indicating the maximal allowed number of zeros after the point. Something like if abs(x) < 10**-max_zeros: use_floating_point() else: use_fixed_point() p. Original comment: "http://code.google.com/p/mpmath/issues/detail?id=77#c26":http://code.google.com/p/mpmath/issues/detail?id=77#c26 p....

bc.. I think min_fixed and max_fixed in to_str() should be replaced by max_zeros as proposed. What do you think? If you have no objections, I'll implement it this way. p....

bc.. What is the behavior you want? I think the only thing that needs fixing is 5.0e-1 etc. So instead of replacing min_fixed and max_fixed (I see that it is...

bc.. Exactly this is the main advantage of multiprocessing. Parallel Python scales better, it can be used on clusters. But this is probably not needed for simple integration. I'll give...

bc.. I just studied the code of TanhSinh. Are the parts to be parallelized ``` for x, w in cls.get_nodes(prec, level, verbose=False): S += w*(f(NEG(x)) + f(x)) ``` and for...

bc.. $ python mpmath/tests/runtests.py -local -profile quad [...] ncalls tottime percall cumtime percall filename:lineno(function) 1 0.000 0.000 57.621 57.621 :1() 1 0.034 0.034 57.621 57.621 runtests.py:57(testit) 138 0.011 0.000 57.334...

bc.. For some reason it refuses to pass f: > > > quadts(cos, (0,2)) > > > Exception in thread Thread-1: > > > Traceback (most recent call last): >...

bc.. Yeah, I tried, but I failed so far. Sadly the documentation of multiprocessing's Pool() is not extensive enough (the arguments are not documented at all). There should be a...

bc.. Thanks! Sadly, there is no code at all. :) p. Original comment: "http://code.google.com/p/mpmath/issues/detail?id=88#c11":http://code.google.com/p/mpmath/issues/detail?id=88#c11 p. Original author: "https://code.google.com/u/[email protected]/":https://code.google.com/u/[email protected]/

bc.. http://mail.python.org/pipermail/python-bugs-list/2002-October/014145.html Lambdas can't be pickled, I'll try if it works with ordinary functions. p. Original comment: "http://code.google.com/p/mpmath/issues/detail?id=88#c13":http://code.google.com/p/mpmath/issues/detail?id=88#c13 p. Original author: "https://code.google.com/u/[email protected]/":https://code.google.com/u/[email protected]/