Index Page
cspice_vrelg
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_VRELG returns the relative difference between two
   double precision N-vectors.

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

I/O


   Given:

      vec1,
      vec2   two double precision N-vectors.

   the call:

      diff = cspice_vrel( vec1, vec2 )

   returns:

      diff   the scalar double precision relative difference of the
             two vectors.

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.


      vec1 = [ 12.3d   , -4.32d ,  76.d ,  1.87d ]

      vec2 = [ 23.0423d, -11.99d, -0.10d, -99.1d ]

      diff = cspice_vrelg( vec1, vec2 )

      print, diff

   IDL outputs:

      1.2408623

Particulars


   None.

Required Reading


   ICY.REQ

Version


   -Icy Version 1.0.1, 13-JUN-2011, EDW (JPL)

      Edits to comply with NAIF standard for Icy headers.

   -Icy Version 1.0.0, 16-JUN-2003, EDW (JPL)

Index_Entries


   relative difference of n-dimensional vectors




Wed Apr  5 17:58:04 2017