Annotation of researchv10dc/630/man/src/p_man/man3/exp.3m, revision 1.1.1.1

1.1       root        1: .\"#ident      "@(#)ccsman:g3m/exp.3m  1.2"
                      2: .ds x} EXP 3M "630 MTG" "\&"
                      3: .TH \*(x}
                      4: .SH NAME
                      5: exp, log, log10, pow, sqrt \- exponential, logarithm, power, square root functions
                      6: .SH SYNOPSIS
                      7: .nf
                      8: .B #include <ccs/math.h>
                      9: .PP
                     10: .B double exp (x)
                     11: .B double x;
                     12: .PP
                     13: .B double log (x)
                     14: .B double x;
                     15: .PP
                     16: .B double log10 (x)
                     17: .B double x;
                     18: .PP
                     19: .B double pow (x, y)
                     20: .B double x, y;
                     21: .PP
                     22: .B double sqrt (x)
                     23: .B double x;
                     24: .SH DESCRIPTION
                     25: .I Exp\^
                     26: returns
                     27: .IR e\u\s8x\s10\d .
                     28: .PP
                     29: .I Log\^
                     30: returns the natural logarithm of
                     31: .IR x .
                     32: The value of
                     33: .I x\^
                     34: must be positive.
                     35: .PP
                     36: .I Log10\^
                     37: returns the logarithm base ten of
                     38: .IR x .
                     39: The value of
                     40: .I x\^
                     41: must be positive.
                     42: .PP
                     43: .I Pow\^
                     44: returns
                     45: .IR x\u\s8y\s10\d .
                     46: If
                     47: .I x\^
                     48: is zero,
                     49: .I y\^
                     50: must be positive.
                     51: If
                     52: .I x\^
                     53: is negative,
                     54: .I y\^
                     55: must be an integer.
                     56: .PP
                     57: .I Sqrt\^
                     58: returns the non-negative square root of
                     59: .IR x .
                     60: The value of
                     61: .I x\^
                     62: may not be negative.
                     63: .SH SEE ALSO
                     64: hypot(3M),
                     65: matherr(3M),
                     66: sinh(3M).
                     67: .SH DIAGNOSTICS
                     68: .I Exp\^
                     69: returns
                     70: .SM
                     71: .B HUGE
                     72: when the correct value would
                     73: overflow,
                     74: or 0 when the correct value would underflow,
                     75: and sets
                     76: .I errno\^
                     77: to
                     78: .SM
                     79: .BR ERANGE\*S .
                     80: .PP
                     81: .I Log\^
                     82: and
                     83: .I log10
                     84: return
                     85: .SM
                     86: .B \-HUGE
                     87: and set
                     88: .I errno\^
                     89: to
                     90: .SM
                     91: .B EDOM
                     92: when
                     93: .I x\^
                     94: is non-positive.
                     95: A message indicating \s-1DOMAIN\s+1 error (or \s-1SING\s+1 error when
                     96: .I x\^
                     97: is 0) is displayed.
                     98: .PP
                     99: .I Pow\^
                    100: returns 0
                    101: and sets
                    102: .I errno\^
                    103: to
                    104: .SM
                    105: .B EDOM
                    106: when
                    107: .I x\^
                    108: is 0 and
                    109: .I y\^
                    110: is non-positive, or when
                    111: .I x\^
                    112: is negative and
                    113: .I y\^
                    114: is not an integer.
                    115: In these cases a message indicating \s-1DOMAIN\s+1 error is 
                    116: displayed.
                    117: When the correct value for
                    118: .I pow\^
                    119: would overflow or underflow,
                    120: .I pow\^
                    121: returns
                    122: .SM
                    123: .B \(+-HUGE
                    124: or 0 respectively, and sets
                    125: .I errno\^
                    126: to
                    127: .SM
                    128: .B ERANGE.
                    129: .PP
                    130: .I Sqrt\^
                    131: returns 0
                    132: and sets
                    133: .I errno\^
                    134: to
                    135: .SM
                    136: .B EDOM
                    137: when
                    138: .I x\^
                    139: is negative.
                    140: A message indicating \s-1DOMAIN\s+1 error is
                    141: displayed. 
                    142: .PP
                    143: These error-handling procedures may be changed with the function
                    144: .IR matherr (3M).

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.