Sponsored links: Algebra eBooks
 

Related

union

a : {1,2,3};

b : {a,b};

union(a,b);

Calculate

union

A: {.75};

B: {.83};

union(A, B);

Calculate

union

A: {.75};

B: {.83};

C: union(A, B);

Calculate

union

M1:{49,23,27,665};

M2:{9,23,37,49,66,88};

M3:{48,665,666};

Calculate

union

a : {1,2,3};

b : {a,b};

union(a,b);

Calculate

union

A: {.75};

B: {.83};

union(A, B);

Calculate

union

M1:{49,23,27,665};

M2:{9,23,37,49,66,88};

M3:{48,665,666};

Calculate

union

a = union({1,2,3,4,5}...

Calculate

union

M1:{49,23,27,665};

M2:{9,23,37,49,66,88};

M3:{48,665,666};

Calculate

union

Run Example
(%i1)A: {.75};
(%o1)                               {0.75}
(%i2) B: {.83};
(%o2)                               {0.83}
(%i3) C: union(A, B);
(%o3)                            {0.75, 0.83}
(%i4) 
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
A : {1,2,3};
(%o1)                              {1, 2, 3}
(%i2) B : {};
(%o2)                                 {}
(%i3) union(A,B);
(%o3)                              {1, 2, 3}
(%i4) intersect(A,B);
(%o4)                                 {}
(%i5) 

Related Help

Help for Union