<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <font face="Courier New">Thanks, Samuel.<br>
      <br>
      This certainly clarifies how [] behaves. But is there a rationale
      for sum([])==0 and yet cumsum([])==[]?<br>
      <br>
      By the way, it would be useful to include cumsum and cumprod among
      the examples, or at least ensure the respective help pages include
      that information.<br>
      <br>
      Regards, <br>
      <br>
      Federico   <br>
    </font><br>
    <div class="moz-cite-prefix">On 09/02/2020 00:40, Samuel Gougeon
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:5e8a7818-e133-d0c2-03b4-99fe1e6ebadb@free.fr">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div class="moz-cite-prefix">Hello federico,</div>
      <div class="moz-cite-prefix"><br>
      </div>
      <div class="moz-cite-prefix">The empty page is improved in 6.1.0.
        Please have a look to</div>
      <div class="moz-cite-prefix"><a class="moz-txt-link-freetext"
          href="http://bugzilla.scilab.org/15431" moz-do-not-send="true">http://bugzilla.scilab.org/15431</a></div>
      <div class="moz-cite-prefix"><a class="moz-txt-link-freetext"
          href="http://bugzilla.scilab.org/attachment.cgi?id=4929"
          moz-do-not-send="true">http://bugzilla.scilab.org/attachment.cgi?id=4929</a></div>
      <div class="moz-cite-prefix"><br>
      </div>
      <div class="moz-cite-prefix">Thanks<br>
        Samuel<br>
        <br>
      </div>
      <div class="moz-cite-prefix">Le 09/02/2020 à 04:27, Federico
        Miyara a écrit :<br>
      </div>
      <blockquote type="cite"
        cite="mid:5f969cca-98fd-4f82-2cf0-eb451e2820b9@fceia.unr.edu.ar">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <font face="Courier New"><br>
          Dear all,<br>
          <br>
          I note that sum([]) yields 0 instead of []. This is somewhat
          contradictory with the documented behavior that [] + n yields
          [] regardless of the type of n<br>
          <br>
          I allso find that prod([]) yields 1. This is even stranger.
          The common feature is that both are the respective neutral
          element of the operations.<br>
          <br>
          Interestingly, cumsum and cumprod applied to [] yield the
          expected result, []<br>
          <br>
        </font><font face="Courier New">Besides, type([]) is 1
          (constant). Somehow it is asuming an empty matrix is by
          default a container for constants, even in csses such as the
          following:<br>
          <br>
          a = %s<br>
          b = a(1:$-1)  <br>
          <br>
          where b is an empty sub-vector of a polynomial vector.<br>
          <br>
          None of these behaviors seem to be documented. If intentional,
          they should be documented.<br>
          <br>
          Regards,<br>
          <br>
          Federico Miyara<br>
        </font> <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org" moz-do-not-send="true">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users" moz-do-not-send="true">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
      </blockquote>
      <p><br>
      </p>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>