<!DOCTYPE html>
<html lang='en'>
<head>
<title>pmd-red - Pokémon Mystery Dungeon: Red Rescue Team</title>
<meta name='generator' content='cgit v1.2.3'/>
<meta name='robots' content='index, nofollow'/>
<link rel='stylesheet' type='text/css' href='/cgit.css'/>
<link rel='shortcut icon' href='/favicon.ico'/>
<link rel='alternate' title='Atom feed' href='http://git.poke.blue/pmd-red/atom/newlib/libm/math/math.tex?h=master' type='application/atom+xml'/>
<link rel='vcs-git' href='https://github.com/pret/pmd-red' title='pmd-red Git repository'/>
</head>
<body>
<div id='cgit'><table id='header'>
<tr>
<td class='logo' rowspan='2'><a href='/'><img src='/cgit.png' alt='cgit logo'/></a></td>
<td class='main'><a href='/'>index</a> : <a title='pmd-red' href='/pmd-red/'>pmd-red</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='f95a4a932476be2ba99e2fd081e8d2bc6ea12813'/><input type='hidden' name='id2' value='f60aca96985e68c7d8a52eb7bc955fb80e132f73'/><select name='h' onchange='this.form.submit();'>
<option value='code'>code</option>
<option value='libc'>libc</option>
<option value='master' selected='selected'>master</option>
<option value='memory'>memory</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>Pokémon Mystery Dungeon: Red Rescue Team</td><td class='sub right'></td></tr></table>
<table class='tabs'><tr><td>
<a href='/pmd-red/'>summary</a><a href='/pmd-red/refs/?id=f95a4a932476be2ba99e2fd081e8d2bc6ea12813'>refs</a><a href='/pmd-red/log/newlib/libm/math/math.tex'>log</a><a href='/pmd-red/tree/newlib/libm/math/math.tex?id=f95a4a932476be2ba99e2fd081e8d2bc6ea12813'>tree</a><a href='/pmd-red/commit/newlib/libm/math/math.tex?id=f95a4a932476be2ba99e2fd081e8d2bc6ea12813'>commit</a><a class='active' href='/pmd-red/diff/newlib/libm/math/math.tex?id=f95a4a932476be2ba99e2fd081e8d2bc6ea12813&amp;id2=f60aca96985e68c7d8a52eb7bc955fb80e132f73'>diff</a></td><td class='form'><form class='right' method='get' action='/pmd-red/log/newlib/libm/math/math.tex'>
<input type='hidden' name='id' value='f95a4a932476be2ba99e2fd081e8d2bc6ea12813'/><input type='hidden' name='id2' value='f60aca96985e68c7d8a52eb7bc955fb80e132f73'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/pmd-red/diff/?id=f95a4a932476be2ba99e2fd081e8d2bc6ea12813&amp;id2=f60aca96985e68c7d8a52eb7bc955fb80e132f73'>root</a>/<a href='/pmd-red/diff/newlib?id=f95a4a932476be2ba99e2fd081e8d2bc6ea12813&amp;id2=f60aca96985e68c7d8a52eb7bc955fb80e132f73'>newlib</a>/<a href='/pmd-red/diff/newlib/libm?id=f95a4a932476be2ba99e2fd081e8d2bc6ea12813&amp;id2=f60aca96985e68c7d8a52eb7bc955fb80e132f73'>libm</a>/<a href='/pmd-red/diff/newlib/libm/math?id=f95a4a932476be2ba99e2fd081e8d2bc6ea12813&amp;id2=f60aca96985e68c7d8a52eb7bc955fb80e132f73'>math</a>/<a href='/pmd-red/diff/newlib/libm/math/math.tex?id=f95a4a932476be2ba99e2fd081e8d2bc6ea12813&amp;id2=f60aca96985e68c7d8a52eb7bc955fb80e132f73'>math.tex</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='id' value='f95a4a932476be2ba99e2fd081e8d2bc6ea12813'/><input type='hidden' name='id2' value='f60aca96985e68c7d8a52eb7bc955fb80e132f73'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><div class='diffstat-header'><a href='/pmd-red/diff/?id=f95a4a932476be2ba99e2fd081e8d2bc6ea12813&amp;id2=f60aca96985e68c7d8a52eb7bc955fb80e132f73'>Diffstat</a> (limited to 'newlib/libm/math/math.tex')</div><table summary='diffstat' class='diffstat'><tr><td class='mode'>-rw-r--r--</td><td class='add'><a href='/pmd-red/diff/newlib/libm/math/math.tex?id=f95a4a932476be2ba99e2fd081e8d2bc6ea12813&amp;id2=f60aca96985e68c7d8a52eb7bc955fb80e132f73'>newlib/libm/math/math.tex</a></td><td class='right'>199</td><td class='graph'><table summary='file diffstat' width='100%'><tr><td class='add' style='width: 100.0%;'/><td class='rem' style='width: 0.0%;'/><td class='none' style='width: 0.0%;'/></tr></table></td></tr>
</table><div class='diffstat-summary'>1 files changed, 199 insertions, 0 deletions</div><table summary='diff' class='diff'><tr><td><div class='head'>diff --git a/newlib/libm/math/math.tex b/newlib/libm/math/math.tex<br/>new file mode 100644<br/>index 0000000..c6035de<br/>--- /dev/null<br/>+++ b/<a href='/pmd-red/tree/newlib/libm/math/math.tex?id=f95a4a932476be2ba99e2fd081e8d2bc6ea12813'>newlib/libm/math/math.tex</a></div><div class='hunk'>@@ -0,0 +1,199 @@</div><div class='add'>+@node Math</div><div class='add'>+@chapter Mathematical Functions (@file{math.h})</div><div class='add'>+</div><div class='add'>+This chapter groups a wide variety of mathematical functions.  The</div><div class='add'>+corresponding definitions and declarations are in @file{math.h}.  </div><div class='add'>+Two definitions from @file{math.h} are of particular interest.  </div><div class='add'>+</div><div class='add'>+@enumerate</div><div class='add'>+@item</div><div class='add'>+The representation of infinity as a @code{double} is defined as</div><div class='add'>+@code{HUGE_VAL}; this number is returned on overflow by many functions.</div><div class='add'>+</div><div class='add'>+@item</div><div class='add'>+The structure @code{exception} is used when you write customized error</div><div class='add'>+handlers for the mathematical functions.  You can customize error</div><div class='add'>+handling for most of these functions by defining your own version of</div><div class='add'>+@code{matherr}; see the section on @code{matherr} for details.</div><div class='add'>+@end enumerate</div><div class='add'>+</div><div class='add'>+@cindex system calls</div><div class='add'>+@cindex support subroutines</div><div class='add'>+@cindex stubs</div><div class='add'>+@cindex OS stubs</div><div class='add'>+Since the error handling code calls @code{fputs}, the mathematical</div><div class='add'>+subroutines require stubs or minimal implementations for the same list</div><div class='add'>+of OS subroutines as @code{fputs}: @code{close}, @code{fstat},</div><div class='add'>+@code{isatty}, @code{lseek}, @code{read}, @code{sbrk}, @code{write}.</div><div class='add'>+@xref{syscalls,,System Calls, libc.info, The Cygnus C Support Library},</div><div class='add'>+for a discussion and for sample minimal implementations of these support</div><div class='add'>+subroutines.</div><div class='add'>+</div><div class='add'>+Alternative declarations of the mathematical functions, which exploit</div><div class='add'>+specific machine capabilities to operate faster---but generally have</div><div class='add'>+less error checking and may reflect additional limitations on some</div><div class='add'>+machines---are available when you include @file{fastmath.h} instead of</div><div class='add'>+@file{math.h}.</div><div class='add'>+</div><div class='add'>+@menu </div><div class='add'>+* version::	Version of library</div><div class='add'>+* acos::	Arccosine</div><div class='add'>+* acosh::	Inverse hyperbolic cosine</div><div class='add'>+* asin::	Arcsine</div><div class='add'>+* asinh::	Inverse hyperbolic sine</div><div class='add'>+* atan::	Arctangent</div><div class='add'>+* atan2::	Arctangent of y/x</div><div class='add'>+* atanh::	Inverse hyperbolic tangent</div><div class='add'>+* jN::	        Bessel functions  (jN, yN)</div><div class='add'>+* cbrt::	Cube root</div><div class='add'>+* copysign::	Sign of Y, magnitude of X</div><div class='add'>+* cosh::	Hyperbolic cosine</div><div class='add'>+* erf::		Error function  (erf, erfc)</div><div class='add'>+* exp::		Exponential</div><div class='add'>+* expm1::	Exponential of x, - 1</div><div class='add'>+* fabs::	Absolute value (magnitude)</div><div class='add'>+* floor::	Floor and ceiling  (floor, ceil)</div><div class='add'>+* fmod::	Floating-point remainder (modulo)</div><div class='add'>+* frexp::	Split floating-point number</div><div class='add'>+* gamma::	Logarithmic gamma function</div><div class='add'>+* hypot::	Distance from origin</div><div class='add'>+* ilogb::	Get exponent</div><div class='add'>+* infinity::	Floating infinity</div><div class='add'>+* isnan::	Check type of number</div><div class='add'>+* ldexp::	Load exponent</div><div class='add'>+* log::		Natural logarithms</div><div class='add'>+* log10::	Base 10 logarithms</div><div class='add'>+* log1p::	Log of 1 + X</div><div class='add'>+* matherr::	Modifiable math error handler</div><div class='add'>+* modf::	Split fractional and integer parts</div><div class='add'>+* nan::		Floating Not a Number</div><div class='add'>+* nextafter::	Get next representable number</div><div class='add'>+* pow::		X to the power Y</div><div class='add'>+* remainder::	remainder of X divided by Y </div><div class='add'>+* scalbn::	scalbn</div><div class='add'>+* sin::		Sine or cosine (sin, cos)</div><div class='add'>+* sinh::	Hyperbolic sine</div><div class='add'>+* sqrt::	Positive square root</div><div class='add'>+* tan::		Tangent</div><div class='add'>+* tanh::	Hyperbolic tangent</div><div class='add'>+@end menu</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@node version</div><div class='add'>+@section Version of library</div><div class='add'>+</div><div class='add'>+There are four different versions of the math library routines: IEEE,</div><div class='add'>+POSIX, X/Open, or SVID.  The version may be selected at runtime by</div><div class='add'>+setting the global variable @code{_LIB_VERSION}, defined in</div><div class='add'>+@file{math.h}.  It may be set to one of the following constants defined</div><div class='add'>+in @file{math.h}: @code{_IEEE_}, @code{_POSIX_}, @code{_XOPEN_}, or</div><div class='add'>+@code{_SVID_}.  The @code{_LIB_VERSION} variable is not specific to any</div><div class='add'>+thread, and changing it will affect all threads.</div><div class='add'>+</div><div class='add'>+The versions of the library differ only in how errors are handled.</div><div class='add'>+</div><div class='add'>+In IEEE mode, the @code{matherr} function is never called, no warning</div><div class='add'>+messages are printed, and @code{errno} is never set.</div><div class='add'>+</div><div class='add'>+In POSIX mode, @code{errno} is set correctly, but the @code{matherr}</div><div class='add'>+function is never called and no warning messages are printed.</div><div class='add'>+</div><div class='add'>+In X/Open mode, @code{errno} is set correctly, and @code{matherr} is</div><div class='add'>+called, but warning message are not printed.</div><div class='add'>+</div><div class='add'>+In SVID mode, functions which overflow return 3.40282346638528860e+38,</div><div class='add'>+the maximum single precision floating point value, rather than infinity.</div><div class='add'>+Also, @code{errno} is set correctly, @code{matherr} is called, and, if</div><div class='add'>+@code{matherr} returns 0, warning messages are printed for some errors.</div><div class='add'>+For example, by default @samp{log(-1.0)} writes this message on standard</div><div class='add'>+error output:</div><div class='add'>+</div><div class='add'>+@example</div><div class='add'>+log: DOMAIN error</div><div class='add'>+@end example</div><div class='add'>+</div><div class='add'>+The library is set to X/Open mode by default.</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/wacos.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/wacosh.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/wasin.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/sasinh.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/satan.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/watan2.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/watanh.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/wj0.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/wcosh.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/serf.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/wexp.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/sfabs.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/sfloor.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/wfmod.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/sfrexp.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/wgamma.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/whypot.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/sisnan.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/sldexp.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/wlog.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/wlog10.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/wpow.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/wremainder.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/wsqrt.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/ssin.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/wsinh.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/stan.def</div><div class='add'>+</div><div class='add'>+@page</div><div class='add'>+@include math/stanh.def</div></td></tr></table></div> <!-- class=content -->
<div class='footer'>generated by <a href='https://git.zx2c4.com/cgit/about/'>cgit v1.2.3</a> (<a href='https://git-scm.com/'>git 2.25.1</a>) at 2025-05-06 21:44:45 +0000</div>
</div> <!-- id=cgit -->
</body>
</html>
