[Scilab-users] Help me plot y = x^(1/3);

CRETE Denis denis.crete at thalesgroup.com
Fri Mar 9 13:18:46 CET 2018


Hello,

The operator ^ seems to return the real part of one of the complex roots of x^3=1.
If x=[-10:1:10]
and
y = x^(1/3);
Thus, for x<0, the values of y are half the opposite of values obtained with x>0.
With y=x.^(1/3), the values of y are complex for x<0.
HTH
Denis
De : users [mailto:users-bounces at lists.scilab.org] De la part de Hector R. Lepez
Envoyé : vendredi 9 mars 2018 11:58
À : users at lists.scilab.org
Objet : [Scilab-users] Help me plot y = x^(1/3);

I have problems to graph the function

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.

Héctor Lépez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180309/10e258e2/attachment.htm>


More information about the users mailing list