### Related

##### display-do-floor-linsolve-plot2d

eq1:x*4+y-2=y;

eq2:x+2=y;

linsolve([eq1,eq2],[x...

Calculate

##### display-linsolve

eq1:(vp -v1p)/R1 + (v...

eq2:(vn-v1n)/R1 + (v1...

eq3:linsolve([eq1,eq2...

Calculate

##### display-do

eq1:0;

for m:1 thru 2 do(for...

display(eq1);

Calculate

##### display-pi

1/* EINGABE */;

r:5;

2/* BERECHNUNGEN */;

Calculate

v:29.2;

h:0;

t:0;

Calculate

##### display-do

f:[[1,2],[1,3],[2,4],...

g:[[2,a],[3,c],[4,d]];

tmp1:0;

Calculate

##### display-print

k:5;

for i:1 thru 100 do k...

display(k);

Calculate

P: k + 1;

Q: 2*k+3;

R : P/Q;

Calculate

##### display

xK = [7.35934,7.6167,...

yK = [7.1, 7.9, 9.9, ...

xMean = 0;

Calculate

##### display-matrix

display(matrix([3,5],...

Calculate

### display

Run Example
```(%i1)load(draw);
(%o1)            /usr/share/maxima/5.21.1/share/draw/draw.lisp
(%i2) for i:1 thru 5 do    {    for j:1 thru 3 do        {       display(i,j)        }    };
i = 1

j = 1

i = 1

j = 2

i = 1

j = 3

i = 2

j = 1

i = 2

j = 2

i = 2

j = 3

i = 3

j = 1

i = 3

j = 2

i = 3

j = 3

i = 4

j = 1

i = 4

j = 2

i = 4

j = 3

i = 5

j = 1

i = 5

j = 2

i = 5

j = 3

(%o2)                                done
(%i3) ```
Run Example
```numer:true;
(%o1)                                true
(%i2) x:[166,187,169,191,175,161,176,170,195,197,187,168,171,161,173];
(%o2) [166, 187, 169, 191, 175, 161, 176, 170, 195, 197, 187, 168, 171, 161,
173]
(%i3) n:length(x);
(%o3)                                 15
(%i4) m:1/n*sum(x[i],i,1,n);
(%o4)                          176.4666666666667
(%i5) v:1/n*sum((x[i]-m)^2,i,1,n);
(%o5)                          133.3155555555556
(%i6) s:sqrt(v);
(%o6)                          11.54623555777187
(%i7) display(m,v,s);
m = 176.4666666666667

v = 133.3155555555556

s = 11.54623555777187

(%o7)                                done
(%i8) ```
Run Example
```numer:true;
(%o1)                                true
(%i2) ln(x):=log(x)/log(%e);
log(x)
(%o2)                          ln(x) := -------
log(%e)
(%i3) redondeo(num,decimales):=block(       [a:0],   a:round(num*10^decimales)*10^-decimales,    return(a));
(%o3) redondeo(num, decimales) := block([a : 0],
decimales    - decimales
a : 'round(num 10         ) 10           , return(a))
(%i4) biseccion(a,b,expo,N):=block(       [indice:0,bool:true,fa,fp,fb,fafp,TOL,p,er,tabla:matrix(['N,'a,'b,'p,'f('a),'f('b),'f('p),'f('a)*'f('p),'error])],      fa:f(a),   fa:redondeo(fa,expo+2),   TOL:(10)^(-expo),   for i:1 step 1 while (i<
=N and bool=true) do   (      indice:i,      p:((a+b)/2),         p:redondeo(p,expo+2),      fp:f(p),         fp:redondeo(fp,expo+2),      fb:f(b),         fb:redondeo(fb,expo+2),      er:((b-a)/2),         er:redondeo(er,expo+2),      fafp:redondeo(fa*fp,expo+2),            if ( (fa<
0 and fb<
0) or (fa>
0 and fb>
0) ) then      (	           print("No hay cambio de signo"),	 bool:false      ),      tabla:addrow(tabla,[i,a,b,p,fa,fb,fp,fafp,er]),            if ((fp=0) or (er <
TOL)) then      (         print("tolerancia cumplida"),	 bool:false      )      elseif (fafp>
0) then      (         a:p,         fa:fp      )      else      (         b:p      )   ),      if (indice=N) then    (      print(concat("Parametro N=",N," se cumplio. Hay cambios de signo f(a) f(b)")),      print("en las iteraciones hechas.")   ),   display(indice,N),   return(tabla));
(%o4) biseccion(a, b, expo, N) := block([indice : 0, bool : true, fa, fp, fb,
fafp, TOL, p, er, tabla : matrix(['N, 'a, 'b, 'p, 'f('a), 'f('b), 'f('p),
'f('a) 'f('p), 'error])], fa : f(a), fa : redondeo(fa, expo + 2),
- expo
TOL : 10      , for i while (i <= N) and (bool = true)
a + b
do (indice : i, p : -----, p : redondeo(p, expo + 2), fp : f(p),
2
fp : redondeo(fp, expo + 2), fb : f(b), fb : redondeo(fb, expo + 2),
b - a
er : -----, er : redondeo(er, expo + 2), fafp : redondeo(fa fp, expo + 2),
2
if ((fa < 0) and (fb < 0)) or ((fa > 0) and (fb > 0))
then (print("No hay cambio de signo"), bool : false),
tabla : addrow(tabla, [i, a, b, p, fa, fb, fp, fafp, er]),
if (fp = 0) or (er < TOL) then (print("tolerancia cumplida"), bool : false)
elseif fafp > 0 then (a : p, fa : fp) else b : p),
if indice = N then (print(concat("Parametro N=", N,
" se cumplio. Hay cambios de signo f(a) f(b)")),
print("en las iteraciones hechas.")), display(indice, N), return(tabla))
(%i5) f(x):=x-2^-x;
- x
(%o5)                          f(x) := x - 2
(%i6) biseccion(0,1,3,3);
Parametro N=3 se cumplio. Hay cambios de signo f(a) f(b)
en las iteraciones hechas.
indice = 3

N = 3

[ N   a    b      p      f(a)      f(b)     f(p)     f(a) f(p)  error ]
[                                                                     ]
[ 1   0    1     0.5     - 1.0     0.5    - 0.20711   0.20711    0.5  ]
(%o6) [                                                                     ]
[ 2  0.5   1    0.75   - 0.20711   0.5     0.1554    - 0.03218  0.25  ]
[                                                                     ]
[ 3  0.5  0.75  0.625  - 0.20711  0.1554  - 0.02342   0.00485   0.125 ]
(%i7) ```

Help for Display