cuikatan2.c File Reference

Detailed Description


A utility to transform boxes with sin/cos to boxes with the correponding angles.

Definition in file cuikatan2.c.


int main (int argc, char **arg)
 Main body of the cuikatan2 application. More...

Function Documentation

int main ( int  argc,
char **  arg 

Main body of the cuikatan2 application.


  • cuikatan2 input_name.sol dim_sin_1 dim_cos_1 ... dim_sin_n dim_cos_n output_name.sol


  • input_name contains the original boxes (those with sin/cos).
  • dim_sin_i the variable for the sinus for the i-th angle.
  • dim_cos_i the variable for the cosinus for the i-th angle.
  • output_name file to be generated contains the boxes with angular variables.

The .sol extensions are optional.

argcNumber of elements in the command line that starts the application (i.e., the cuikatan2 command itself and its arguments).
argStrings with the arguments.
EXIT_SUCCESS (0) if the execution worked out fine and EXIT_FAILURE if not.

Definition at line 62 of file cuikatan2.c.

References CreateFileName(), DeleteBox(), DeleteFileName(), DeleteInterval(), Error(), FALSE, GetBoxInterval(), GetBoxNIntervals(), GetFileFullName(), InitBox(), IntervalAtan2(), NEW, PrintBox(), ReadBox(), SetBoxInterval(), and SOL_EXT.