plot.spad line 1 [edit on github]
The Plot domain supports plotting of functions defined over a real number system. A real number system is a model for the real numbers and as such may be an approximation. For example floating point numbers and infinite continued fractions. The facilities at this point are limited to 2-dimensional plots or either a single function or a parametric function.
adaptive?()
determines whether plotting be done adaptively
debug(true)
turns debug mode on debug(false)
turns debug mode off
maxPoints()
returns the maximum number of points in a plot
minPoints()
returns the minimum number of points in a plot
numFunEvals()
returns the number of points computed
parametric? determines
whether it is a parametric plot?
plot(x, r)
is undocumented
plot([f1, ..., fm], a..b)
plots the functions y = f1(x)
, ..., y = fm(x)
on the interval a..b
.
plot([f1, ..., fm], a..b, c..d)
plots the functions y = f1(x)
, ..., y = fm(x)
on the interval a..b
; y
-range of [c, d]
is noted in Plot object.
plot(f, g, a..b)
plots the parametric curve x = f(t)
, y = g(t)
as t
ranges over the interval [a, b]
.
plot(f, g, a..b, c..d, e..f)
plots the parametric curve x = f(t)
, y = g(t)
as t
ranges over the interval [a, b]
; x
-range of [c, d]
and y
-range of [e, f]
are noted in Plot object.
plot(f, a..b)
plots the function f(x)
on the interval [a, b]
.
plot(f, a..b, c..d)
plots the function f(x)
on the interval [a, b]
; y
-range of [c, d]
is noted in Plot object.
plotPolar(f)
plots the polar curve r = f(theta)
as theta ranges over the interval [0, 2*%
; this is the same as the parametric curve pi
]x = f(t) * cos(t)
, y = f(t) * sin(t)
.
plotPolar(f, a..b)
plots the polar curve r = f(theta)
as theta ranges over the interval [a, b]
; this is the same as the parametric curve x = f(t) * cos(t)
, y = f(t) * sin(t)
.
pointPlot(t +-> (f(t), g(t)), a..b)
plots the parametric curve x = f(t)
, y = g(t)
as t
ranges over the interval [a, b]
.
pointPlot(t +-> (f(t), g(t)), a..b, c..d, e..f)
plots the parametric curve x = f(t)
, y = g(t)
as t
ranges over the interval [a, b]
; x
-range of [c, d]
and y
-range of [e, f]
are noted in Plot object.
refine(p)
performs a refinement on the plot p
refine(x, r)
is undocumented
screenResolution()
returns the screen resolution
setAdaptive(true)
turns adaptive plotting on setAdaptive(false)
turns adaptive plotting off
setMaxPoints(i)
sets the maximum number of points in a plot to i
setMinPoints(i)
sets the minimum number of points in a plot to i
setScreenResolution(i)
sets the screen resolution to i
tRange(p)
returns the range of the parameter in a parametric plot p
zoom(x, r)
is undocumented
zoom(x, r, s)
is undocumented