1Function: parploth
2Section: graphic
3C-Name: parploth
4Prototype: V=GGJD0,M,D0,L,p\nParametric|1; Recursive|2; no_Rescale|4; no_X_axis|8; no_Y_axis|16; no_Frame|32; no_Lines|64; Points_too|128; Splines|256; no_X_ticks|512; no_Y_ticks|1024; Same_ticks|2048; Complex|4096
5Description:
6  (gen,gen,closure,?small,?small):vec:prec  parploth($1, $2, $3, $4, $5, $prec)
7Help: parploth(X=a,b,expr,{flags=0},{n=0}): parallel version of ploth. Plot
8 of expression expr, X goes from a to b in high resolution. Both flags and n
9 are optional. Binary digits of flags mean: 1=Parametric, 2=Recursive,
10 4=no_Rescale, 8=no_X_axis, 16=no_Y_axis, 32=no_Frame, 64=no_Lines (do not join
11 points), 128=Points_too (plot both lines and points), 256=Splines (use cubic
12 splines), 512=no_X_ticks, 1024= no_Y_ticks, 2048=Same_ticks (plot all ticks
13 with the same length), 4096=Complex (the two coordinates of each point are
14 encoded as a complex number). n specifies number of reference points on the
15 graph (0=use default value). Returns a vector for the bounding box.
16Doc: parallel version of \kbd{ploth}. High precision plot of the function
17 $y=f(x)$ represented by the expression \var{expr}, $x$ going from $a$ to $b$.
18 This opens a specific window (which is killed whenever you click on it), and
19 returns a four-component vector giving the coordinates of the bounding box in
20 the form $[\var{xmin},\var{xmax},\var{ymin},\var{ymax}]$.
21
22 \misctitle{Important note} \kbd{parploth} may evaluate \kbd{expr} thousands of
23 times; given the relatively low resolution of plotting devices, few
24 significant digits of the result will be meaningful. Hence you should keep
25 the current precision to a minimum (e.g.~9) before calling this function.
26
27 The parameter $n$ specifies the number of reference point on the graph, where
28 a value of 0 means we use the hardwired default values; the binary digits of
29 \fl\ have the same meaning
30 as in \kbd{ploth}: $1 = \kbd{Parametric}$; $2 = \kbd{Recursive}$;
31 $4 = \kbd{no\_Rescale}$; $8 = \kbd{no\_X\_axis}$; $16 = \kbd{no\_Y\_axis}$;
32 $32 = \kbd{no\_Frame}$; $64 = \kbd{no\_Lines}$; $128 = \kbd{Points\_too}$;
33 $256 = \kbd{Splines}$; $512 = \kbd{no\_X\_ticks}$;
34 $1024 = \kbd{no\_Y\_ticks}$; $2048 = \kbd{Same\_ticks}$;
35 $4096 = \kbd{Complex}$.
36
37 For instance:
38 \bprog
39 \\ circle
40 parploth(X=0,2*Pi,[sin(X),cos(X)], "Parametric")
41 \\ two entwined sinusoidal curves
42 parploth(X=0,2*Pi,[sin(X),cos(X)])
43 \\ circle cut by the line y = x
44 parploth(X=0,2*Pi,[X,X,sin(X),cos(X)], "Parametric")
45 \\ circle
46 parploth(X=0,2*Pi,exp(I*X), "Complex")
47 \\ circle cut by the line y = x
48 parploth(X=0,2*Pi,[(1+I)*X,exp(I*X)], "Complex")
49 @eprog
50
51 \synt{parploth}{GEN a,GEN b,GEN code, long flag, long n, long prec}.
52