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-makelist-plot2d-reverse-solve
plot2d([f(x)],[x,-10,10]);

"*"/* Eine Polynomfun...

"*"/* Eingabe der Pun...

Punkt:[[-4,-5],[-1,-8...

Calculate

length-load-var

load(descriptive);

load(numericalio);

s:[4,6,5,8,6,55,66,7,...

Calculate

length-listify-makelist-map-powerset-setify-sort-sqrt

Dreieck:[[[1, 5], [5,...

n:length(Dreieck);

f(x):=setify(Dreieck[...

Calculate

length-load

load("vect");

E1:[1,2,3];

E2:[2,3,1];

Calculate

length-listify-makelist-permutations

Position:[-2,-1,0.5,1...

Masse:[5,10,15,20];

Reihenfolge:permutati...

Calculate

length-makelist-reverse

"*"/* Eine Polynomfun...

"*"/* Eingabe der Pun...

Punkt:[[-4,0],[-1,-3]...

Calculate

length-sqrt-sum

norm(x):=sqrt(sum(x[i...

norm[1,1,1];

Calculate

length-or-true

length:(not A3 and A0...

length,A3 = false, A2...

Calculate

length-sqrt-sum

norm(x):=sqrt(sum(x[i...

norm[1,1,1];

Calculate

length-sqrt-sum

norm(x):=sqrt(sum(x[i...

norm([1,1,1]);

E(q,r,x):=sum((q[i]*(...

Calculate