home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_C
/
RTEXP142.ZIP
/
RTEXP142.EXE
/
INCLUDE
/
RTEXPERT.AFS
< prev
next >
Wrap
Text File
|
1994-03-30
|
2KB
|
65 lines
-- Copyright (c) 1994 The Real-Time Intelligent Systems Corporation
-- function to return the character string associated with a symbol
FUNCTION af_desym (sym: SYMBOL) RETURN STRING;
-- function to return the SYMBOLIC equivalent of a character string
FUNCTION af_sym (str: STRING) RETURN SYMBOL;
-- procedure to set the time variable passed to it to zero
PROCEDURE aft_nul (tim: OUT ABSTIME);
-- procedure to convert calendar time to relative time
PROCEDURE time_ctor (t_hours, t_mins, t_secs, t_millisecs: SHORT;
tim: OUT RELTIME);
-- procedure to convert calendar time to absolute time
PROCEDURE time_ctot (t_year, t_month, t_day, t_hours, t_mins, t_secs, t_millisecs: SHORT;
tim: OUT ABSTIME);
-- procedure to get the current time
PROCEDURE time_get (t_year, t_month, t_day, t_hours, t_mins, t_secs, t_millisecs: OUT SHORT);
-- procedure to convert relative time to calendar time
PROCEDURE time_rtoc (tim: RELTIME;
t_hours, t_mins, t_secs, t_millisecs: OUT SHORT);
-- procedure to convert absolute time to calendar time
PROCEDURE time_ttoc (tim: ABSTIME;
t_year, t_month, t_day, t_hours, t_mins, t_secs, t_millisecs: OUT SHORT);
---------------------------------------------------------------
-- the following are prototypes for commonly used math routines
---------------------------------------------------------------
FUNCTION abs IS labs(n: LONG) return LONG;
FUNCTION abs IS fabs(x: DOUBLE) return DOUBLE;
DYNAMIC FUNCTION random IS af_random(n: LONG) return LONG;
PROCEDURE srandom IS af_srandom (n: LONG);
FUNCTION acos(x: DOUBLE) return DOUBLE;
FUNCTION cos(x: DOUBLE) return DOUBLE;
FUNCTION cosh(x: DOUBLE) return DOUBLE;
FUNCTION asin(x: DOUBLE) return DOUBLE;
FUNCTION sin(x: DOUBLE) return DOUBLE;
FUNCTION sinh(x: DOUBLE) return DOUBLE;
FUNCTION atan(x: DOUBLE) return DOUBLE;
FUNCTION tan(x: DOUBLE) return DOUBLE;
FUNCTION tanh(x: DOUBLE) return DOUBLE;
FUNCTION atan2(x,y: DOUBLE) return DOUBLE;
FUNCTION ceil(x: DOUBLE) return DOUBLE;
FUNCTION floor(x: DOUBLE) return DOUBLE;
FUNCTION fmod(x,y: DOUBLE) return DOUBLE;
FUNCTION log(x: DOUBLE) return DOUBLE;
FUNCTION log10(x: DOUBLE) return DOUBLE;
FUNCTION sqrt(x: DOUBLE) return DOUBLE;