12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667 |
- <?xml version="1.0" encoding="ISO8859-1"?>
- <fpdoc-descriptions>
- <!--
- $Id$
- This file is part of the FPC documentation.
- Copyright (C) 1997, by Michael Van Canneyt
-
- The FPC documentation is free text; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public License as
- published by the Free Software Foundation; either version 2 of the
- License, or (at your option) any later version.
-
- The FPC Documentation is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with the FPC documentation; see the file COPYING.LIB. If not,
- write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
- -->
- <package name="rtl">
- <module name="math">
- <short>Additional mathematical routines.</short>
- <!-- \FPCexampledir{mathex} -->
- <descr>
- <p>
- This document describes the <file>math</file> unit. The <var>math</var> unit
- was initially written by Florian Klaempfl. It provides mathematical
- functions which aren't covered by the system unit.
- </p>
- <p>
- This chapter starts out with a definition of all types and constants
- that are defined, after which an overview is presented of the available
- functions, grouped by category, and the last part contains a
- complete explanation of each function.
- </p>
- <p>
- The following things must be taken into account when using this unit:
- </p>
- <ol>
- <li>This unit is compiled in Object Pascal mode so all <var>integers</var> are 32 bit.</li>
- <li> Some overloaded functions exist for data arrays of integers and
- floats. When using the address operator (<var>@</var>) to pass an array of
- data to such a function, make sure the address is typecasted to the
- right type, or turn on the 'typed address operator' feature. failing to
- do so, will cause the compiler not be able to decide which function you
- want to call.
- </li>
- </ol>
- </descr>
- <topic name="MinMaxRoutines">
- <short>Min/max determination</short>
- <descr>
- <p>
- Functions to determine the minimum or maximum of numbers:
- </p>
- <table>
- <th><td>Name</td><td>Description</td></th>
- <tr><td><link id="max"/></td><td>Maximum of 2 values</td></tr>
- <tr><td><link id="maxIntValue"/></td><td>Maximum of an array of integer values</td></tr>
- <tr><td><link id="maxvalue"/></td><td>Maximum of an array of values</td></tr>
- <tr><td><link id="min"/></td><td>Minimum of 2 values</td></tr>
- <tr><td><link id="minIntValue"/></td><td>Minimum of an array of integer values</td></tr>
- <tr><td><link id="minvalue"/></td><td>Minimum of an array of values</td></tr>
- </table>
- </descr>
- </topic>
- <topic name="AngleConversionRoutines">
- <short>Angle unit conversion</short>
- <descr>
- <p>
- Routines to convert angles between different angle units.
- </p>
- <table>
- <th><td>Name</td><td>Description</td></th>
- <tr><td><link id="cycletorad"/></td><td>convert cycles to radians</td></tr>
- <tr><td><link id="degtograd"/></td><td>convert degrees to grads</td></tr>
- <tr><td><link id="degtorad"/></td><td>convert degrees to radians</td></tr>
- <tr><td><link id="gradtodeg"/></td><td>convert grads to degrees</td></tr>
- <tr><td><link id="gradtorad"/></td><td>convert grads to radians</td></tr>
- <tr><td><link id="radtocycle"/></td><td>convert radians to cycles</td></tr>
- <tr><td><link id="radtodeg"/></td><td>convert radians to degrees</td></tr>
- <tr><td><link id="radtograd"/></td><td>convert radians to grads</td></tr>
- </table>
- </descr>
- </topic>
- <topic name="TrigoniometricRoutines">
- <short>Trigoniometric functions</short>
- <descr>
- <table>
- <th><td>Name</td><td>Description</td></th>
- <tr><td><link id="arccos"/></td><td>calculate reverse cosine</td></tr>
- <tr><td><link id="arcsin"/></td><td>calculate reverse sine</td></tr>
- <tr><td><link id="arctan2"/></td><td>calculate reverse tangent</td></tr>
- <tr><td><link id="cotan"/></td><td>calculate cotangent</td></tr>
- <tr><td><link id="sincos"/></td><td>calculate sine and cosine</td></tr>
- <tr><td><link id="tan"/></td><td>calculate tangent</td></tr>
- </table>
- </descr>
- </topic>
- <topic name="HyperbolicRoutines">
- <short>Hyperbolic functions</short>
- <descr>
- <table>
- <th><td>Name</td><td>Description</td></th>
- <tr><td><link id="arcosh"/></td><td>caculate reverse hyperbolic cosine</td></tr>
- <tr><td><link id="arsinh"/></td><td>caculate reverse hyperbolic sine</td></tr>
- <tr><td><link id="artanh"/></td><td>caculate reverse hyperbolic tangent</td></tr>
- <tr><td><link id="cosh"/></td><td>calculate hyperbolic cosine</td></tr>
- <tr><td><link id="sinh"/></td><td>calculate hyperbolic sine</td></tr>
- <tr><td><link id="tanh"/></td><td>calculate hyperbolic tangent</td></tr>
- </table>
- </descr>
- </topic>
- <topic name="ExpLogRoutines">
- <short>Exponential and logarithmic functions</short>
- <descr>
- <table>
- <th><td>Name</td><td>Description</td></th>
- <tr><td><link id="intpower"/></td><td>Raise float to integer power</td></tr>
- <tr><td><link id="ldexp"/></td><td>Calculate $2^p x$</td></tr>
- <tr><td><link id="lnxp1"/></td><td>calculate <var>log(x+1)</var></td></tr>
- <tr><td><link id="log10"/></td><td>calculate 10-base log</td></tr>
- <tr><td><link id="log2"/></td><td>calculate 2-base log</td></tr>
- <tr><td><link id="logn"/></td><td>calculate N-base log</td></tr>
- <tr><td><link id="power"/></td><td>raise float to arbitrary power</td></tr>
- </table>
- </descr>
- </topic>
- <topic name="NumberConversionRoutines">
- <short>Number converting</short>
- <descr>
- <table>
- <th><td>Name</td><td>Description</td></th>
- <tr><td><link id="ceil"/></td><td>Round to infinity</td></tr>
- <tr><td><link id="floor"/></td><td>Round to minus infinity</td></tr>
- <tr><td><link id="frexp"/></td><td>Return mantissa and exponent</td></tr>
- </table>
- </descr>
- </topic>
- <topic name="StatisticalRoutines">
- <short>Statistical functions</short>
- <descr>
- <table>
- <th><td>Name</td><td>Description</td></th>
- <tr><td><link id="mean"/></td><td>Mean of values</td></tr>
- <tr><td><link id="meanandstddev"/></td><td>Mean and standard deviation of values</td></tr>
- <tr><td><link id="momentskewkurtosis"/></td><td>Moments, skew and kurtosis</td></tr>
- <tr><td><link id="popnstddev"/></td><td>Population standarddeviation </td></tr>
- <tr><td><link id="popnvariance"/></td><td>Population variance</td></tr>
- <tr><td><link id="randg"/></td><td>Gaussian distributed randum value</td></tr>
- <tr><td><link id="stddev"/></td><td>Standard deviation</td></tr>
- <tr><td><link id="sum"/></td><td>Sum of values</td></tr>
- <tr><td><link id="sumofsquares"/></td><td>Sum of squared values</td></tr>
- <tr><td><link id="sumsandsquares"/></td><td>Sum of values and squared values</td></tr>
- <tr><td><link id="totalvariance"/></td><td>Total variance of values</td></tr>
- <tr><td><link id="variance"/></td><td>variance of values</td></tr>
- </table>
- </descr>
- </topic>
- <topic name="GeometricalRoutines">
- <short>Geometrical functions</short>
- <descr>
- <table>
- <th><td>Name</td><td>Description</td></th>
- <tr><td><link id="hypot"/></td><td>Hypotenuse of triangle</td></tr>
- <tr><td><link id="norm"/></td><td>Euclidian norm</td></tr>
- </table>
- </descr>
- </topic>
- <element name="Float">
- <short>Float type used in all calls</short>
- <descr>
- All calculations are done with the Float type. This allows to
- recompile the unit with a different float type to obtain a
- desired precision. The pointer type <link id="PFloat"/>
- is used in functions that accept an array of values of arbitrary length.
- </descr>
- </element>
- <element name="PFloat">
- <short>Pointer to <link id="Float"/> type.</short>
- </element>
- <element name="TPaymentTime">
- <short>Type used in financial (interest) calculations.</short>
- </element>
- <element name="TPaymentTime.PTEndOfPeriod">
- <short>End of period.</short>
- </element>
- <element name="TPaymentTime.PTStartOfPeriod">
- <short>Start of period.</short>
- </element>
- <element name="EInvalidArgument">
- <short>Exception raised when invalid arguments are passed to a function.</short>
- </element>
- <element name="arccos">
- <short>Return inverse cosine</short>
- <descr>
- <var>Arccos</var> returns the inverse cosine of its argument <var>x</var>. The
- argument <var>x</var> should lie between -1 and 1 (borders included).
- </descr>
- <errors>
- If the argument <var>x</var> is not in the allowed range, an
- <var>EInvalidArgument</var> exception is raised.
- </errors>
- <seealso>
- <link id="arcsin"/>
- <link id="arcosh"/>
- <link id="arsinh"/>
- <link id="artanh"/>
- </seealso>
- <example file="mathex/ex1"/>
- </element>
- <element name="arcosh">
- <short>Return inverse hyperbolic cosine</short>
- <descr>
- <var>Arcosh</var> returns the inverse hyperbolic cosine of its argument <var>x</var>.
- The argument <var>x</var> should be larger than 1.
- The <var>arccosh</var> variant of this function is supplied for Delphi
- compatibility.
- </descr>
- <errors>
- If the argument <var>x</var> is not in the allowed range, an <var>EInvalidArgument</var>
- exception is raised.
- </errors>
- <seealso>
- <link id="cosh"/>
- <link id="sinh"/>
- <link id="arcsin"/>
- <link id="arsinh"/>
- <link id="artanh"/>,
- <link id="tanh"/>
- </seealso>
- <example file="mathex/ex3"/>
- </element>
- <element name="arcsin">
- <short>Return inverse sine</short>
- <descr>
- <var>Arcsin</var> returns the inverse sine of its argument <var>x</var>. The
- argument <var>x</var> should lie between -1 and 1.
- </descr>
- <errors>
- If the argument <var>x</var> is not in the allowed range, an <var>EInvalidArgument</var>
- exception is raised.
- </errors>
- <seealso>
- <link id="arccos"/>
- <link id="arcosh"/>
- <link id="arsinh"/>
- <link id="artanh"/>
- </seealso>
- <example file="mathex/ex2"/>
- </element>
- <element name="arctan2">
- <short>Return arctangent of (y/x)</short>
- <descr>
- <var>arctan2</var> calculates <var>arctan(y/x)</var>, and returns an angle in the
- correct quadrant. The returned angle will be in the range $-\pi$ to
- $\pi$ radians.
- The values of <var>x</var> and <var>y</var> must be between -2\^{}64 and 2\^{}64,
- moreover <var>x</var> should be different from zero.
- On Intel systems this function is implemented with the native intel
- <var>fpatan</var> instruction.
- </descr>
- <errors>
- If <var>x</var> is zero, an overflow error will occur.
- </errors>
- <seealso>
- <link id="arccos"/>
- <link id="arcosh"/>
- <link id="arsinh"/>
- <link id="artanh"/>
- </seealso>
- <example file="mathex/ex6"/>
- </element>
- <element name="arsinh">
- <short>Return inverse hyperbolic sine</short>
- <descr>
- <var>arsinh</var> returns the inverse hyperbolic sine of its argument <var>x</var>.
- The <var>arscsinh</var> variant of this function is supplied for Delphi
- compatibility.
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="arcosh"/>
- <link id="arccos"/>
- <link id="arcsin"/>
- <link id="artanh"/>
- </seealso>
- <example file="mathex/ex4"/>
- </element>
- <element name="artanh">
- <short>Return inverse hyperbolic tangent</short>
- <descr>
- <var>artanh</var> returns the inverse hyperbolic tangent of its argument <var>x</var>,
- where <var>x</var> should lie in the interval [-1,1], borders included.
- The <var>arctanh</var> variant of this function is supplied for Delphi compatibility.
- </descr>
- <errors>
- In case <var>x</var> is not in the interval [-1,1], an <var>EInvalidArgument</var>
- exception is raised.
- </errors>
- <seealso>
- <link id="arcosh"/>
- <link id="arccos"/>
- <link id="arcsin"/>
- <link id="artanh"/>
- </seealso>
- <example file="mathex/ex5"/>
- </element>
- <element name="ceil">
- <short>Return the lowest integer number greater than or equal to argument</short>
- <descr>
- <var>Ceil</var> returns the lowest integer number greater than or equal to <var>x</var>.
- The absolute value of <var>x</var> should be less than <var>maxint</var>.
- </descr>
- <errors>
- If the asolute value of <var>x</var> is larger than maxint, an overflow error will
- occur.
- </errors>
- <seealso>
- <link id="floor"/>
- </seealso>
- <example file="mathex/ex7"/>
- </element>
- <element name="cosh">
- <short>Return hyperbolic cosine</short>
- <descr>
- <var>Cosh</var> returns the hyperbolic cosine of it's argument {x}.
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="arcosh"/>
- <link id="sinh"/>
- <link id="arsinh"/>
- </seealso>
- <example file="mathex/ex8"/>
- </element>
- <element name="cotan">
- <short>Return cotangent</short>
- <descr>
- <var>Cotan</var> returns the cotangent of it's argument <var>x</var>. <var>x</var> should
- be different from zero.
- </descr>
- <errors>
- If <var>x</var> is zero then a overflow error will occur.
- </errors>
- <seealso>
- <link id="tanh"/>
- </seealso>
- <example file="mathex/ex9"/>
- </element>
- <element name="cycletorad">
- <short>Convert cycle angle to radians angle</short>
- <descr>
- <var>Cycletorad</var> transforms it's argument <var>cycle</var>
- (an angle expressed in cycles) to radians.
- (1 cycle is $2 \pi$ radians).
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="degtograd"/>
- <link id="degtorad"/>
- <link id="radtodeg"/>,
- <link id="radtograd"/>
- <link id="radtocycle"/>
- </seealso>
- <example file="mathex/ex10"/>
- </element>
- <element name="degtograd">
- <short>Convert degree angle to grads angle</short>
- <descr>
- <var>Degtograd</var> transforms it's argument <var>deg</var> (an angle in degrees)
- to grads.
- (90 degrees is 100 grad.)
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="cycletorad"/>
- <link id="degtorad"/>
- <link id="radtodeg"/>,
- <link id="radtograd"/>
- <link id="radtocycle"/>
- </seealso>
- <example file="mathex/ex11"/>
- </element>
- <element name="degtorad">
- <short>Convert degree angle to radians angle.</short>
- <descr>
- <var>Degtorad</var> converts it's argument <var>deg</var> (an angle in degrees) to
- radians.
- (pi radians is 180 degrees)
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="cycletorad"/>
- <link id="degtograd"/>
- <link id="radtodeg"/>,
- <link id="radtograd"/>
- <link id="radtocycle"/>
- </seealso>
- <example file="mathex/ex12"/>
- </element>
- <element name="floor">
- <short>Return the largest integer smaller than or equal to argument</short>
- <descr>
- <var>Floor</var> returns the largest integer smaller than or equal to <var>x</var>.
- The absolute value of <var>x</var> should be less than <var>maxint</var>.
- </descr>
- <errors>
- If <var>x</var> is larger than <var>maxint</var>, an overflow will occur.
- </errors>
- <seealso>
- <link id="ceil"/>
- </seealso>
- <example file="mathex/ex13"/>
- </element>
- <element name="frexp">
- <short>Return mantissa and exponent.</short>
- <descr>
- <var>Frexp</var> returns the mantissa and exponent of it's argument
- <var>x</var> in <var>mantissa</var> and <var>exponent</var>.
- </descr>
- <errors>
- None
- </errors>
- <seealso>
- </seealso>
- <example file="mathex/ex14"/>
- </element>
- <element name="gradtodeg">
- <short>Convert grads angle to degrees angle</short>
- <descr>
- <var>Gradtodeg</var> converts its argument <var>grad</var> (an angle in grads)
- to degrees.
- (100 grad is 90 degrees)
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="cycletorad"/>
- <link id="degtograd"/>
- <link id="radtodeg"/>,
- <link id="radtograd"/>
- <link id="radtocycle"/>
- <link id="gradtorad"/>
- </seealso>
- <example file="mathex/ex15"/>
- </element>
- <element name="gradtorad">
- <short>Convert grads angle to radians angle</short>
- <descr>
- <var>Gradtorad</var> converts its argument <var>grad</var> (an angle in grads)
- to radians.
- (200 grad is pi degrees).
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="cycletorad"/>
- <link id="degtograd"/>
- <link id="radtodeg"/>,
- <link id="radtograd"/>
- <link id="radtocycle"/>
- <link id="gradtodeg"/>
- </seealso>
- <example file="mathex/ex16"/>
- </element>
- <element name="hypot">
- <short>Return hypotenuse of triangle</short>
- <descr>
- <var>Hypot</var> returns the hypotenuse of the triangle where the sides
- adjacent to the square angle have lengths <var>x</var> and <var>y</var>.
- The function uses Pythagoras' rule for this.
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- </seealso>
- <example file="mathex/ex17"/>
- </element>
- <element name="intpower">
- <short>Return integer power.</short>
- <descr>
- <var>Intpower</var> returns <var>base</var> to the power <var>exponent</var>,
- where exponent is an integer value.
- </descr>
- <errors>
- If <var>base</var> is zero and the exponent is negative, then an
- overflow error will occur.
- </errors>
- <seealso>
- <link id="power"/>
- </seealso>
- <example file="mathex/ex18"/>
- </element>
- <element name="ldexp">
- <short>Return (2 to the power p) times x</short>
- <descr>
- <var>Ldexp</var> returns (2 to the power <var>p</var>) times <var>x</var>.
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="lnxp1"/>
- <link id="log10"/>
- <link id="log2"/>
- <link id="logn"/>
- </seealso>
- <example file="mathex/ex19"/>
- </element>
- <element name="lnxp1">
- <short>Return natural logarithm of 1+X</short>
- <descr>
- <var>Lnxp1</var> returns the natural logarithm of <var>1+X</var>. The result
- is more precise for small values of <var>x</var>. <var>x</var> should be larger
- than -1.
- </descr>
- <errors>
- If $x\leq -1$ then an <var>EInvalidArgument</var> exception will be raised.
- </errors>
- <seealso>
- <link id="ldexp"/>
- <link id="log10"/>
- <link id="log2"/>
- <link id="logn"/>
- </seealso>
- <example file="mathex/ex20"/>
- </element>
- <element name="log10">
- <short>Return 10-Based logarithm.</short>
- <descr>
- <var>Log10</var> returns the 10-base logarithm of <var>X</var>.
- </descr>
- <errors>
- If <var>x</var> is less than or equal to 0 an 'invalid fpu operation' error
- will occur.
- </errors>
- <seealso>
- <link id="ldexp"/>
- <link id="lnxp1"/>
- <link id="log2"/>
- <link id="logn"/>
- </seealso>
- <example file="mathex/ex21"/>
- </element>
- <element name="log2">
- <short>Return 2-based logarithm</short>
- <descr>
- <var>Log2</var> returns the 2-base logarithm of <var>X</var>.
- </descr>
- <errors>
- If <var>x</var> is less than or equal to 0 an 'invalid fpu operation' error
- will occur.
- </errors>
- <seealso>
- <link id="ldexp"/>
- <link id="lnxp1"/>
- <link id="log10"/>
- <link id="logn"/>
- </seealso>
- <example file="mathex/ex22"/>
- </element>
- <element name="logn">
- <short>Return N-based logarithm.</short>
- <descr>
- <var>Logn</var> returns the n-base logarithm of <var>X</var>.
- </descr>
- <errors>
- If <var>x</var> is less than or equal to 0 an 'invalid fpu operation' error
- will occur.
- </errors>
- <seealso>
- <link id="ldexp"/>
- <link id="lnxp1"/>
- <link id="log10"/>
- <link id="log2"/>
- </seealso>
- <example file="mathex/ex23"/>
- </element>
- <element name="max">
- <short>Return largest of 2 values</short>
- <descr>
- <var>Max</var> returns the maximum of <var>Int1</var> and <var>Int2</var>.
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="min"/>
- <link id="maxIntValue"/>
- <link id="maxvalue"/>
- </seealso>
- <example file="mathex/ex24"/>
- </element>
- <element name="maxIntValue">
- <short>Return largest element in integer array</short>
- <descr>
- <p>
- <var>MaxIntValue</var> returns the largest integer out of the <var>Data</var>
- array.
- </p>
- <p>
- This function is provided for Delphi compatibility, use the <link id="maxvalue"/>
- function instead.
- </p>
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="maxvalue"/>
- <link id="minvalue"/>
- <link id="minIntValue"/>
- </seealso>
- <example file="mathex/ex25"/>
- </element>
- <element name="maxvalue">
- <short>Return largest value in array</short>
- <descr>
- <p>
- <var>Maxvalue</var> returns the largest value in the <var>data</var>
- array with integer or float values. The return value has
- the same type as the elements of the array.
- </p>
- <p>
- The third and fourth forms accept a pointer to an array of <var>N</var>
- integer or float values.
- </p>
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="maxIntValue"/>
- <link id="minvalue"/>
- <link id="minIntValue"/>
- </seealso>
- <example file="mathex/ex26"/>
- </element>
- <element name="mean">
- <short>Return mean value of array</short>
- <descr>
- <var>Mean</var> returns the average value of <var>data</var>.
- The second form accepts a pointer to an array of <var>N</var> values.
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="meanandstddev"/>
- <link id="momentskewkurtosis"/>
- <link id="sum"/>
- </seealso>
- <example file="mathex/ex27"/>
- </element>
- <element name="meanandstddev">
- <short>Return mean and standard deviation of array</short>
- <descr>
- <var>meanandstddev</var> calculates the mean and standard deviation of <var>data</var>
- and returns the result in <var>mean</var> and <var>stddev</var>, respectively.
- Stddev is zero if there is only one value.
- The second form accepts a pointer to an array of <var>N</var> values.
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="mean"/>
- <link id="sum"/>
- <link id="sumofsquares"/>
- <link id="momentskewkurtosis"/>
- </seealso>
- <example file="mathex/ex28"/>
- </element>
- <element name="min">
- <short>Return smallest of two values.</short>
- <descr>
- <var>min</var> returns the smallest value of <var>Int1</var> and <var>Int2</var>;
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="max"/>
- </seealso>
- <example file="mathex/ex29"/>
- </element>
- <element name="minIntValue">
- <short>Return smallest value in integer array</short>
- <descr>
- <p>
- <var>MinIntvalue</var> returns the smallest value in the <var>Data</var> array.
- </p>
- <p>
- This function is provided for Delphi compatibility, use <var>minvalue</var>
- instead.
- </p>
- </descr>
- <errors>
- None
- </errors>
- <seealso>
- <link id="minvalue"/>
- <link id="maxIntValue"/>
- <link id="maxvalue"/>
- </seealso>
- <example file="mathex/ex30"/>
- </element>
- <element name="minvalue">
- <short>Return smallest value in array</short>
- <descr>
- <p>
- <var>Minvalue</var> returns the smallest value in the <var>data</var>
- array with integer or float values. The return value has
- the same type as the elements of the array.
- </p>
- <p>
- The third and fourth forms accept a pointer to an array of <var>N</var>
- integer or float values.
- </p>
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="maxIntValue"/>
- <link id="maxvalue"/>
- <link id="minIntValue"/>
- </seealso>
- <example file="mathex/ex31"/>
- </element>
- <element name="momentskewkurtosis">
- <short>Return 4 first moments of distribution</short>
- <descr>
- <var>momentskewkurtosis</var> calculates the 4 first moments of the distribution
- of valuesin <var>data</var> and returns them in <var>m1</var>,<var>m2</var>,<var>m3</var> and
- <var>m4</var>, as well as the <var>skew</var> and <var>kurtosis</var>.
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="mean"/>
- <link id="meanandstddev"/>
- </seealso>
- <example file="mathex/ex32"/>
- </element>
- <element name="norm">
- <short>Return Euclidian norm</short>
- <descr>
- <p>
- <var>Norm</var> calculates the Euclidian norm of the array of data.
- This equals <var>sqrt(sumofsquares(data))</var>.
- </p>
- <p>
- The second form accepts a pointer to an array of <var>N</var> values.
- </p>
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="sumofsquares"/>
- </seealso>
- <example file="mathex/ex33"/>
- </element>
- <element name="popnstddev">
- <short>Return population variance</short>
- <descr>
- <p>
- <var>Popnstddev</var> returns the square root of the population variance of
- the values in the <var>Data</var> array. It returns zero if there is only one value.
- </p>
- <p>
- The second form of this function accepts a pointer to an array of <var>N</var>
- values.
- </p>
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="popnvariance"/>
- <link id="mean"/>
- <link id="meanandstddev"/>
- <link id="stddev"/>
- <link id="momentskewkurtosis"/>
- </seealso>
- <example file="mathex/ex35"/>
- </element>
- <element name="popnvariance">
- <short>Return population variance</short>
- <descr>
- <p>
- <var>Popnvariance</var> returns the square root of the population variance of
- the values in the <var>Data</var> array. It returns zero if there is only one value.
- </p>
- <p>
- The second form of this function accepts a pointer to an array of <var>N</var>
- values.
- </p>
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="popnstddev"/>
- <link id="mean"/>
- <link id="meanandstddev"/>
- <link id="stddev"/>,
- <link id="momentskewkurtosis"/>
- </seealso>
- <example file="mathex/ex36"/>
- </element>
- <element name="power">
- <short>Return real power.</short>
- <descr>
- <var>power</var> raises <var>base</var> to the power <var>power</var>. This is equivalent
- to <var>exp(power*ln(base))</var>. Therefore <var>base</var> should be non-negative.
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="intpower"/>
- </seealso>
- <example file="mathex/ex34"/>
- </element>
- <element name="radtocycle">
- <short>Convert radians angle to cycle angle</short>
- <descr>
- <p>
- <var>Radtocycle</var> converts its argument <var>rad</var> (an angle expressed in
- radians) to an angle in cycles.
- </p>
- <p>
- (1 cycle equals 2 <var>pi</var> radians)
- </p>
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="degtograd"/>
- <link id="degtorad"/>
- <link id="radtodeg"/>,
- <link id="radtograd"/>
- <link id="cycletorad"/>
- </seealso>
- <example file="mathex/ex37"/>
- </element>
- <element name="radtodeg">
- <short>Convert radians angle to degrees angle</short>
- <descr>
- <var>Radtodeg</var> converts its argument <var>rad</var> (an angle expressed in
- radians) to an angle in degrees.
- (180 degrees equals pi radians)
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="degtograd"/>
- <link id="degtorad"/>
- <link id="radtocycle"/>,
- <link id="radtograd"/>
- <link id="cycletorad"/>
- </seealso>
- <example file="mathex/ex38"/>
- </element>
- <element name="radtograd">
- <short>Convert radians angle to grads angle</short>
- <descr>
- <p>
- <var>Radtodeg</var> converts its argument <var>rad</var> (an angle expressed in
- radians) to an angle in grads.
- </p>
- <p>
- (200 grads equals pi radians)
- </p>
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="degtograd"/>
- <link id="degtorad"/>
- <link id="radtocycle"/>,
- <link id="radtodeg"/>
- <link id="cycletorad"/>
- </seealso>
- <example file="mathex/ex39"/>
- </element>
- <element name="randg">
- <short>Return gaussian distributed random number.</short>
- <descr>
- <var>randg</var> returns a random number which - when produced in large
- quantities - has a Gaussian distribution with mean <var>mean</var> and
- standarddeviation <var>stddev</var>.
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="mean"/>
- <link id="stddev"/>
- <link id="meanandstddev"/>
- </seealso>
- <example file="mathex/ex40"/>
- </element>
- <element name="sincos">
- <short>Return sine and cosine of argument</short>
- <descr>
- <p>
- <var>Sincos</var> calculates the sine and cosine of the angle <var>theta</var>,
- and returns the result in <var>sinus</var> and <var>cosinus</var>.
- </p>
- <p>
- On Intel hardware, This calculation will be faster than making 2 calls
- to calculate the sine and cosine separately.
- </p>
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="arcsin"/>
- <link id="arccos"/>.
- </seealso>
- <example file="mathex/ex41"/>
- </element>
- <element name="sinh">
- <short>Return hyperbolic sine</short>
- <descr>
- <var>Sinh</var> returns the hyperbolic sine of its argument <var>x</var>.
- </descr>
- <errors>
- </errors>
- <seealso>
- <link id="cosh"/>
- <link id="arsinh"/>
- <link id="tanh"/>
- <link id="artanh"/>
- </seealso>
- <example file="mathex/ex42"/>
- </element>
- <element name="stddev">
- <short>Return standard deviation of data</short>
- <descr>
- <p>
- <var>Stddev</var> returns the standard deviation of the values in <var>Data</var>.
- It returns zero if there is only one value.
- </p>
- <p>
- The second form of the function accepts a pointer to an array of <var>N</var>
- values.
- </p>
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="mean"/>
- <link id="meanandstddev"/>
- <link id="variance"/>
- <link id="totalvariance"/>
- </seealso>
- <example file="mathex/ex43"/>
- </element>
- <element name="sum">
- <short>Return sum of values</short>
- <descr>
- <p>
- <var>Sum</var> returns the sum of the values in the <var>data</var> array.
- </p>
- <p>
- The second form of the function accepts a pointer to an array of <var>N</var>
- values.
- </p>
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="sumofsquares"/>
- <link id="sumsandsquares"/>
- <link id="totalvariance"/>
- <link id="variance"/>
- </seealso>
- <example file="mathex/ex44"/>
- </element>
- <element name="sumofsquares">
- <short>Return sum of squares of values</short>
- <descr>
- <p>
- <var>Sumofsquares</var> returns the sum of the squares of the values in the <var>data</var>
- array.
- </p>
- <p>
- The second form of the function accepts a pointer to an array of <var>N</var>
- values.
- </p>
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="sum"/>
- <link id="sumsandsquares"/>
- <link id="totalvariance"/>
- <link id="variance"/>
- </seealso>
- <example file="mathex/ex45"/>
- </element>
- <element name="sumsandsquares">
- <short>Return sum and sum of squares of values.</short>
- <descr>
- <p>
- <var>sumsandsquares</var> calculates the sum of the values and the sum of
- the squares of the values in the <var>data</var> array and returns the
- results in <var>sum</var> and <var>sumofsquares</var>.
- </p>
- <p>
- The second form of the function accepts a pointer to an array of <var>N</var>
- values.
- </p>
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="sum"/>
- <link id="sumofsquares"/>
- <link id="totalvariance"/>
- <link id="variance"/>
- </seealso>
- <example file="mathex/ex46"/>
- </element>
- <element name="tan">
- <short>Return tangent</short>
- <descr>
- <var>Tan</var> returns the tangent of <var>x</var>.
- </descr>
- <errors>
- If <var>x</var> (normalized) is pi/2 or 3pi/2 then an overflow will occur.
- </errors>
- <seealso>
- <link id="tanh"/>
- <link id="arcsin"/>
- <link id="sincos"/>
- <link id="arccos"/>
- </seealso>
- <example file="mathex/ex47"/>
- </element>
- <element name="tanh">
- <short>Return hyperbolic tangent</short>
- <descr>
- <var>Tanh</var> returns the hyperbolic tangent of <var>x</var>.
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="arcsin"/>
- <link id="sincos"/>
- <link id="arccos"/>
- </seealso>
- <example file="mathex/ex48"/>
- </element>
- <element name="totalvariance">
- <short>Return total varians of values</short>
- <descr>
- <p>
- <var>TotalVariance</var> returns the total variance of the values in the
- <var>data</var> array. It returns zero if there is only one value.
- </p>
- <p>
- The second form of the function accepts a pointer to an array of <var>N</var>
- values.
- </p>
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="variance"/>
- <link id="stddev"/>
- <link id="mean"/>
- </seealso>
- <example file="mathex/ex49"/>
- </element>
- <element name="variance">
- <short>Return variance of values</short>
- <descr>
- <p>
- <var>Variance</var> returns the variance of the values in the
- <var>data</var> array. It returns zero if there is only one value.
- </p>
- <p>
- The second form of the function accepts a pointer to an array of <var>N</var>
- values.
- </p>
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="totalvariance"/>
- <link id="stddev"/>
- <link id="mean"/>
- </seealso>
- <example file="mathex/ex50"/>
- </element>
- <!-- unresolved type reference Visibility: default -->
- <element name="sysutils">
- <short>Used for exception definitions.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="MinExtended">
- <short>Minimum value (closest to zero) of extended type</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="MaxExtended">
- <short>Maximum value of extended type</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="MinFloat">
- <short>Minimum value (closest to zero) of float type</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="MaxFloat">
- <short>Maximum value of float type</short>
- </element>
- <!-- pointer type Visibility: default -->
- <element name="PInteger">
- <short>Pointer to integer type</short>
- </element>
- <!-- range type Visibility: default -->
- <element name="TValueRelationship">
- <short>Type to describe relational order between values</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="EqualsValue">
- <short>Values are the same</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="LessThanValue">
- <short>First value is less than second value</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="GreaterThanValue">
- <short>First values is greater than second value</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="NaN">
- <short>Value is Not a Number</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="Infinity">
- <short>Value is infinity</short>
- </element>
- <!-- function Visibility: default -->
- <element name="InRange">
- <short>Check whether value is in range.</short>
- <descr>
- <var>InRange</var> returns <var>True</var> if <var>AValue</var> is in the
- range <var>AMin</var>..<var>AMax</var>. It returns <var>False</var> if
- <var>Value</var> lies outside the specified range.
- </descr>
- <seealso>
- <link id="EnsureRange"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="EnsureRange">
- <short>Change value to it falls in specified range.</short>
- <descr>
- <var>EnsureRange</var> returns <var>Value</var> if <var>AValue</var> is in
- the range <var>AMin</var>..<var>AMax</var>. It returns <var>AMin</var> if
- the value is less than <var>AMin</var>, or <var>AMax</var> if the value is
- larger than <var>AMax</var>.
- </descr>
- <seealso>
- <link id="InRange"/>
- </seealso>
- </element>
- <!-- procedure Visibility: default -->
- <element name="DivMod">
- <short>Return DIV and MOD of arguments </short>
- <descr>
- <var>DivMod</var> returns <var>Dividend</var> DIV <var>Divisor</var> in
- <var>Result</var>, and <var>Dividend</var> MOD <var>Divisor</var> in
- <var>Remainder</var>
- </descr>
- </element>
- <!-- range type Visibility: default -->
- <element name="TValueSign">
- <short>Type indicating sign of a valuea</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="NegativeValue">
- <short>Value is negative</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ZeroValue">
- <short>Value is zero</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="PositiveValue">
- <short>Value is positive</short>
- </element>
- <!-- function Visibility: default -->
- <element name="Sign">
- <short>Return sign of argument</short>
- <descr>
- <var>Sign</var> returns the sign of it's argument, which can be an Integer,
- 64 bit integer, or a double. The returned value is an integer which is -1, 0
- or 1, and can be used to do further calculations with.
- </descr>
- </element>
- <!-- function Visibility: default -->
- <element name="IsZero">
- <short>Check whether value is zero</short>
- <descr>
- <p>
- <var>IsZero</var> checks whether the float value <var>A</var> is zero, up to a
- precision of <var>Epsilon</var>. It returns <var>True</var> if Abs(<var>A</var>) is
- less than <var>Epsilon</var>.
- </p>
- <p>
- The default value for <var>Epsilon</var> is dependent on the type of the
- arguments, but is <link id="MinFloat"/> for the float type.
- </p>
- </descr>
- <seealso>
- <link id="IsNan"/>
- <link id="IsInfinite"/>
- <link id="SameValue"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="IsNan">
- <short>Check whether value is Not a Number</short>
- <descr>
- <var>IsNan</var> returns <var>True</var> if the double <var>d</var>
- contains Not A Number (a value which cannot be represented correctly
- in double format).
- </descr>
- <seealso>
- <link id="IsZero"/>
- <link id="IsInfinite"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="IsInfinite">
- <short>Check whether value is infinite</short>
- <descr>
- <var>IsInfinite</var> returns <var>True</var> if the double <var>d</var>
- contains the infinite value.
- </descr>
- <seealso>
- <link id="IsZero"/>
- <link id="IsInfinite"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="SameValue">
- <short>Check whether 2 float values are the same</short>
- <descr>
- <p>
- <var>SameValue</var> returns <var>True</var> if the floating-point values
- <var>A</var> and <var>B</var> are the same, i.e. whether the absolute value
- of their their difference is smaller than <var>Epsilon</var>. If their
- difference is larger, then <var>False</var> is returned.
- </p>
- <p>
- The default value for <var>Epsilon</var> is dependent on the type of the
- arguments, but is <link id="MinFloat"/> for the float type.
- </p>
- </descr>
- <seealso>
- <link id="MinFloat"/>
- <link id="IsZero"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="arccosh">
- <short>Return inverse hyperbolic cosine</short>
- <descr>
- <p>
- <var>arccosh</var> returns the inverse hyperbolic cosine of it's argument
- <var>x</var>.
- </p>
- <p>
- This function is an alias for <link id="arcosh"/>, provided for Delphi
- compatibility.
- </p>
- </descr>
- <seealso>
- <link id="arcosh"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="arcsinh">
- <short>Return inverse hyperbolic sine</short>
- <descr>
- <p>
- <var>arcsinh</var> returns the inverse hyperbolic sine of it's argument
- <var>x</var>.
- </p>
- <p>
- This function is an alias for <link id="arsinh"/>, provided for Delphi
- compatibility.
- </p>
- </descr>
- <seealso>
- <link id="arsinh"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="arctanh">
- <short>Return inverse hyperbolic tangent</short>
- <descr>
- <p>
- <var>arcsinh</var> returns the inverse hyperbolic tangent of it's argument
- <var>x</var>.
- </p>
- <p>
- This function is an alias for <link id="artanh"/>, provided for Delphi
- compatibility.
- </p>
- </descr>
- <seealso>
- <link id="artanh"/>
- </seealso>
- </element>
- <!-- enumeration type Visibility: default -->
- <element name="TFPURoundingMode">
- <short>Type describing the rounding mode for the Floating Point processor.</short>
- </element>
- <!-- enumeration value Visibility: default -->
- <element name="TFPURoundingMode.rmNearest">
- <short>Round to nearest integer value</short>
- </element>
- <!-- enumeration value Visibility: default -->
- <element name="TFPURoundingMode.rmDown">
- <short>Round to biggest integer smaller than value.</short>
- </element>
- <!-- enumeration value Visibility: default -->
- <element name="TFPURoundingMode.rmUp">
- <short>Round to smallest integer larger than value.</short>
- </element>
- <!-- enumeration value Visibility: default -->
- <element name="TFPURoundingMode.rmTruncate">
- <short>Cut off fractional part.</short>
- </element>
- <!-- enumeration type Visibility: default -->
- <element name="TFPUPrecisionMode">
- <short>Type describing the default precision for the Floating Point processor.</short>
- </element>
- <!-- enumeration value Visibility: default -->
- <element name="TFPUPrecisionMode.pmSingle">
- <short>Single-type precision</short>
- </element>
- <!-- enumeration value Visibility: default -->
- <element name="TFPUPrecisionMode.pmReserved">
- <short>?</short>
- </element>
- <!-- enumeration value Visibility: default -->
- <element name="TFPUPrecisionMode.pmDouble">
- <short>Double-type precision</short>
- </element>
- <!-- enumeration value Visibility: default -->
- <element name="TFPUPrecisionMode.pmExtended">
- <short>Extended-type precision</short>
- </element>
- <!-- enumeration type Visibility: default -->
- <element name="TFPUException">
- <short>Type describing Floating Point processor exceptions.</short>
- </element>
- <!-- enumeration value Visibility: default -->
- <element name="TFPUException.exInvalidOp">
- <short>Invalid operation error</short>
- </element>
- <!-- enumeration value Visibility: default -->
- <element name="TFPUException.exDenormalized">
- <short></short>
- </element>
- <!-- enumeration value Visibility: default -->
- <element name="TFPUException.exZeroDivide">
- <short>Division by zero error.</short>
- </element>
- <!-- enumeration value Visibility: default -->
- <element name="TFPUException.exOverflow">
- <short>Float overflow error</short>
- </element>
- <!-- enumeration value Visibility: default -->
- <element name="TFPUException.exUnderflow">
- <short>Float underflow error</short>
- </element>
- <!-- enumeration value Visibility: default -->
- <element name="TFPUException.exPrecision">
- <short>Precision error</short>
- </element>
- <!-- set type Visibility: default -->
- <element name="TFPUExceptionMask">
- <short>Type to set the Floating Point Unit exception mask.</short>
- </element>
- <!-- function Visibility: default -->
- <element name="GetRoundMode">
- <short>Return the Floating Point Unit rounding mode.</short>
- <descr>
- </descr>
- </element>
- <!-- function Visibility: default -->
- <element name="SetRoundMode">
- <short>Set the Floating Point Unit rounding mode.</short>
- <descr>
- </descr>
- </element>
- <!-- function Visibility: default -->
- <element name="GetPrecisionMode">
- <short>Return the Floating Point Unit precision mode.</short>
- <descr>
- </descr>
- </element>
- <!-- function Visibility: default -->
- <element name="SetPrecisionMode">
- <short>Set the Floating Point Unit precision mode.</short>
- <descr>
- </descr>
- </element>
- <!-- function Visibility: default -->
- <element name="GetExceptionMask">
- <short>Get the Floating Point Unit exception mask.</short>
- <descr>
- </descr>
- </element>
- <!-- function Visibility: default -->
- <element name="SetExceptionMask">
- <short>Set the Floating Point Unit exception mask.</short>
- <descr>
- </descr>
- </element>
- <!-- procedure Visibility: default -->
- <element name="ClearExceptions">
- <short>Clear Floating Point Unit exceptions</short>
- <descr>
- </descr>
- </element>
- <element name="GetSSECSR">
- <short>Get MXCSR control word (Intel only)</short>
- <descr>
- <var>GetSSECSR</var> can be used to get the SSE/SSE2 control DWord.
- It is equivalent to the <var>LDMXCSR</var> assembler instruction, and
- returns the control dword.
- </descr>
- </element>
- <element name="ifthen">
- <short>Return one of two values, depending on a boolean condition</short>
- <descr>
- <p>
- <var>ifthen</var> returns <var>iftrue</var> if <var>val</var> is
- <var>True</var>, and <var>False</var> if <var>val</var> is <var>False</var>.
- </p>
- <p>
- This function can be used in expressions.
- </p>
- </descr>
- </element>
- <element name="SetSSECSR">
- <short>Set MXCSR control word (Intel only)</short>
- <descr>
- <var>SetSSECSR</var> can be used to set the SSE/SSE2 control DWord.
- It is equivalent to the <var>STMXCSR</var> assembler instruction, and stores
- <var>w</var> in the control dword.
- </descr>
- </element>
- </module>
- </package>
- </fpdoc-descriptions>
|