Sponsored links: Algebra eBooks
 

Related

slength

Run Example
(%i1)xy: [[7, 9], [9,-1], [-1, -3], [9, -7], [2, 7], [-1,-5], [-9, -1]];
(%o1) [[7, 9], [9, - 1], [- 1, - 3], [9, - 7], [2, 7], [- 1, - 5], [- 9, - 1]]
(%i2) plot2d([[discrete, xy],(17*x+19)/12], [x,0,5],        [style, points, lines], [color, red, blue],        [point_type, asterisk],        [legend, "experiment", "theory"],        [xlabel, "pendulum's length (cm)"],        [ylabel, "period (s)"]);
plotplot2d([[discrete, xy],(17*x+19)/12], [x,0,5],        [style, points, lines], [color, red, blue],        [point_type, asterisk],        [legend, "experiment", "theory"],        [xlabel, "pendulum
Run Example
load(graphs);

Loading /usr/share/tomcat6/.maxima/binary/binary-gcl/share/contrib/graphs/graph_core.o
start address -T 0x2fbe000 Finished loading /usr/share/tomcat6/.maxima/binary/binary-gcl/share/contrib/graphs/graph_core.o
Loading /usr/share/tomcat6/.maxima/binary/binary-gcl/share/contrib/graphs/spring_embedding.o
start address -T 0x2d08000 Finished loading /usr/share/tomcat6/.maxima/binary/binary-gcl/share/contrib/graphs/spring_embedding.o
Loading /usr/share/tomcat6/.maxima/binary/binary-gcl/share/contrib/graphs/isomorphism.o
start address -T 0x2c37000 Finished loading /usr/share/tomcat6/.maxima/binary/binary-gcl/share/contrib/graphs/isomorphism.o
Loading /usr/share/tomcat6/.maxima/binary/binary-gcl/share/contrib/graphs/matching.o
start address -T 0x2ffc360 Finished loading /usr/share/tomcat6/.maxima/binary/binary-gcl/share/contrib/graphs/matching.o
Loading /usr/share/tomcat6/.maxima/binary/binary-gcl/share/contrib/graphs/graph6.o
start address -T 0x26f8000 Finished loading /usr/share/tomcat6/.maxima/binary/binary-gcl/share/contrib/graphs/graph6.o
Loading /usr/share/tomcat6/.maxima/binary/binary-gcl/share/contrib/graphs/demoucron.o
start address -T 0x2c4b000 Finished loading /usr/share/tomcat6/.maxima/binary/binary-gcl/share/contrib/graphs/demoucron.o
Loading /usr/share/tomcat6/.maxima/binary/binary-gcl/share/contrib/graphs/dijkstra.o
start address -T 0x28df000 Finished loading /usr/share/tomcat6/.maxima/binary/binary-gcl/share/contrib/graphs/dijkstra.o
Loading /usr/share/tomcat6/.maxima/binary/binary-gcl/share/contrib/graphs/wiener_index.o
start address -T 0x2d16000 Finished loading /usr/share/tomcat6/.maxima/binary/binary-gcl/share/contrib/graphs/wiener_index.o
(%o1)      /usr/share/maxima/5.21.1/share/contrib/graphs/graphs.mac
(%i2) A : graph_union(empty_graph(1),cycle_graph(9));
(%o2)                                GRAPH
(%i3) add_edge([0,1],A);
(%o3)                                done
(%i4) 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-8,10*i],z) else add_edge([10*i-4,10*i],z)), z);
(%o4) G(s) := (z : A, s : string(s), n : slength(s), 
for i thru n do (z : graph_union(z, A), 
if charat(s, i) = "1" then add_edge([10 i - 8, 10 i], z)
 else add_edge([10 i - 4, 10 i], z)), z)
(%i5) draw_graph(G(1010),show_id=true);
plotdraw_graph(G(1010),show_id=true);
Run Example
debugmode(true);
(%o1)                                true
(%i2) characters:charlist("Ala");
(%o2)                              [A, l, a]
(%i3) for i:1 while i <
 slength("Ala") do( cint(characters[i]) );
(%o3)                                done
(%i4) 
[append,ascii,block,concat,copylist,delete,divsum,first,if,make_random_state,next_prime,second,set_random_state,slength,substring,true] [append,ascii,block,concat,delete,divsum,first,if,make_random_state,next_prime,second,set_random_state,slength,substring,true] [append,ascii,block,concat,delete,divsum,first,if,random,second,slength,substring] [append,ascii,block,concat,divsum,first,if,return,second,slength,substring] [append,ascii,block,concat,divsum,first,if,second,slength,substring] [append,ascii,block,copylist,delete,divsum,first,if,make_random_state,next_prime,print,sconcat,second,set_random_state,slength,substring,true] [append,ascii,block,copylist,delete,divsum,first,if,make_random_state,next_prime,print,sconcat,second,set_random_state,slength,substring] [append,ascii,block,delete,divsum,first,if,make_random_state,next_prime,sconcat,second,set_random_state,slength,substring,true] [append,ascii,block,delete,first,if,make_random_state,next_prime,sconcat,second,set_random_state,slength,substring,true] [append,ascii,concat,first,second,slength,substring] [array,charlist,cint,debugmode,do,listarray,make_array,slength,true] [charlist,cint,debugmode,do,print,slength,true] [charlist,cint,debugmode,do,slength,true] [concat,disp,expand,hipow,listofvars,makelist,part,ratcoef,slength,string,subst,sum,taylor] [concat,expand,hipow,listofvars,makelist,part,ratcoef,slength,string,subst,sum,taylor] [display2d,expand,false,load,plot2d,slength,sqrt] [display2d,expand,false,load,plot2d,slength] [is,slength,string] [load,slength,string,true,union] [plot2d,slength,sqrt] [plot2d,slength]

Related Help

Help for Slength