/* ef_c.c elementary functions in C */ #include #include int main(int argc, char *argv[]) { double x, y, z; /* any other input numeric type converted to double */ /* any other numeric LHS converted from double */ printf("elementary functions in C from math.h \n"); y = pow(x, z); y = sqrt(x); y = log(x); y = exp(x); y = sin(x); y = cos(x); y = tan(x); /* y = cot(x); not available 1.0/tan(x) */ /* y = csc(x); not available 1.0/sin(x) */ /* y = sec(x); not available 1.0/cos(x) */ y = asin(x); y = acos(x); y = atan(x); y = atan2(x, z); y = sinh(x); y = cosh(x); y = tanh(x); y = asinh(x); y = acosh(x); y = atanh(x); printf("end ef_c.c, no output expected. \n"); return 0; }