rtoy / maxima

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

rectform(abs(XX)) should not assume that XX is real #2063

Open rtoy opened 4 months ago

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-05 17:41:47 Created by macrakis on 2016-06-22 18:04:35 Original: https://sourceforge.net/p/maxima/bugs/3179


rectform(abs(XX)) should not assume that XX is real, but instead calculate cabs(XX).

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-05 17:41:48 Created by macrakis on 2016-06-22 18:05:09 Original: https://sourceforge.net/p/maxima/bugs/3179/#7582


Same for cabs(abs(XX))

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-05 17:41:52 Created by robert_dodier on 2017-08-19 17:29:20 Original: https://sourceforge.net/p/maxima/bugs/3179/#bb4e


I don't understand what the bug is here. I've tried this with different versions (5.10, 5.34, and 5.40+) and I get the same results, namely rectform(abs(XX)) --> abs(XX) and cabs(abs(XX)) --> abs(XX). That's the same whether XX is declared real or complex. Isn't abs(XX) the correct result?

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-05 17:41:55 Created by robert_dodier on 2024-06-03 20:16:17 Original: https://sourceforge.net/p/maxima/bugs/3179/#6ce4