mk_graph Manual

Edition : 2009.02.12

OpenXM.org


Function Manual

Outline

Notation

Functions

mtg.plot3d

mtg.plot3d(formula)
:: Draw a graph of formula
mtg.plot3d(formula | options)
:: Draw a graph of formula. Optional arguments are described below.
return
List
formula
Expression or quote data. It should be a function in x, y.
optinal arguments
domain
List. [[xmin,xmax],[ymin,ymax]]
mesh
Natural number. Division number to mesh the region.
[1210] import("mt_graph.rr");
[1211] mtg.test2();
[1210] import("mt_graph.rr");
[1211] mtg.plot3d(x^2-y^2);
[1210] import("mt_graph.rr");
[1211] mtg.plot3d(x^2-y^2 | domain=[[-1,1],[1,1]]);
[1210] import("mt_graph.rr");
[1211] def myfunc(X,Y) { if (X*Y < 0) return 0; else 1;}
[1212] mtg.plot3d(quote(myfunc(x,y)*x*y));

mtp.parametric_plot3d

mtp.parametric_plot3d(formula)
:: Draw a graph of formula
mtp.parametric_plot3d(formula | options)
:: Draw a graph of formula. Optinal arguments are described below.
return
List
formula
Expression or quote data. It should be a function in s, t.
optinal arguments
domain
List. [[xmin,xmax],[ymin,ymax]]
mesh
Natural number. Division number to mesh the region.
fitting
If it is set to 0, then automatic fitting to the z-direction is not done.
[1210] import("mt_graph.rr");
[1211] mtp.test5();   /*  Klein bottle (8 figure) */
[1210] import("mt_graph.rr");
[1211] mtp.parametric_plot3d([s,t,s^2-t^2]);
[1210] import("mt_graph.rr");
[1211] def myfunc(X,Y) { if (X*Y < 0) return 0; else 1;}
[1212] mtp.parametric_plot3d([s,t,quote(myfunc(s,t)*s*t) | fitting=0);

Index

Jump to: m

m

  • mtg.plot3d
  • mtp.parametric_plot3d
  • Jump to:

    @vfill @eject


    This document was generated on 23 February 2009 using texi2html 1.56k.