[Scilab-users] Forum dedicated to Scilab developments

Samuel Gougeon sgougeon at free.fr
Wed Oct 5 22:10:05 CEST 2016


Le 05/10/2016 19:47, Rafael Guerra a écrit :
>
> /(correction to PS: in previous email)/
>
> What looked like a Mobius strip finally isn’t one. For the record, 
> here below the correct equation:
>
Do you still promise a donut against one character change from this new 
code ?
A 2-cent donut, it is rather cheap.
A 1-char job as well.
:)

> p1=_linspace_(-1,1,50);
>
> p2=_linspace_(0,2*%pi,50);
>
> deff("[x,y,z]=f(p1,p2)",["x=(R+r*p1.*cos(p2/2)).*cos(p2)";..
>
> "y=(R+r*p1.*cos(p2/2)).*sin(p2)";..
>
> "z=r*p1.*sin(p2/2)"])
>
> [x,y,z]=_eval3dp_(f,p1,p2);
>
> plot3d(x,y,z)
>
> a=_gca_();
>
> a.rotation_angles=[8750];
>
> Regards,
>
> Rafael
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20161005/f02c8cb6/attachment.htm>


More information about the users mailing list