>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  SIGN

SIGN

SIGN

Name


      SIGN

Purpose


      Return the mathematical sign of the argument.

Category


Calling Sequence


      s = sign(x)

Inputs


      x = value of array of values. in

Keyword Parameters


Outputs


      s = sign of value(s). out

Common Blocks


Notes


Note


        s = -1 for x < 0
        s = 0 for x = 0
        s = 1 for x > 0

Modification History


      R. Sterner, 7 May, 1986.
      Johns Hopkins University Applied Physics Laboratory.
      RES 15 Sep, 1989 --- converted to SUN.
RES 23 Sep, 1991 --- rewrote, reducing 11 lines of code to 1.
  Copyright (C) 1986, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us