<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 09/03/2018 à 11:57, Hector R. Lepez
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:1473516067.13167106.1520593068556@mail.yahoo.com">
<div style="font-family:Helvetica Neue, Helvetica, Arial,
sans-serif;font-size:13px;">
<div id="ydp6362763cyahoo_quoted_0760238045"
class="ydp6362763cyahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial,
sans-serif;font-size:13px;color:#26282a;"><span lang="en">I
have problems to graph the function</span><br>
<span lang="en"></span>
<div>
<div id="ydp6362763cyiv8880741167">
<div>
<div style="font-family: Helvetica, Arial, sans-serif;
font-size: 13px;">
<div>
<div>
<pre class="ydp6362763cyiv8880741167ydp2a6ae6f2tw-data-text ydp6362763cyiv8880741167ydp2a6ae6f2tw-ta ydp6362763cyiv8880741167ydp2a6ae6f2tw-text-small" id="ydp6362763cyiv8880741167ydp2a6ae6f2tw-target-text" style="text-align:left;min-height:96px;" dir="ltr"><span lang="en">
x=[-10:1:10]
y = x^(1/3);
plot(x,y);
the same in plot of google gives a graph but scilab does anything with the sign.</span></pre>
</div>
<div><br>
</div>
<div
class="ydp6362763cyiv8880741167ydp297ecf07signature">Héctor
Lépez<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<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>
<p>By default in scilab non-integer power elevation of negative
number is made in the complex domain. The particular case of the
real cubic root can be treated like this :</p>
<p>y = sign(x).*abs(x)^(1/3);</p>
<p>otherwise (-1)^(1/3) gives you one of the complex cubic root of
-1, namely exp(%i*%pi*1/3)<br>
</p>
<p>S.<br>
</p>
<pre class="moz-signature" cols="72">--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
<a class="moz-txt-link-freetext" href="http://www.utc.fr/~mottelet">http://www.utc.fr/~mottelet</a></pre>
</body>
</html>