Previous Page Next Page Contents

listlib::setDifference -- remove elements from a list

Introduction

listlib::setDifference(list1, list2) removes all elements from list1, that are given by list2.

Call(s)

listlib::setDifference(list1, list2)

Parameters

list1, list2 - a MuPAD list

Returns

the first list without all elements of the second list

Related Functions

_minus

Details

Example 1

listlib::setDifference removes 2, 4, 6 and 8 from the given list:

>> listlib::setDifference([1, 2, 3, 4, 5, 6, 7, 8], [2, 4, 6, 8])
                               [7, 5, 3, 1]

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000