Max Alekseyev on Sat, 29 Oct 2022 13:42:55 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: arithmetic operations with t_INFINITY


Christian, what I ask for has nothing to do with 1/0, which is undefined and should result in an error by any count.

Regards,
Max

On Sat, Oct 29, 2022, 2:53 AM Christian Krause <me@ckrause.org> wrote:
If you consider 1/0 as the limit of 1/x from the positive side of the x-axis, it would be +oo. If you consider it as the limit from the left side, it would be -oo. The choice for +oo seems arbitrary in this case.

On Fri 28. Oct 2022 at 22:14, Max Alekseyev <maxale@gmail.com> wrote:
It seems reasonable to expect that "123 + oo" or "-567 * oo" should evaluate in "+oo" and "-oo", respectively, but at the moment they both result in the "forbidden" error.
Can support of basic arithmetic operations for t_INFINITY be added? Of course, undefined operations such as "oo - oo" should still produce an error.
Thank you!

Max