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:

Slength

Function: slength (<string>) Returns the number of characters in <string>.

load(graphs);
A : graph_union(empty_graph(1),cycle_graph(9));
add_edge([0,1],A);
draw_graph(A,show_id=true);
G(s) := (z : A, s : string(s), n : slength(s),    for i from 1 thru n do (z : graph_union(z,A),    if charat(s,i)="1" then add_edge([10*i-2,10*i],z) else add_edge([10*i-1,10*i],z)), z);
A : graph_union(empty_graph(1),cycle_graph(9));
add_edge([0,1],A);
draw_graph(A,show_id=true);

(%o1)                                true
(%i2) 

Related Examples

slength-substring

substring("substring"...

Calculate

slength-substring

substring("substring"...

Calculate

slength-substring

substring("substring"...

Calculate

slength-substring

substring("substring"...

Calculate