Re:The “Zoo” Constant in Python's Sympy Library
by ftxbro on Thursday June 01, 2023 @03:19PM
(#36156022)
i guess the point is that z is a common complex variable (one that has an imaginary component) like 3+2*i, kind of like how x is a common real variable, and that oo is a cute way that they write infinity in ascii like it's the sideways 8 symbol except written like oo. that said, i think it's dumb and i also think that way to write infinity is dumb.
[ Parent
| on HN ]
Re:The “Zoo” Constant in Python's Sympy Library
by behnamoh on Thursday June 01, 2023 @03:22PM
(#36156072)
I agree. While it might look obvious in hindsight, I think programmers should stick to names that are less confusing. Something like CmplxInf would have made me guess "oh, it's probably complex infinity".
Re:The “Zoo” Constant in Python's Sympy Library
by eljost on Friday June 02, 2023 @06:21AM
(#36163331)
Given the fact that infinity is expressed as sympy.oo in sympy makes the use of sympy.zoo somewhat consistent/unsuprising.
Maybe the OP of the tweet was/is not aware of this use. I wonder if his next tweet will be about sympy using oo for infinity.