IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 28, 2016, 11:09:46 AM (10 years ago)
Author:
eugene
Message:

add datan2, set atan2 to return radians as it should

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.shell/convert_to_RPN.c

    r38441 r39558  
    7676    if (!strcmp (argv[i], "max"))    { type = ST_BINARY; strcpy (argv[i], "U"); goto gotit; }
    7777    if (!strcmp (argv[i], "min"))    { type = ST_BINARY; strcpy (argv[i], "D"); goto gotit; }
    78     if (!strcmp (argv[i], "atan2"))  { type = ST_BINARY; goto gotit; }
     78    if (!strcmp (argv[i], "atan2"))  { type = ST_BINARY; strcpy (argv[i], "a"); goto gotit; }
     79    if (!strcmp (argv[i], "datan2")) { type = ST_BINARY; strcpy (argv[i], "d"); goto gotit; }
    7980    if (!strcmp (argv[i], ","))      { type = ST_COMMA; goto gotit; }
    8081
Note: See TracChangeset for help on using the changeset viewer.