Anonymous user
Symmetric difference: Difference between revisions
m
→{{header|Maple}}
Line 1,317:
Maple has built-in support for set operations. Assign the sets A and B:
<lang Maple>A := {John, Bob, Mary, Serena};
B := {Jim, Mary, John, Bob};</lang>
Now compute the symmetric difference with the '''symmdiff''' command:
<lang Maple>symmdiff(A, B);</lang>
|