[Python-ideas] Re: Make 10**400 / 1e200 work?

2022-02-24 Thread om
operations and polar coordinates for */. And then after each +- operation, recalculate the polar coordinates, and vice versa. Though now that I think about it more, that might be far more expensive, and there might also be some issues with recalculating x,y for a complex infinity. Thoughts? Om

[Python-ideas] Re: repeat until

2022-03-01 Thread om
Along similar lines, you could also use the fact that Python does lazy-evaluation to make a do-while which forward-references variables: ``` enter_dw = True while enter_dw or (condition_with_vars_not_defined_the_first_time_through): enter_dw = False define_those_vars() ``` Sketch of a us

[Python-ideas] Re: Make 10**400 / 1e200 work?

2022-02-24 Thread Om Joshi
b.com/omajoshi/complex_math/blob/main/test.py Here are my results vs his: https://github.com/omajoshi/complex_math/blob/main/test.txt The library may be useless, but as far as I can it is associative (at least on Tim's tests). Om On Wed, 23 Feb 2022 22:36:52 -0600 om wrote &g

[Python-ideas] Re: repeat until

2022-03-01 Thread Om Joshi
How does `try/except` (with raise AppropriateException inside the block) compare to a len-1 loop?Om On Tue, 01 Mar 2022 10:04:31 -0600 [email protected] wrote I have use cases for "do exactly once". Basically a sequence of actions which can be broken

[Python-ideas] Re: A modulo operator consistent with euclidean division.

2022-03-20 Thread Om Joshi
ments section. @Tim I believe you are mentioned at the bottom of the post. Om On Sun, 20 Mar 2022 01:53:51 -0500 Ben Rudiak-Gould wrote > On Fri, Mar 18, 2022 at 8:30 PM MRAB wrote: > > Wikipedia describes Euclidean division. > > > > Basically,