Index Page
cspice_wncomd
A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X 

Abstract
I/O
Examples
Particulars
Required Reading
Version
Index_Entries

Abstract


   CSPICE_WNCOMD returns the complement of a double precision
   window with respect to a specified interval.

I/O


   Given:

      left,
      right    values defining the left and right endpoints of the complement
               interval.

               [1,1] = size(right); double = class(right)

      window   SPICE window containing zero or more intervals

               [2m,1] = size(window); double = class(window)

   the call:

      result = cspice_wncomd( left, right, window)

   returns:

      result   SPICE window containing the complement of 'window' with respect
               to the interval 'left' to 'right'

               [2n,1] = size(result); double = class(result)

Examples


   Any numerical results shown for this example may differ between
   platforms as the results depend on the SPICE kernels used as input
   and the machine specific arithmetic implementation.

      %
      % Let 'window' contain the intervals
      %
      window = [ [ 1; 3 ];  [ 7; 11 ];  [ 23; 27 ];  ];

      %
      % The floating point complement of window with respect
      % to [2,20]
      %
      cspice_wncomd( 2, 20, window )

   MATLAB outputs:

      a =

           3
           7
          11
          20

      Representing the intervals:

      [ 3, 7 ]  [ 11, 20 ]

      %
      % The complement with respect to [ 0, 100 ]
      %
      cspice_wncomd( 0, 100, window )

   MATLAB outputs:

      b =

           0
           1
           3
           7
          11
          23
          27
         100

      Representing the intervals:

      [ 0, 1 ]  [ 3, 7 ]  [ 11, 23 ]  [ 27, 100 ]

Particulars


   None.

Required Reading


   For important details concerning this module's function, please refer to
   the CSPICE routine wncomd_c.

   MICE.REQ
   WINDOWS.REQ

Version


   -Mice Version 1.0.1, 12-MAR-2012, EDW (JPL), SCK (JPL)

      Edited I/O section to conform to NAIF standard for Mice documentation.

   -Mice Version 1.0.0, 24-JUL-2007, EDW (JPL)

Index_Entries


   complement a d.p. window


Wed Apr  5 18:00:36 2017