Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Draw Calculator

Draw

Function: draw (<gr2d>, ..., <gr3d>, ..., <options>, ...) Plots a series of scenes; its arguments are gr2d and/or gr3d objects, together with some options. By default, the scenes are put together in one column.

load(draw);
draw2d(                       grid  =     true,                       line_type = solid,                       key       = "y^3+y^2-5*y-x^2=-4",                      implicit(y^3+y^2-5*y-x^2=-4, x, -4,4, y, -4,4),                                                                                        color="purple",explicit(-4/5*x+8/5,x,-4,4),explicit(-3.1,x,-4,4),explicit(1/8*x-25/8,x,-4,4));

Function draw accepts the following global options: terminal, columns, pic_width, pic_height, eps_width, eps_height, file_name and delay.

Functions draw2d and draw3d are short cuts to be used when only one scene is required, in two or three dimensions, respectively.

To make use of this function, write first load(draw).

Example:

          (%i1) load(draw)$
          (%i2) scene1: gr2d(title="Ellipse",
                             nticks=30,
                             parametric(2*cos(t),5*sin(t),t,0,2*%pi))$
          (%i3) scene2: gr2d(title="Triangle",
                             polygon([4,5,7],[6,4,2]))$
          (%i4) draw(scene1, scene2, columns = 2)$

     The two draw sentences are equivalent:
          (%i1) load(draw)$
          (%i2) draw(gr3d(explicit(x^2+y^2,x,-1,1,y,-1,1)));
          (%o2)                          [gr3d(explicit)]
          (%i3) draw3d(explicit(x^2+y^2,x,-1,1,y,-1,1));
          (%o3)                          [gr3d(explicit)]

     An animated gif file:
          (%i1) load(draw)$
          (%i2) draw(
                  delay     = 100,
                  file_name = "zzz",
                  terminal  = animated_gif,
                  gr2d(explicit(x^2,x,-1,1)),
                  gr2d(explicit(x^3,x,-1,1)),
                  gr2d(explicit(x^4,x,-1,1)));
          End of animation sequence
          (%o2)          [gr2d(explicit), gr2d(explicit), gr2d(explicit)]

See also gr2d, gr3d, draw2d and draw3d..

There are also some inexact matches for draw. Try ?? draw to see them.

(%o1)                                true
(%i2) 

Draw Example

Related Examples

draw-draw3d-load
draw3d(    surface_hide = true,      enhanced3d = true,    implicit( x^2+y^2-z^2= 1, x, -5, 5, y, -5, 5, z, -5,5));

load (draw);

draw3d( surface_hi...

Calculate

draw-load-sqrt

load(draw);

u:[-5,-3,-4];

v:[1,-4,1];

Calculate

draw-draw2d-explicit-float-load-solve
draw2d(terminal = eps,grid=true,line_type=solid,implicit(y^3+y^2-5*y-x^2=-4,x,-4,4,y,-4,4),color="red",explicit(-4/5*x+8/5,x,-4,4),explicit(-3.060647027554142,x,-4,4),explicit(1/8*x-24/8,x,-4,4));

load(draw);

draw2d(terminal = eps...

float(solve(y^3+y^2-5...

Calculate

draw-load

load(draw);

ro:[-4,-3,-2];

r:[3,5,2];

Calculate

draw-draw2d-explicit-load
draw2d(explicit(f(x),x,-6,6),color="green",vector(Po,[9,0]),vector([4,-8],[0,11]));

load(draw);

Po:[-5,-8];

P:[4,3];

Calculate

draw-draw2d-ematrix-genmatrix-load-makelist
draw2d(point_type=6,point_size=1,points_joined = true,points(p100));

n:16;

h[i,j]:= if mod(i-j,n...

M:genmatrix (h,n,n);

Calculate

draw-draw3d-load
draw3d(enhanced3d = true, implicit(ellips1, x,-3,3, y,-2,2, z,-2,2), palette=[10, 3, 5] );

ellips1: (x^2)/3 + y^...

load(draw);

draw3d(enhanced3d = t...

Calculate

draw-draw2d-explicit-load
draw2d(explicit(M*X+b,X,-5,4),head_length=0.1,color="red",key="delta x",vector(P0,[7,0]),color="black",key="delta y",vector([3,-3],[0,8]));

load(draw);

P0:[-4,-3];

P:[3,5];

Calculate

draw-draw3d-load
draw3d(palette = [4,6,9], enhanced3d = true, implicit(hyperboloid, x,-4,2, y,-4,2, z,-1.5,1.5));

load(draw);

hyperboloid: 2*x^2 +...

draw3d(palette = [4,6...

Calculate

draw-draw2d-length-load-makelist-points
draw2d(points(Puntos));

a:[1,3,5,7,2,4,6,8];

b:[20,30,40,50,60,70,...

d:[a,b];

Calculate