up previous next
ImplicitPlotOn

outputs the zero locus of a bivariate polynomial to a file

Syntax
ImplicitPlotOn(F: POLY, Xrange: LIST, Yrange: LIST, PlotFileName: STRING)

Description
This function is the same as ImplicitPlot with a fourth argument giving the name of the file to print on.

Note that the last argument is a STRING, the name of the file, and not an OSTREAM, as for print on .

Example
/**/  use R ::= QQ[x,y];
/**/  F := x^2 + y^2 - 100;
/**/  G := ((x+y)^2-1)*(x^2-36);
/**/  H := ((64*y^2-36*x^2)*(36*y^2-64*x^2)*(100*x^2-y^2)-1) * F - 1000^2 * G;

/**/  ImplicitPlotOn(F, [-16,16], [-16,16], "PLOT-circle");
Plotting points...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
640 plotted points have been placed in the file circle

/**/  ImplicitPlotOn(G, [-16,16], [-16,16], "PLOT-lines");
Plotting points...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
1502 plotted points have been placed in the file lines

/**/  ImplicitPlotOn(H, [-16,16], [-16,16], "PLOT-curve");
Plotting points...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
2790 plotted points have been placed in the file curve
After having produced the plot files using CoCoA-4, start "gnuplot" and then give it the following commands:
  plot "circle"
  replot "lines"
  replot "curve"

See Also