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-listify-makelist-map-powerset-setify

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

n:length(Dreieck);

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

Calculate

length

Urliste:[ [w,...

length(Urliste);

Calculate

length

A: [[a,o],[eq1,eq2],j];

length(A);

Calculate

length-load-var

load(descriptive);

load(numericalio);

s:[1,2,3,4,5,6,7,8,9,...

Calculate

length

function [f, a, d] = ...

x=[1,2,4,7,8];

n = length([1,2,3,6,5]);

Calculate

length-map-realroots-solve

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

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

xvals: map(rhs,solve(...

Calculate

length-load-var

load(descriptive);

load(numericalio);

s:[37,52,33,44,7,19,2...

Calculate

length-sum

N: [10, 3, 1];

n;

sum(N[i],i,1,length(N));

Calculate

length-sum

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

H:[2,6,4,3,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