rtoy / maxima

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

sort, orderlessp, etc. need to fully disrep their args #2321

Open rtoy opened 4 months ago

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-05 23:40:43 Created by macrakis on 2023-05-25 18:15:57 Original: https://sourceforge.net/p/maxima/bugs/4144


sort([{rat(0)},{rat(1)}]) => Lisp error
sort([intopois(3),intopois(5)]) => Lisp error

sort needs to map ($totaldisrep (specrepcheck ...)) over its args instead of just ratdisrep'ing them.

Actually, it's worse than that: that doesn't handle poisson expressions within aggregates, e.g.,

orderlessp(intopois(1),intopois(2)) => OK
orderlessp([intopois(1)],[intopois(2)]) => Lisp error

Maybe $totaldisrep should handle poisson as well.

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-05 23:40:44 Created by robert_dodier on 2023-11-04 23:05:13 Original: https://sourceforge.net/p/maxima/bugs/4144/#0889