

            set_delete (4) --- remove given element from a set       07/20/84


          | _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n

                 subroutine set_delete (element, set)
                 integer element
                 pointer set

          |      Library: vswtmath (Subsystem mathematical library)


            _F_u_n_c_t_i_o_n

                 'Set_delete'  is  used to remove a given element from a set.
                 The first argument is the element (an  integer  between  one
                 and  the maximum set size, inclusive), and the second is the
                 set from which it is to be removed.

                 All set manipulation routines make use of  dynamic  storage,
                 which  must  be  initialized  before  use.  See 'dsinit' for
                 further information.

                 Note that all set manipulation routines have long names.  To
                 avoid unique name conflicts with other routines, any  Ratfor
                 program  using the set routines should include the following
                 statement:

          |           include "=src=/lib/math/swtmlb_link.r.i"


            _I_m_p_l_e_m_e_n_t_a_t_i_o_n

                 The element selected is compared to the size  field  of  the
                 set;  if  invalid,  'set_delete' prints an error message and
                 terminates the program.   Otherwise,  the  position  of  the
                 element  in  the  bit  vector  is calculated, and the bit is
                 reset by straightforward logical operations.


            _C_a_l_l_s

                 error


            _S_e_e _A_l_s_o

                 other set operations ('set_?*') (4)













            set_delete (4)                - 1 -                set_delete (4)


