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:

Addrow

Function: addrow (<M>, <list_1>, ..., <list_n>) Appends the row(s) given by the one or more lists (or matrices) onto the matrix <M>.

numer : true;
f(x):= cos(x) + %e^(-x);
a:1.5;
b:2;
tol: 10^(-1);
M:matrix(["pm", "f(pm)", "err rel"]);
if f(a) * f(b) < 0 then    err: abs(b-a)/(b);
pm : (a+b)/2;
while(err>tol) do(pm : (a+b)/2,M:addrow(M, [pm,f(pm),err]),if f(a) * f(pm)  < 0  then b: pm  else a: pm, err: abs(b-a)/(b));
M;

(%o1)                                true
(%i2) 

Related Examples

addrow-invert-matrix-transpose

A: matrix([335.285156...

Xs: matrix([ -93.2717...

Ys: matrix([ 44.96913...

Calculate

addrow-apply-block-first-lambda-map

P(pts) := block([M],M...

pts : [[-6,7],[-3,-5]...

P(pts);

Calculate

addrow-genmatrix-linsolve_params-random-true

linsolve_params:true;

h[i,j]:=random(5)+1;

A:genmatrix(h,2,3);

Calculate

addrow-ev-log-matrix

rowx:[1,log(x),(log(x...

x:1101.0;

mc:matrix(ev(rowx));

Calculate

addrow-block-concat-false-if-log-matrix-numer-print-return-round-true-while

numer:true;

ln(x):=log(x)/log(%e);

redondeo(num,decimale...

Calculate

addrow-genmatrix

g[i,j]:=i^2+j^2;

M:genmatrix(g,3,3);

addrow(M,[1,2,3]);

Calculate

addrow-matrix

A:matrix([1,2],[3,4]);

l1:matrix([1,1]);

l2:matrix([1,2]);

Calculate

addrow-col-error-load-matrix-rhs

load(lsquares);

D: matrix( [3.2, 12,...

E:matrix( [0.4, -16,...

Calculate