• Convert from Mathematica

    From [email protected]@21:1/5 to All on Sun Oct 8 12:58:59 2023
    If out of necessity one is forced to translate a program from
    Mathematica to Maple then (of course) this will not work either.

    restart; with (MmaTranslator):
    convert((Pochhammer[n-k+1, k]/(k!)*Sum[(-1)^j*Sum[Product[(2^(i+m)-1)/(2^i-1), {i, 1, n-k-m-j}], {m, 0, n-k-j}]*Binomial[n-k, j], {j, 0, n-k}]), FromMma);
    simplify(%);

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From acer@21:1/5 to [email protected] on Sun Oct 8 16:31:41 2023
    On Sunday, October 8, 2023 at 3:59:01 PM UTC-4, [email protected] wrote:
    If out of necessity one is forced to translate a program from
    Mathematica to Maple then (of course) this will not work either.

    restart; with (MmaTranslator):
    convert((Pochhammer[n-k+1, k]/(k!)*Sum[(-1)^j*Sum[Product[(2^(i+m)-1)/(2^i-1), {i, 1, n-k-m-j}], {m, 0, n-k-j}]*Binomial[n-k, j], {j, 0, n-k}]), FromMma);
    simplify(%);

    The Help page for convert(..., FromMma) states the following in fourth bullet point of its Description section:
    "If you are using the Maple command prompt, the Mathematica input to be translated Mma_input must be enclosed in double quotes (") or left single (`) quotes."

    Where are such quotes around the Mathematica input, in your code?

    https://www.maplesoft.com/support/help/maple/view.aspx?path=MmaTranslator%2FFromMma

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From [email protected]@21:1/5 to All on Wed Oct 11 15:01:19 2023
    acer: The Help page ...

    Ha!

    (1) Maple gives an answer which does not indicate that there
    was a wrong parameter type; on the contrary, the answer looks
    quite reasonable at first sight.

    pochhammer(n - k + 1, k)*sum((-1)^j*sum(product((2^(i + m) - 1)/(2^i - 1),
    1 = i .. n - k - m - j), 0 = m .. n - k - j)*binomial(n - k, j), 0 = j .. n - k)/k!

    So no help here!

    (2) Then, when using simplify(%), the error message:

    Error, (in product) product variable previously assigned,
    2nd argument evaluates to 1 = i .. n-k-m-j

    Yes, but this error message should actually be addressed to
    Maple, right?

    Anyway, the error message is 'clickable' (Maple says it is the
    specialist for 'clickable math'), so one clicks.

    (3) Next one sees:

    There is no help page available for this error.
    Sorry, we do not have specific information about your error.

    So we don't see any real help, either interactively or afterwards.

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