[Scilab-users] Forum dedicated to Scilab developments
Rafael Guerra
jrafaelbguerra at hotmail.com
Wed Oct 5 19:47:50 CEST 2016
(correction to PS: in previous email)
What looked like a Mobius strip finally isn’t one. For the record, here below the correct equation:
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=[87 50];
Regards,
Rafael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20161005/f7b4e2d1/attachment.htm>
More information about the users
mailing list