Mon Feb 16 10:33:36 MST 1998 aquarius% mupad *----* MuPAD 1.4.0 -- Multi Processing Algebra Data Tool /| /| *----* | Copyright (c) 1997 - 98 by SciFace Software GmbH | *--|-* All rights reserved. |/ |/ *----* Licensed to: Michael Wester >> # ----------[ M u P A D ]---------- # >> # ---------- Initialization ---------- # >> TEXTWIDTH:= 80: >> read("../../Time.mupad"): >> # ---------- Set Theory ---------- # >> x:= {a, b, b, c, c, c}: >> y:= {d, c, b}: >> z:= {b, e, b}: >> # [x \/ y \/ z, x /\ y /\ z] => [{a, b, c, d, e}, {b}] # >> [x union y union z, x intersect y intersect z]; [{a, b, c, d, e}, {b}] Time: 250 msec Type: DOM_LIST >> # x \/ y \/ z - x /\ y /\ z => {a, c, d, e} # >> %[1] minus %[2]; {a, c, d, e} Time: 60 msec Type: DOM_SET >> x:= NIL: >> y:= NIL: >> z:= NIL: >> # Cartesian product of sets => {(a, c), (a, d), (b, c), (b, d)} # >> combinat::cartesian({a, b}, {c, d}); {[a, c], [a, d], [b, c], [b, d]} Time: 290 msec Type: DOM_SET >> # ---------- Quit ---------- # >> quit real 3.05 user 2.41 sys 0.46