Top
Back: plotRotatedList
Forward: plotRotatedListFromSpecifyList
FastBack:
FastForward:
Up: surfex_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.9.4.4 plotRotatedDirect

Procedure from library surfex.lib (see surfex_lib).

Usage:
plotRotatedDirect(list varieties, list #)
This opens the external program surfex for drawing the surfaces given by varieties, seen as a surface in the real affine space with coordinates x,y,z. The format for the list varieties is not fully documented yet; please, see the examples below and try to adjust the examples to suit your needs.
The optional int parameter can be used to set plotting quality.

Assume:
Passes the equations directly to surfex, i.e., the variable names should be x,y,z.
The advantage is that one can use parameters p1, p2, ...; these will be passed to surfex.

Example:
 
LIB "surfex.lib";
"Example:"; 
// A cubic surface depending on a parameter:
ring r = (0,p1), (x,y,z), dp;
poly cayley_cubic = x^3+y^3+z^3+1^3-p1*(x+y+z+1)^3;
// The entries of the list of varieties can either be polynomials
plotRotatedDirect(list(list(list(cayley_cubic)),
list(),
list(list(1,"0.0","1.0","500","0.25+0.25*sin(PI*p1)"))
));
// or strings which represent surfex-readable polynomials
plotRotatedDirect(list(list(list("x^3+y^3+z^3+1^3-p1*(x+y+z+1)^3")),
list(),
list(list("1","0.0","1.0","500","0.25+0.25*sin(PI*p1)"))
));
// More complicated varieties
plotRotatedDirect(list(list(list("x^2+y^2-z^2-3^2"),
list("x*sin(p1)+y*cos(p1)-3")),
list(list(list(1,2))),
list(list("1","0.0","1.0","500","2*PI*p1"))
));


Top Back: plotRotatedList Forward: plotRotatedListFromSpecifyList FastBack: FastForward: Up: surfex_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4-0-3, 2016, generated by texi2html.