Vinzent Steinberg

Results 189 comments of Vinzent Steinberg

bc.. Implemented 5.2582327113062[393041,749951], some doctests. p. Original comment: "http://code.google.com/p/mpmath/issues/detail?id=77#c7":http://code.google.com/p/mpmath/issues/detail?id=77#c7 p. Original author: "https://code.google.com/u/[email protected]/":https://code.google.com/u/[email protected]/

bc.. My fault, the implementation is quite trivial. It just looks where the first difference occurs. If this doesn't happen, we get [3, 3] and similar things. The comparison should...

bc.. I fixed it. > > > print_mpi(cos(mpi(1)), mode='diff') > > > 0.540302305868139717400936607443[] # should there be a ','? > > > print_mpi(exp(mpi('50000.1')), mode='diff') > > > 5.8549691456501781558378663[1396, 518]e+21714] p....

bc.. How to do this? I'm just using str(cos(mpi(1))). **Status:** Started p. Original comment: "http://code.google.com/p/mpmath/issues/detail?id=77#c13":http://code.google.com/p/mpmath/issues/detail?id=77#c13 p. Original author: "https://code.google.com/u/[email protected]/":https://code.google.com/u/[email protected]/

bc.. Thanks. If the string representations are equal, it now falls back to using to_str directly. Do you think we need parsing for 5.2582327113062[393041, 749951] etc.? p. Original comment: "http://code.google.com/p/mpmath/issues/detail?id=77#c15":http://code.google.com/p/mpmath/issues/detail?id=77#c15...

bc.. I implemented parsing for mode='diff' and added some tests. (I'll upload the code later.) parse_mpi() will be called from mpmathify(). mpi_to_str() will be added to libmpi.py. Should it by...

bc.. It doesn't seem possible to have mpi_to_str() and mpi_from_str() in libmpi.py, because they rely on mpf() and mpi(), which I can't import from there. Moving it to mptypes.py does...

bc.. I just implemented and committed mpi support for mpmathify() and nstr(). This is certainly worth adding, what about just using a custom dps like for mode='percent'? We could rename...

bc.. I implemented error_dps as proposed. However: > > > nprint(mpi(1,2), mode='plusminus') > > > 1.5 +- 5.0e-1 > > > nprint(mpi(1,2), mode='plusminus', error_dps=4) > > > 1.5 +- 5.0e-1...

bc.. > Also, to_str should perhaps be more clever about when to use fixed point if dps is > small. Sorry, I missed that. I agree completely, my example is...