acos
7-22
Arc Cosine
acos
Syntax
#include <math.h>
double
acos
(double x);
Defined in
acos.c in rts.src
Description
The acos function returns the arc cosine of a floating-point argument x, which
must be in the range [
−
1,1]. The return value is an angle in the range [0,
π
]
radians.
Example
double realval, radians;
realval = 0.0;
radians = acos(realval);
/* acos return
π
/2 */
return (radians);
Convert Internal Time to String
asctime
Syntax
#include <time.h>
char *
asctime
(const struct tm
*
timeptr);
Defined in
asctime.c in rts.src
Description
The asctime function converts a broken-down time into a string with the
following form:
Mon Jan 11 11:18:36 1988 \n\0
The function returns a pointer to the converted string.
For more information about the functions and types that the time.h header
declares and defines, see section 7.2.12,
Time Functions
Arc Sine
asin
Syntax
#include <math.h>
double
asin
(double x);
Defined in
asin.c in rts.src
Description
The asin function returns the arc sine of a floating-point argument x, which
must be in the range [
−
1,1]. The return value is an angle in the range [
−
π
/2,
π
/2]
radians.
Example
double realval, radians;
realval = 1.0;
radians = asin(realval);
/* asin returns
π
/2 */
Summary of Contents for TMS320C2x
Page 8: ...viii...
Page 69: ...2 47 C Compiler Description...
Page 159: ...6 36...
Page 226: ...8 6...