In particular, since surf
is only available on a UNIX type OS
(and is not included with Sage), plotting using
the commands below in Sage is
only available on such an OS. Incidentally, surf is included with several
popular Linux distributions.
sage: s = singular.eval sage: s('LIB "surf.lib";') ... sage: s("ring rr0 = 0,(x1,x2),dp;") '' sage: s("ideal I = x1^3 - x2^2;") '' sage: s("plot(I);") ...
You can save this plot as a surf script. In the surf window
which pops up, just choose file
, save as
, etc..
(Type q
or select file
, quit
, to close the window.)
The plot produced is omitted but the gentle reader is encouraged to try it out.
See About this document... for information on suggesting changes.