
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 */
Содержание TMS320C2x
Страница 8: ...viii...
Страница 69: ...2 47 C Compiler Description...
Страница 159: ...6 36...
Страница 226: ...8 6...
Страница 250: ...Index Index 14 Z z shell option 2 2 2 4 2 14 overriding with c option 4 5 overriding with n option 2 13...