Skip to content

fix interface to maxima.product #17502

@rwst

Description

@rwst
sage: maxima.product(k,k,1,n).sage()
k^n

That's plain wrong of course and is not what Maxima says on the command line. The second argument (the running variable) apparently is completely ignored.

%i4) product(k,k,1,n);
                                      n
                                    /===\
                                     ! !
(%o4)                                ! !  k
                                     ! !
                                    k = 1
(%i5) product(k,k,1,n), simpproduct;
(%o5)                                 n!

The solution may depend on implementation of a symbolic product function.

See #22920 for the equivalent issue with sums.

CC: @kcrisman @EmmanuelCharpentier

Component: interfaces

Issue created by migration from https://trac.sagemath.org/ticket/17502

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions