2/15/00
COM1100 Winter2000 Yuhong Yin
5
Mathematical functions
nFunction  Description Returned Value
nabs(x) Absolute Value Same data type as x
npow(x,y) x raised to the y power Data type of argument x
nsqrt(x) Square root of x Same data type as x
nsin(x) Sine of x (x in radiants) double
ncos(x) Cosine of x (x in radiants) double
ntan(x) Tangent of x (x in radiants) double
nlog(x) Natural logarithm of x double
nexp(x) e raised to the x power double
n
n#include <math.h>