rtoy / maxima

A Clone of Maxima's repo
Other
0 stars 0 forks source link

a < b < c should evaluate as (a < b) and (b < c) #3590

Open rtoy opened 3 months ago

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-08 09:34:06 Created by fsenese on 2014-12-27 16:41:39 Original: https://sourceforge.net/p/maxima/bugs/2866


a < b < c should evaluate as (a < b) and (b < c); instead, it gives a syntax error:

incorrect syntax: Found LOGICAL expression where ALGEBRAIC expression expected

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-08 09:34:07 Created by rswarbrick on 2014-12-30 16:14:24 Original: https://sourceforge.net/p/maxima/bugs/2866/#6cad


Well, I'm not convinced about "should" here. That syntax has never been supported by Maxima as far as I know.

I'm going to close this bug report because it's not a bug per se: I guess it's more like a feature request (but I wouldn't recommend opening a SF ticket marked "feature request" - I'm pretty certain that will be completely ignored!).

If you think that implementing this feature would improve Maxima, the best thing to do is to write to the mailing list asking about why it doesn't work like that at the moment: one of the long-time developers might be able to explain the rationale. If everyone says "That's a good idea; let's do it", writing a patch should be reasonably easy. (After all, things like + and * work already). At that point, we can open a ticket to track the (hopefully quick) work to add the feature.