<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Hello Jens,</div>
    <div class="moz-cite-prefix"><br>
      Le 06/12/2021 à 10:40, Jens Simon Strom a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:8de44f6d-31df-1f6a-9210-750c2208f3a7@hslmg.de">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      Hi Samuel,<br>
      Your solution is quite sophisticated. </blockquote>
    <p><br>
      On the opposite, it aims to be simpler.<br>
    </p>
    <p><br>
    </p>
    <blockquote type="cite"
      cite="mid:8de44f6d-31df-1f6a-9210-750c2208f3a7@hslmg.de">To me it
      was confusing to call a function without the input being
      bracketed. And on top of this, that a variable of type <i>constant</i>
      is accepted as a <i>string</i> within the function.</blockquote>
    <p>As a cherry on the cake, the syntax will work as well for literal
      values:</p>
    <pre style="font-family:Monospaced;font-style:normal;font-size:13.0;"><span style="color:rgb(176,24,19);">function</span> <span style="color:rgb(0,0,0);text-decoration:underline;">printc</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(131,67,16);font-weight:bold;">name</span><span style="color:rgb(74,85,219);">)</span>
    <span style="color:rgb(50,185,185);">execstr</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">c = </span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(92,92,92);">+</span><span style="color:rgb(131,67,16);font-weight:bold;">name</span><span style="color:rgb(74,85,219);">)</span>
    <span style="color:rgb(100,174,100);font-style:italic;">//Drucken einer komplexen Zahl mit Betrag und Winkel/°</span>
  <span style="color:rgb(0,0,0);">  Format</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(50,185,185);">strsubst</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(131,67,16);font-weight:bold;">name</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">%</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">%%</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(92,92,92);">+</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">: %f    /_%7.2f°\n</span><span style="color:rgb(188,143,143);">'</span>
    <span style="color:rgb(50,185,185);">mprintf</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">Format</span><span style="color:rgb(0,0,0);">,</span> <span style="color:rgb(50,185,185);">abs</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">c</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">,</span> <span style="color:rgb(188,143,143);">180</span><span style="color:rgb(92,92,92);">/</span><span style="color:rgb(218,112,214);">%pi</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(50,185,185);">atan</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(50,185,185);">imag</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">c</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">,</span> <span style="color:rgb(50,185,185);">real</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">c</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">)</span>
<span style="color:rgb(176,24,19);">endfunction</span></pre>
    <p><font face="monospace">--> printc 3-4*%i<br>
        3-4*%i: 5.000000    /_ -53.13°</font></p>
    <p><font face="monospace"><br>
      </font>
    </p>
    <blockquote type="cite"
      cite="mid:8de44f6d-31df-1f6a-9210-750c2208f3a7@hslmg.de">Scilab
      seems to be more flexible than I would dare to imagine before now.
    </blockquote>
    <p><br>
    </p>
    <p>Handiness is one of the signatures of high level languages.</p>
    Samuel<br>
  </body>
</html>