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:

Length

Function: length (<expr>) Returns (by default) the number of parts in the external (displayed) form of <expr>. For lists this is the number of elements, for matrices it is the number of rows, and for sums it is the number of terms (see dispform).

solve(-18*x^2-50=600*x)[1];
solve(-18*x^2-50=600*x)[2];
xvals: map(rhs,solve(-18*x^2-50=600*x));
yvals: map(lhs,solve(-18*x^2-50=600*x));
yvals[1] - xvals[1];
for i:1 while i<=(length(realroots(-18*x^2-50=600*x))) do (mye:yvals[i] - xvals[i],a:if(is(ratsimp(abs(mye-0)<= 0))) then return (100));
a;

The length command is affected by the inflag switch. So, e.g. length(a/(b*c)); gives 2 if inflag is false (Assuming exptdispflag is true), but 3 if inflag is true (the internal representation is essentially a*b^-1*c^-1).

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

(%o1)                                true
(%i2) 

Related Examples

length-matrix-rank

v1:[1,1];

v2:[1,1];

rank(matrix(v1,v2));

Calculate

length-not-part-reveal

(reveal(part((not(L(x...

Calculate

length-not-part-reveal

(reveal(part((not(L(x...

Calculate

length-not-or-part-reveal

((reveal(part((not(L(...

Calculate

length-solve

a: (7)*x^(-4)+(20)*x^...

b: solve(a);

length(b);

Calculate

length-solve-sum

Aufgabe:"Seite 299 un...

x:[1,2,3,4,5];

y:[11,21,31,41,51];

Calculate

length

x:[2,4,3,1,4,2,5];

N:length(x);

Calculate

length-map-realroots-solve

solve(-18*x^2-50=600*...

solve(-18*x^2-50=600*...

xvals: map(rhs,solve(...

Calculate

length-linsolve

X=[-1,0, 1, 2, 3, 4, ...

Y=[10, 9, 7, 5, 4, 3,...

length([-1,0, 1, 2, 3...

Calculate

length

Urliste:[ [w,...

length(Urliste);

Calculate