• How can I see multiple results in a Jupyter notebook?

    From [email protected]@21:1/5 to All on Sun Apr 30 03:24:28 2023
    I already addressed the topic in the last post, but apparently it is not directly connected with "print". So how do I see the output of these lines?

    egf := (1 + x*exp(x*z + z))/(x + 1);
    c := n -> normal(n!*coeff(series(egf, z, 9), z, n));
    for n from 0 to 6 do
    seq(coeff(c(n), x, k), k = 0 .. n);
    end do;

    What I expect is:
    1
    0, 1
    0, 1, 1
    0, 1, 2, 1
    0, 1, 3, 3, 1
    0, 1, 4, 6, 4, 1
    0, 1, 5, 10, 10, 5, 1

    What I get is:
    0, 1, 5, 10, 10, 5, 1

    This is just unreal!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rainer Rosenthal@21:1/5 to All on Sun Apr 30 15:57:20 2023
    Am 30.04.2023 um 12:24 schrieb [email protected]:
    ... it is not directly connected with "print".

    I think it's connected indirectly.
    the expressions in your loop are printed without line feed.
    Try to add a second statement in the loop body.

    Cheers,
    Rainer

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From [email protected]@21:1/5 to All on Sun Apr 30 07:24:22 2023
    ... it is not directly connected with "print".
    I think it's connected indirectly.

    Sure, ultimately all characters are sent to a device, but please not to /dev/null !

    Try to add a second statement in the loop body.

    Ok, so I inserted print("?\n"); in the loop body.
    The surprise is that this (and only this) can be seen in this case:
    "
    🤔

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rainer Rosenthal@21:1/5 to All on Sun Apr 30 19:08:35 2023
    Am 30.04.2023 um 16:24 schrieb [email protected]:
    ... it is not directly connected with "print".
    I think it's connected indirectly.

    Sure, ultimately all characters are sent to a device, but please not to /dev/null !

    Try to add a second statement in the loop body.

    Ok, so I inserted print("?\n"); in the loop body.
    The surprise is that this (and only this) can be seen in this case:
    "
    🤔

    Well, at least SOMETHING changed :-)

    Greetings,
    Rainer

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