62 lines · 935 B · Text
RawDownload
.TH EXP 2.SH NAMEexp, log, log10, pow, pow10, sqrt \- exponential, logarithm, power, square root.SH SYNOPSIS.B #include <u.h>.br.B #include <libc.h>.PP.nf.Bdouble exp(double x).PP.Bdouble log(double x).PP.Bdouble log10(double x).PP.Bdouble pow(double x, double y).PP.Bdouble pow10(int n).PP.Bdouble sqrt(double x).fi.SH DESCRIPTION.I Expreturns the exponential function of.IR x ..PP.I Logreturns the natural logarithm of.IR x ;.I log10returns the base 10 logarithm..PP.I Powreturns.if t .I  x\u\s8y\s10\d.if n x^y,and.I pow10returns.if t .I  10\u\s8n\s10\d.if n 10^nas a double..PP.I Sqrtreturns the square root of.IR x ..SH SOURCEAll these routines have portable C implementations in.BR /sys/src/libc/port .Most also have machine-dependent implementations, written either in assembleror C, in.BR /sys/src/libc/$objtype ..SH SEE ALSO.IR hypot (2),.IR sinh (2),.IR intro (2)