FUNCTION atan2

(* SCHEMA FUNCTIONAL_DATA_AND_SCHEMATIC_REPRESENTATION_MIM_LF; *)
 
FUNCTION atan2(y : REAL; x : REAL) : REAL;
LOCAL
  r : REAL;
END_LOCAL;
  IF (y = 0.0) AND (x = 0.0) THEN
    RETURN (?);
  END_IF;
  r := ATAN(y, x);
  IF x < 0.0 THEN
    IF y < 0.0 THEN
      r := r - PI;
    ELSE
      r := r + PI;
    END_IF;
  END_IF;
  RETURN (r);
END_FUNCTION;

Referenced By

Defintion atan2 is references by the following definitions:
DefinitionType
 enclose_cregion_in_pregion FUNCTION
 enclose_pregion_in_pregion FUNCTION
 member_of FUNCTION
 simplify_function_application FUNCTION


[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2012-03-27T17:17:33-04:00