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).

numer:true;
x:[166,187,169,191,175,161,176,170,195,197,187,168,171,161,173];
n:length(x);
m:1/n*sum(x[i],i,1,n);
v:1/n*sum((x[i]-m)^2,i,1,n);
s:sqrt(v);
display(m,v,s);

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-part

length(part(3*x^2+3+x...

part(3*x^2+3+x-2,3);

Calculate

length-makelist-reverse-transpose

"*"/* Eine Polynomfun...

"*"/* Eingabe der Pun...

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

Calculate

length-makelist-reverse-solve

"*"/* Eine Polynomfun...

"*"/* Eingabe der Pun...

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

Calculate

length-solve

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

b: solve(a);

length(b);

Calculate

length-listify-makelist-map-powerset-setify

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

n:length(Dreieck);

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

Calculate

length

a1:x/t;

a(x):=a1;

x:3;

Calculate

length-matrix-transpose

L1:matrix([10,50,70,8...

b:length(transpose(L1));

sysgcd:gcd(L1[1,b-1],...

Calculate

length-listify-permutations-random

listperms: listify(pe...

l:random(length(listp...

B:listperms[l];

Calculate

length-makelist-map

mindestflaeche:1000;

hoechstpreis:100000;

grundstueck:[[30,40,7...

Calculate

length-solve

f(x):=x^3-2*x^2-5*x+6;

sy:f(0);

g:solve(f(x)=0);

Calculate