📄 ansimath.html
字号:
<p><strong><i>modf</i>( )</strong> - separate a floating-point number into integer and fraction parts (ANSI)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>double modf ( double value, /* value to split */ double * pIntPart /* where integer portion is stored */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine stores the integer portion of <i>value</i>in <i>pIntPart</i> and returns the fractional portion.Both parts are double precision and will have the same sign as <i>value</i>.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>math.h</b><p></blockquote><h4>RETURNS</h4><blockquote><p>The double-precision fractional portion of <i>value</i>.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ansiMath.html#top">ansiMath</a></b>, <b><i><a href="./ansiMath.html#frexp">frexp</a></i>( )</b>, <b><i><a href="./ansiMath.html#ldexp">ldexp</a></i>( )</b><hr><a name="pow"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>pow</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>pow</i>( )</strong> - compute the value of a number raised to a specified power (ANSI)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>double pow ( double x, /* operand */ double y /* exponent */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine returns <i>x</i> to the power of <i>y</i> indouble precision (IEEE double, 53 bits).<p>A domain error occurs if <i>x</i> is negative and <i>y</i> is not an integral value.A domain error occurs if the result cannot be represented when <i>x</i> is zeroand <i>y</i> is less than or equal to zero. A range error may occur.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>math.h</b><p></blockquote><h4>RETURNS</h4><blockquote><p>The double-precision value of <i>x</i> to the power of <i>y</i>.<p>Special cases:<table><tr valign=top><td align=left> (anything) ** 0 </td><td align=left> is </td><td align=left> 1</tr><tr valign=top><td align=left> (anything) ** 1 </td><td align=left> is </td><td align=left> itself</tr><tr valign=top><td align=left> (anything) ** NaN </td><td align=left> is </td><td align=left> NaN</tr><tr valign=top><td align=left> NaN ** (anything except 0) </td><td align=left> is </td><td align=left> NaN</tr><tr valign=top><td align=left> +-(anything > 1) ** +INF </td><td align=left> is </td><td align=left> +INF</tr><tr valign=top><td align=left> +-(anything > 1) ** -INF </td><td align=left> is </td><td align=left> +0</tr><tr valign=top><td align=left> +-(anything < 1) ** +INF </td><td align=left> is </td><td align=left> +0</tr><tr valign=top><td align=left> +-(anything < 1) ** -INF </td><td align=left> is </td><td align=left> +INF</tr><tr valign=top><td align=left> +-1 ** +-INF </td><td align=left> is </td><td align=left> NaN, signal INVALID</tr><tr valign=top><td align=left> +0 ** +(anything non-0, NaN) </td><td align=left> is </td><td align=left> +0</tr><tr valign=top><td align=left> -0 ** +(anything non-0, NaN, odd int) </td><td align=left> is </td><td align=left> +0</tr><tr valign=top><td align=left> +0 ** -(anything non-0, NaN) </td><td align=left> is </td><td align=left> +INF, signal DIV-BY-ZERO</tr><tr valign=top><td align=left> -0 ** -(anything non-0, NaN, odd int) </td><td align=left> is </td><td align=left> +INF with signal</tr><tr valign=top><td align=left> -0 ** (odd integer) </td><td align=left> = </td><td align=left> -(+0 ** (odd integer))</tr><tr valign=top><td align=left> +INF ** +(anything except 0, NaN) </td><td align=left> is </td><td align=left> +INF</tr><tr valign=top><td align=left> +INF ** -(anything except 0, NaN) </td><td align=left> is </td><td align=left> +0</tr><tr valign=top><td align=left> -INF ** (odd integer) </td><td align=left> = </td><td align=left> -(+INF ** (odd integer))</tr><tr valign=top><td align=left> -INF ** (even integer) </td><td align=left> = </td><td align=left> (+INF ** (even integer))</tr><tr valign=top><td align=left> -INF ** -(any non-integer, NaN) </td><td align=left> is </td><td align=left> NaN with signal</tr><tr valign=top><td align=left> -(x=anything) ** (k=integer) </td><td align=left> is </td><td align=left> (-1)**k * (x ** k)</tr><tr valign=top><td align=left> -(anything except 0) ** (non-integer) </td><td align=left> is </td><td align=left> NaN with signal</tr><tr valign=top><td align=left></tr></tr></table></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ansiMath.html#top">ansiMath</a></b>, <b><a href="./mathALib.html#top">mathALib</a></b><p><hr><a name="sin"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>sin</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sin</i>( )</strong> - compute a sine (ANSI)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>double sin ( double x /* angle in radians */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine computes the sine of <i>x</i> in double precision.The angle <i>x</i> is expressed in radians.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>math.h</b><p></blockquote><h4>RETURNS</h4><blockquote><p>The double-precision sine of <i>x</i>.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ansiMath.html#top">ansiMath</a></b>, <b><a href="./mathALib.html#top">mathALib</a></b><hr><a name="cos"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cos</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cos</i>( )</strong> - compute a cosine (ANSI)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>double cos ( double x /* angle in radians */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine computes the cosine of <i>x</i> in double precision.The angle <i>x</i> is expressed in radians.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>math.h</b><p></blockquote><h4>RETURNS</h4><blockquote><p>The double-precision cosine of <i>x</i>.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ansiMath.html#top">ansiMath</a></b>, <b><a href="./mathALib.html#top">mathALib</a></b><hr><a name="sinh"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>sinh</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sinh</i>( )</strong> - compute a hyperbolic sine (ANSI)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>double sinh ( double x /* number whose hyperbolic sine is required */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine returns the hyperbolic sine of <i>x</i> indouble precision (IEEE double, 53 bits).<p>A range error occurs if <i>x</i> is too large.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>math.h</b><p></blockquote><h4>RETURNS</h4><blockquote><p><p>The double-precision hyperbolic sine of <i>x</i>.<p>Special cases:<br> If <i>x</i> is +INF, -INF, or NaN, <b><i><a href="./mathALib.html#sinh">sinh</a></i>( )</b> returns <i>x</i>.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ansiMath.html#top">ansiMath</a></b>, <b><a href="./mathALib.html#top">mathALib</a></b><hr><a name="sqrt"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>sqrt</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sqrt</i>( )</strong> - compute a non-negative square root (ANSI)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>double sqrt ( double x /* value to compute the square root of */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine computes the non-negative square root of <i>x</i> in doubleprecision. A domain error occurs if the argument is negative.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>math.h</b><p></blockquote><h4>RETURNS</h4><blockquote><p>The double-precision square root of <i>x</i> or 0 if <i>x</i> is negative.<p></blockquote><h4>ERRNO</h4><blockquote><p>EDOM<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ansiMath.html#top">ansiMath</a></b>, <b><a href="./mathALib.html#top">mathALib</a></b><hr><a name="tan"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>tan</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>tan</i>( )</strong> - compute a tangent (ANSI)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>double tan ( double x /* angle in radians */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine computes the tangent of <i>x</i> in double precision.The angle <i>x</i> is expressed in radians.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>math.h</b><p></blockquote><h4>RETURNS</h4><blockquote><p>The double-precision tangent of <i>x</i>.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ansiMath.html#top">ansiMath</a></b>, <b><a href="./mathALib.html#top">mathALib</a></b><hr><a name="tanh"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>tanh</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>tanh</i>( )</strong> - compute a hyperbolic tangent (ANSI)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>double tanh ( double x /* number whose hyperbolic tangent is required */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine returns the hyperbolic tangent of <i>x</i> indouble precision (IEEE double, 53 bits).<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>math.h</b><p></blockquote><h4>RETURNS</h4><blockquote><p><p>The double-precision hyperbolic tangent of <i>x</i>.<p>Special cases:<br> If <i>x</i> is NaN, <b><i><a href="./mathALib.html#tanh">tanh</a></i>( )</b> returns NaN.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ansiMath.html#top">ansiMath</a></b>, <b><a href="./mathALib.html#top">mathALib</a></b><p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -