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-ev-log-matrix

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

x:1101;

mc:matrix(ev(rowx));

Calculate

addrow-do-genmatrix-kill-linsolve_params-print-random-true

linsolve_params:true;

for n:1 thru 3 do(kil...

Calculate

addrow-ev-log-matrix

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

x:110.0;

mc:matrix(ev(rowx));

Calculate

addrow-block-load-matrix

load(interpol);

f(n):=block([l],l:mat...

M:f(10);

Calculate

addrow-ev-matrix

rowx:[1,x,x^2,x^3];

x:1101.0;

mc:matrix(ev(rowx));

Calculate

addrow-matrix

A:matrix([1,2,3,4],[1...

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

l2:matrix([1,1,2,2]);

Calculate

addrow-ev-matrix

rowx:[1,x,x^2,x^3];

x:1101.0;

mc:matrix(ev(rowx));

Calculate

addrow-genmatrix

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

M:genmatrix(g,3,3);

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

Calculate