• Bug#1013232: maxima: Incorrect remainder evaluation with unbound variab

    From Camm Maguire@21:1/5 to All on Thu May 15 01:30:01 2025
    tags 1013232 forwarded maxima-discuss@lists.sourceforge.net
    thanks

    Greetings, and thanks for your report! ============================================================================= Dear Maintainer,

    entering

    2 * remainder(45, 7);

    returns 6, as expected.


    But using an unbound variable, a in this case,

    2 * remainder(45, a);

    returns 90, which is incorrect. The input should be returned unchanged. =============================================================================

    Take care,
    --
    Camm Maguire camm@maguirefamily.org ==========================================================================
    "The earth is but one country, and mankind its citizens." -- Baha'u'llah

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Camm Maguire@21:1/5 to All on Thu May 15 16:30:01 2025
    forwarded 1013232 maxima-discuss@lists.sourceforge.net
    thanks

    Greetings, and thanks for your report! ============================================================================= Dear Maintainer,

    entering

    2 * remainder(45, 7);

    returns 6, as expected.


    But using an unbound variable, a in this case,

    2 * remainder(45, a);

    returns 90, which is incorrect. The input should be returned unchanged. =============================================================================

    Take care,
    --
    Camm Maguire camm@maguirefamily.org ==========================================================================
    "The earth is but one country, and mankind its citizens." -- Baha'u'llah

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)