home *** CD-ROM | disk | FTP | other *** search
- /*
- This Disk-Based BlackBox performs the same action as the ARCTAN.C BlackBox.
-
- It requests a variable to get the arctangent value of,
- and a variable to put that result into.
-
- */
-
- #include <syngate1.h>
- #include <math.h>
-
-
-
-
- struct BlackBox_Parameter_Block {
-
- unsigned language_type; /* present in all parameter blocks */
- double *arctangent_result; /* the last parameter requested */
- double *arctangent_argument; /* the first parameter requested */
-
- };
-
-
- struct BlackBox_Parameter_Block *Parameter_Block;
-
- struct BlackBox_Parameter_Block *GET_BLACKBOX_PARAMETER_PTR ();
-
- main ()
-
- {
-
- Parameter_Block = GET_BLACKBOX_PARAMETER_PTR ();
-
- *(Parameter_Block->arctangent_result) = atan (*(Parameter_Block->arctangent_argument));
-
- }
-