math.xml 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635
  1. <?xml version="1.0" encoding="ISO8859-1"?>
  2. <fpdoc-descriptions>
  3. <!--
  4. $Id$
  5. This file is part of the FPC documentation.
  6. Copyright (C) 1997, by Michael Van Canneyt
  7. The FPC documentation is free text; you can redistribute it and/or
  8. modify it under the terms of the GNU Library General Public License as
  9. published by the Free Software Foundation; either version 2 of the
  10. License, or (at your option) any later version.
  11. The FPC Documentation is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. Library General Public License for more details.
  15. You should have received a copy of the GNU Library General Public
  16. License along with the FPC documentation; see the file COPYING.LIB. If not,
  17. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  18. Boston, MA 02111-1307, USA.
  19. -->
  20. <package name="rtl">
  21. <module name="math">
  22. <short>Additional mathematical routines.</short>
  23. <!-- \FPCexampledir{mathex} -->
  24. <descr>
  25. <p>
  26. This document describes the <file>math</file> unit. The <var>math</var> unit
  27. was initially written by Florian Klaempfl. It provides mathematical
  28. functions which aren't covered by the system unit.
  29. </p>
  30. <p>
  31. This chapter starts out with a definition of all types and constants
  32. that are defined, after which an overview is presented of the available
  33. functions, grouped by category, and the last part contains a
  34. complete explanation of each function.
  35. </p>
  36. <p>
  37. The following things must be taken into account when using this unit:
  38. </p>
  39. <ol>
  40. <li>This unit is compiled in Object Pascal mode so all <var>integers</var> are 32 bit.</li>
  41. <li> Some overloaded functions exist for data arrays of integers and
  42. floats. When using the address operator (<var>@</var>) to pass an array of
  43. data to such a function, make sure the address is typecasted to the
  44. right type, or turn on the 'typed address operator' feature. failing to
  45. do so, will cause the compiler not be able to decide which function you
  46. want to call.
  47. </li>
  48. </ol>
  49. </descr>
  50. <topic name="MinMaxRoutines">
  51. <short>Min/max determination</short>
  52. <descr>
  53. <p>
  54. Functions to determine the minimum or maximum of numbers:
  55. </p>
  56. <table>
  57. <th><td>Name</td><td>Description</td></th>
  58. <tr><td><link id="max"/></td><td>Maximum of 2 values</td></tr>
  59. <tr><td><link id="maxIntValue"/></td><td>Maximum of an array of integer values</td></tr>
  60. <tr><td><link id="maxvalue"/></td><td>Maximum of an array of values</td></tr>
  61. <tr><td><link id="min"/></td><td>Minimum of 2 values</td></tr>
  62. <tr><td><link id="minIntValue"/></td><td>Minimum of an array of integer values</td></tr>
  63. <tr><td><link id="minvalue"/></td><td>Minimum of an array of values</td></tr>
  64. </table>
  65. </descr>
  66. </topic>
  67. <topic name="AngleConversionRoutines">
  68. <short>Angle unit conversion</short>
  69. <descr>
  70. <p>
  71. Routines to convert angles between different angle units.
  72. </p>
  73. <table>
  74. <th><td>Name</td><td>Description</td></th>
  75. <tr><td><link id="cycletorad"/></td><td>convert cycles to radians</td></tr>
  76. <tr><td><link id="degtograd"/></td><td>convert degrees to grads</td></tr>
  77. <tr><td><link id="degtorad"/></td><td>convert degrees to radians</td></tr>
  78. <tr><td><link id="gradtodeg"/></td><td>convert grads to degrees</td></tr>
  79. <tr><td><link id="gradtorad"/></td><td>convert grads to radians</td></tr>
  80. <tr><td><link id="radtocycle"/></td><td>convert radians to cycles</td></tr>
  81. <tr><td><link id="radtodeg"/></td><td>convert radians to degrees</td></tr>
  82. <tr><td><link id="radtograd"/></td><td>convert radians to grads</td></tr>
  83. </table>
  84. </descr>
  85. </topic>
  86. <topic name="TrigoniometricRoutines">
  87. <short>Trigoniometric functions</short>
  88. <descr>
  89. <table>
  90. <th><td>Name</td><td>Description</td></th>
  91. <tr><td><link id="arccos"/></td><td>calculate reverse cosine</td></tr>
  92. <tr><td><link id="arcsin"/></td><td>calculate reverse sine</td></tr>
  93. <tr><td><link id="arctan2"/></td><td>calculate reverse tangent</td></tr>
  94. <tr><td><link id="cotan"/></td><td>calculate cotangent</td></tr>
  95. <tr><td><link id="sincos"/></td><td>calculate sine and cosine</td></tr>
  96. <tr><td><link id="tan"/></td><td>calculate tangent</td></tr>
  97. </table>
  98. </descr>
  99. </topic>
  100. <topic name="HyperbolicRoutines">
  101. <short>Hyperbolic functions</short>
  102. <descr>
  103. <table>
  104. <th><td>Name</td><td>Description</td></th>
  105. <tr><td><link id="arcosh"/></td><td>caculate reverse hyperbolic cosine</td></tr>
  106. <tr><td><link id="arsinh"/></td><td>caculate reverse hyperbolic sine</td></tr>
  107. <tr><td><link id="artanh"/></td><td>caculate reverse hyperbolic tangent</td></tr>
  108. <tr><td><link id="cosh"/></td><td>calculate hyperbolic cosine</td></tr>
  109. <tr><td><link id="sinh"/></td><td>calculate hyperbolic sine</td></tr>
  110. <tr><td><link id="tanh"/></td><td>calculate hyperbolic tangent</td></tr>
  111. </table>
  112. </descr>
  113. </topic>
  114. <topic name="ExpLogRoutines">
  115. <short>Exponential and logarithmic functions</short>
  116. <descr>
  117. <table>
  118. <th><td>Name</td><td>Description</td></th>
  119. <tr><td><link id="intpower"/></td><td>Raise float to integer power</td></tr>
  120. <tr><td><link id="ldexp"/></td><td>Calculate $2^p x$</td></tr>
  121. <tr><td><link id="lnxp1"/></td><td>calculate <var>log(x+1)</var></td></tr>
  122. <tr><td><link id="log10"/></td><td>calculate 10-base log</td></tr>
  123. <tr><td><link id="log2"/></td><td>calculate 2-base log</td></tr>
  124. <tr><td><link id="logn"/></td><td>calculate N-base log</td></tr>
  125. <tr><td><link id="power"/></td><td>raise float to arbitrary power</td></tr>
  126. </table>
  127. </descr>
  128. </topic>
  129. <topic name="NumberConversionRoutines">
  130. <short>Number converting</short>
  131. <descr>
  132. <table>
  133. <th><td>Name</td><td>Description</td></th>
  134. <tr><td><link id="ceil"/></td><td>Round to infinity</td></tr>
  135. <tr><td><link id="floor"/></td><td>Round to minus infinity</td></tr>
  136. <tr><td><link id="frexp"/></td><td>Return mantissa and exponent</td></tr>
  137. </table>
  138. </descr>
  139. </topic>
  140. <topic name="StatisticalRoutines">
  141. <short>Statistical functions</short>
  142. <descr>
  143. <table>
  144. <th><td>Name</td><td>Description</td></th>
  145. <tr><td><link id="mean"/></td><td>Mean of values</td></tr>
  146. <tr><td><link id="meanandstddev"/></td><td>Mean and standard deviation of values</td></tr>
  147. <tr><td><link id="momentskewkurtosis"/></td><td>Moments, skew and kurtosis</td></tr>
  148. <tr><td><link id="popnstddev"/></td><td>Population standarddeviation </td></tr>
  149. <tr><td><link id="popnvariance"/></td><td>Population variance</td></tr>
  150. <tr><td><link id="randg"/></td><td>Gaussian distributed randum value</td></tr>
  151. <tr><td><link id="stddev"/></td><td>Standard deviation</td></tr>
  152. <tr><td><link id="sum"/></td><td>Sum of values</td></tr>
  153. <tr><td><link id="sumofsquares"/></td><td>Sum of squared values</td></tr>
  154. <tr><td><link id="sumsandsquares"/></td><td>Sum of values and squared values</td></tr>
  155. <tr><td><link id="totalvariance"/></td><td>Total variance of values</td></tr>
  156. <tr><td><link id="variance"/></td><td>variance of values</td></tr>
  157. </table>
  158. </descr>
  159. </topic>
  160. <topic name="GeometricalRoutines">
  161. <short>Geometrical functions</short>
  162. <descr>
  163. <table>
  164. <th><td>Name</td><td>Description</td></th>
  165. <tr><td><link id="hypot"/></td><td>Hypotenuse of triangle</td></tr>
  166. <tr><td><link id="norm"/></td><td>Euclidian norm</td></tr>
  167. </table>
  168. </descr>
  169. </topic>
  170. <element name="Float">
  171. <short>Float type used in all calls</short>
  172. <descr>
  173. All calculations are done with the Float type. This allows to
  174. recompile the unit with a different float type to obtain a
  175. desired precision. The pointer type <link id="PFloat"/>
  176. is used in functions that accept an array of values of arbitrary length.
  177. </descr>
  178. </element>
  179. <element name="PFloat">
  180. <short>Pointer to <link id="Float"/> type.</short>
  181. </element>
  182. <element name="TPaymentTime">
  183. <short>Type used in financial (interest) calculations.</short>
  184. </element>
  185. <element name="TPaymentTime.PTEndOfPeriod">
  186. <short>End of period.</short>
  187. </element>
  188. <element name="TPaymentTime.PTStartOfPeriod">
  189. <short>Start of period.</short>
  190. </element>
  191. <element name="EInvalidArgument">
  192. <short>Exception raised when invalid arguments are passed to a function.</short>
  193. </element>
  194. <element name="arccos">
  195. <short>Return inverse cosine</short>
  196. <descr>
  197. <var>Arccos</var> returns the inverse cosine of its argument <var>x</var>. The
  198. argument <var>x</var> should lie between -1 and 1 (borders included).
  199. </descr>
  200. <errors>
  201. If the argument <var>x</var> is not in the allowed range, an
  202. <var>EInvalidArgument</var> exception is raised.
  203. </errors>
  204. <seealso>
  205. <link id="arcsin"/>
  206. <link id="arcosh"/>
  207. <link id="arsinh"/>
  208. <link id="artanh"/>
  209. </seealso>
  210. <example file="mathex/ex1"/>
  211. </element>
  212. <element name="arcosh">
  213. <short>Return inverse hyperbolic cosine</short>
  214. <descr>
  215. <var>Arcosh</var> returns the inverse hyperbolic cosine of its argument <var>x</var>.
  216. The argument <var>x</var> should be larger than 1.
  217. The <var>arccosh</var> variant of this function is supplied for Delphi
  218. compatibility.
  219. </descr>
  220. <errors>
  221. If the argument <var>x</var> is not in the allowed range, an <var>EInvalidArgument</var>
  222. exception is raised.
  223. </errors>
  224. <seealso>
  225. <link id="cosh"/>
  226. <link id="sinh"/>
  227. <link id="arcsin"/>
  228. <link id="arsinh"/>
  229. <link id="artanh"/>,
  230. <link id="tanh"/>
  231. </seealso>
  232. <example file="mathex/ex3"/>
  233. </element>
  234. <element name="arcsin">
  235. <short>Return inverse sine</short>
  236. <descr>
  237. <var>Arcsin</var> returns the inverse sine of its argument <var>x</var>. The
  238. argument <var>x</var> should lie between -1 and 1.
  239. </descr>
  240. <errors>
  241. If the argument <var>x</var> is not in the allowed range, an <var>EInvalidArgument</var>
  242. exception is raised.
  243. </errors>
  244. <seealso>
  245. <link id="arccos"/>
  246. <link id="arcosh"/>
  247. <link id="arsinh"/>
  248. <link id="artanh"/>
  249. </seealso>
  250. <example file="mathex/ex2"/>
  251. </element>
  252. <element name="arctan2">
  253. <short>Return arctangent of (y/x)</short>
  254. <descr>
  255. <var>arctan2</var> calculates <var>arctan(y/x)</var>, and returns an angle in the
  256. correct quadrant. The returned angle will be in the range $-\pi$ to
  257. $\pi$ radians.
  258. The values of <var>x</var> and <var>y</var> must be between -2\^{}64 and 2\^{}64,
  259. moreover <var>x</var> should be different from zero.
  260. On Intel systems this function is implemented with the native intel
  261. <var>fpatan</var> instruction.
  262. </descr>
  263. <errors>
  264. If <var>x</var> is zero, an overflow error will occur.
  265. </errors>
  266. <seealso>
  267. <link id="arccos"/>
  268. <link id="arcosh"/>
  269. <link id="arsinh"/>
  270. <link id="artanh"/>
  271. </seealso>
  272. <example file="mathex/ex6"/>
  273. </element>
  274. <element name="arsinh">
  275. <short>Return inverse hyperbolic sine</short>
  276. <descr>
  277. <var>arsinh</var> returns the inverse hyperbolic sine of its argument <var>x</var>.
  278. The <var>arscsinh</var> variant of this function is supplied for Delphi
  279. compatibility.
  280. </descr>
  281. <errors>
  282. None.
  283. </errors>
  284. <seealso>
  285. <link id="arcosh"/>
  286. <link id="arccos"/>
  287. <link id="arcsin"/>
  288. <link id="artanh"/>
  289. </seealso>
  290. <example file="mathex/ex4"/>
  291. </element>
  292. <element name="artanh">
  293. <short>Return inverse hyperbolic tangent</short>
  294. <descr>
  295. <var>artanh</var> returns the inverse hyperbolic tangent of its argument <var>x</var>,
  296. where <var>x</var> should lie in the interval [-1,1], borders included.
  297. The <var>arctanh</var> variant of this function is supplied for Delphi compatibility.
  298. </descr>
  299. <errors>
  300. In case <var>x</var> is not in the interval [-1,1], an <var>EInvalidArgument</var>
  301. exception is raised.
  302. </errors>
  303. <seealso>
  304. <link id="arcosh"/>
  305. <link id="arccos"/>
  306. <link id="arcsin"/>
  307. <link id="artanh"/>
  308. </seealso>
  309. <example file="mathex/ex5"/>
  310. </element>
  311. <element name="ceil">
  312. <short>Return the lowest integer number greater than or equal to argument</short>
  313. <descr>
  314. <var>Ceil</var> returns the lowest integer number greater than or equal to <var>x</var>.
  315. The absolute value of <var>x</var> should be less than <var>maxint</var>.
  316. </descr>
  317. <errors>
  318. If the asolute value of <var>x</var> is larger than maxint, an overflow error will
  319. occur.
  320. </errors>
  321. <seealso>
  322. <link id="floor"/>
  323. </seealso>
  324. <example file="mathex/ex7"/>
  325. </element>
  326. <element name="cosh">
  327. <short>Return hyperbolic cosine</short>
  328. <descr>
  329. <var>Cosh</var> returns the hyperbolic cosine of it's argument {x}.
  330. </descr>
  331. <errors>
  332. None.
  333. </errors>
  334. <seealso>
  335. <link id="arcosh"/>
  336. <link id="sinh"/>
  337. <link id="arsinh"/>
  338. </seealso>
  339. <example file="mathex/ex8"/>
  340. </element>
  341. <element name="cotan">
  342. <short>Return cotangent</short>
  343. <descr>
  344. <var>Cotan</var> returns the cotangent of it's argument <var>x</var>. <var>x</var> should
  345. be different from zero.
  346. </descr>
  347. <errors>
  348. If <var>x</var> is zero then a overflow error will occur.
  349. </errors>
  350. <seealso>
  351. <link id="tanh"/>
  352. </seealso>
  353. <example file="mathex/ex9"/>
  354. </element>
  355. <element name="cycletorad">
  356. <short>Convert cycle angle to radians angle</short>
  357. <descr>
  358. <var>Cycletorad</var> transforms it's argument <var>cycle</var>
  359. (an angle expressed in cycles) to radians.
  360. (1 cycle is $2 \pi$ radians).
  361. </descr>
  362. <errors>
  363. None.
  364. </errors>
  365. <seealso>
  366. <link id="degtograd"/>
  367. <link id="degtorad"/>
  368. <link id="radtodeg"/>,
  369. <link id="radtograd"/>
  370. <link id="radtocycle"/>
  371. </seealso>
  372. <example file="mathex/ex10"/>
  373. </element>
  374. <element name="degtograd">
  375. <short>Convert degree angle to grads angle</short>
  376. <descr>
  377. <var>Degtograd</var> transforms it's argument <var>deg</var> (an angle in degrees)
  378. to grads.
  379. (90 degrees is 100 grad.)
  380. </descr>
  381. <errors>
  382. None.
  383. </errors>
  384. <seealso>
  385. <link id="cycletorad"/>
  386. <link id="degtorad"/>
  387. <link id="radtodeg"/>,
  388. <link id="radtograd"/>
  389. <link id="radtocycle"/>
  390. </seealso>
  391. <example file="mathex/ex11"/>
  392. </element>
  393. <element name="degtorad">
  394. <short>Convert degree angle to radians angle.</short>
  395. <descr>
  396. <var>Degtorad</var> converts it's argument <var>deg</var> (an angle in degrees) to
  397. radians.
  398. (pi radians is 180 degrees)
  399. </descr>
  400. <errors>
  401. None.
  402. </errors>
  403. <seealso>
  404. <link id="cycletorad"/>
  405. <link id="degtograd"/>
  406. <link id="radtodeg"/>,
  407. <link id="radtograd"/>
  408. <link id="radtocycle"/>
  409. </seealso>
  410. <example file="mathex/ex12"/>
  411. </element>
  412. <element name="floor">
  413. <short>Return the largest integer smaller than or equal to argument</short>
  414. <descr>
  415. <var>Floor</var> returns the largest integer smaller than or equal to <var>x</var>.
  416. The absolute value of <var>x</var> should be less than <var>maxint</var>.
  417. </descr>
  418. <errors>
  419. If <var>x</var> is larger than <var>maxint</var>, an overflow will occur.
  420. </errors>
  421. <seealso>
  422. <link id="ceil"/>
  423. </seealso>
  424. <example file="mathex/ex13"/>
  425. </element>
  426. <element name="frexp">
  427. <short>Return mantissa and exponent.</short>
  428. <descr>
  429. <var>Frexp</var> returns the mantissa and exponent of it's argument
  430. <var>x</var> in <var>mantissa</var> and <var>exponent</var>.
  431. </descr>
  432. <errors>
  433. None
  434. </errors>
  435. <seealso>
  436. </seealso>
  437. <example file="mathex/ex14"/>
  438. </element>
  439. <element name="gradtodeg">
  440. <short>Convert grads angle to degrees angle</short>
  441. <descr>
  442. <var>Gradtodeg</var> converts its argument <var>grad</var> (an angle in grads)
  443. to degrees.
  444. (100 grad is 90 degrees)
  445. </descr>
  446. <errors>
  447. None.
  448. </errors>
  449. <seealso>
  450. <link id="cycletorad"/>
  451. <link id="degtograd"/>
  452. <link id="radtodeg"/>,
  453. <link id="radtograd"/>
  454. <link id="radtocycle"/>
  455. <link id="gradtorad"/>
  456. </seealso>
  457. <example file="mathex/ex15"/>
  458. </element>
  459. <element name="gradtorad">
  460. <short>Convert grads angle to radians angle</short>
  461. <descr>
  462. <var>Gradtorad</var> converts its argument <var>grad</var> (an angle in grads)
  463. to radians.
  464. (200 grad is pi degrees).
  465. </descr>
  466. <errors>
  467. None.
  468. </errors>
  469. <seealso>
  470. <link id="cycletorad"/>
  471. <link id="degtograd"/>
  472. <link id="radtodeg"/>,
  473. <link id="radtograd"/>
  474. <link id="radtocycle"/>
  475. <link id="gradtodeg"/>
  476. </seealso>
  477. <example file="mathex/ex16"/>
  478. </element>
  479. <element name="hypot">
  480. <short>Return hypotenuse of triangle</short>
  481. <descr>
  482. <var>Hypot</var> returns the hypotenuse of the triangle where the sides
  483. adjacent to the square angle have lengths <var>x</var> and <var>y</var>.
  484. The function uses Pythagoras' rule for this.
  485. </descr>
  486. <errors>
  487. None.
  488. </errors>
  489. <seealso>
  490. </seealso>
  491. <example file="mathex/ex17"/>
  492. </element>
  493. <element name="intpower">
  494. <short>Return integer power.</short>
  495. <descr>
  496. <var>Intpower</var> returns <var>base</var> to the power <var>exponent</var>,
  497. where exponent is an integer value.
  498. </descr>
  499. <errors>
  500. If <var>base</var> is zero and the exponent is negative, then an
  501. overflow error will occur.
  502. </errors>
  503. <seealso>
  504. <link id="power"/>
  505. </seealso>
  506. <example file="mathex/ex18"/>
  507. </element>
  508. <element name="ldexp">
  509. <short>Return (2 to the power p) times x</short>
  510. <descr>
  511. <var>Ldexp</var> returns (2 to the power <var>p</var>) times <var>x</var>.
  512. </descr>
  513. <errors>
  514. None.
  515. </errors>
  516. <seealso>
  517. <link id="lnxp1"/>
  518. <link id="log10"/>
  519. <link id="log2"/>
  520. <link id="logn"/>
  521. </seealso>
  522. <example file="mathex/ex19"/>
  523. </element>
  524. <element name="lnxp1">
  525. <short>Return natural logarithm of 1+X</short>
  526. <descr>
  527. <var>Lnxp1</var> returns the natural logarithm of <var>1+X</var>. The result
  528. is more precise for small values of <var>x</var>. <var>x</var> should be larger
  529. than -1.
  530. </descr>
  531. <errors>
  532. If $x\leq -1$ then an <var>EInvalidArgument</var> exception will be raised.
  533. </errors>
  534. <seealso>
  535. <link id="ldexp"/>
  536. <link id="log10"/>
  537. <link id="log2"/>
  538. <link id="logn"/>
  539. </seealso>
  540. <example file="mathex/ex20"/>
  541. </element>
  542. <element name="log10">
  543. <short>Return 10-Based logarithm.</short>
  544. <descr>
  545. <var>Log10</var> returns the 10-base logarithm of <var>X</var>.
  546. </descr>
  547. <errors>
  548. If <var>x</var> is less than or equal to 0 an 'invalid fpu operation' error
  549. will occur.
  550. </errors>
  551. <seealso>
  552. <link id="ldexp"/>
  553. <link id="lnxp1"/>
  554. <link id="log2"/>
  555. <link id="logn"/>
  556. </seealso>
  557. <example file="mathex/ex21"/>
  558. </element>
  559. <element name="log2">
  560. <short>Return 2-based logarithm</short>
  561. <descr>
  562. <var>Log2</var> returns the 2-base logarithm of <var>X</var>.
  563. </descr>
  564. <errors>
  565. If <var>x</var> is less than or equal to 0 an 'invalid fpu operation' error
  566. will occur.
  567. </errors>
  568. <seealso>
  569. <link id="ldexp"/>
  570. <link id="lnxp1"/>
  571. <link id="log10"/>
  572. <link id="logn"/>
  573. </seealso>
  574. <example file="mathex/ex22"/>
  575. </element>
  576. <element name="logn">
  577. <short>Return N-based logarithm.</short>
  578. <descr>
  579. <var>Logn</var> returns the n-base logarithm of <var>X</var>.
  580. </descr>
  581. <errors>
  582. If <var>x</var> is less than or equal to 0 an 'invalid fpu operation' error
  583. will occur.
  584. </errors>
  585. <seealso>
  586. <link id="ldexp"/>
  587. <link id="lnxp1"/>
  588. <link id="log10"/>
  589. <link id="log2"/>
  590. </seealso>
  591. <example file="mathex/ex23"/>
  592. </element>
  593. <element name="max">
  594. <short>Return largest of 2 values</short>
  595. <descr>
  596. <var>Max</var> returns the maximum of <var>Int1</var> and <var>Int2</var>.
  597. </descr>
  598. <errors>
  599. None.
  600. </errors>
  601. <seealso>
  602. <link id="min"/>
  603. <link id="maxIntValue"/>
  604. <link id="maxvalue"/>
  605. </seealso>
  606. <example file="mathex/ex24"/>
  607. </element>
  608. <element name="maxIntValue">
  609. <short>Return largest element in integer array</short>
  610. <descr>
  611. <p>
  612. <var>MaxIntValue</var> returns the largest integer out of the <var>Data</var>
  613. array.
  614. </p>
  615. <p>
  616. This function is provided for Delphi compatibility, use the <link id="maxvalue"/>
  617. function instead.
  618. </p>
  619. </descr>
  620. <errors>
  621. None.
  622. </errors>
  623. <seealso>
  624. <link id="maxvalue"/>
  625. <link id="minvalue"/>
  626. <link id="minIntValue"/>
  627. </seealso>
  628. <example file="mathex/ex25"/>
  629. </element>
  630. <element name="maxvalue">
  631. <short>Return largest value in array</short>
  632. <descr>
  633. <p>
  634. <var>Maxvalue</var> returns the largest value in the <var>data</var>
  635. array with integer or float values. The return value has
  636. the same type as the elements of the array.
  637. </p>
  638. <p>
  639. The third and fourth forms accept a pointer to an array of <var>N</var>
  640. integer or float values.
  641. </p>
  642. </descr>
  643. <errors>
  644. None.
  645. </errors>
  646. <seealso>
  647. <link id="maxIntValue"/>
  648. <link id="minvalue"/>
  649. <link id="minIntValue"/>
  650. </seealso>
  651. <example file="mathex/ex26"/>
  652. </element>
  653. <element name="mean">
  654. <short>Return mean value of array</short>
  655. <descr>
  656. <var>Mean</var> returns the average value of <var>data</var>.
  657. The second form accepts a pointer to an array of <var>N</var> values.
  658. </descr>
  659. <errors>
  660. None.
  661. </errors>
  662. <seealso>
  663. <link id="meanandstddev"/>
  664. <link id="momentskewkurtosis"/>
  665. <link id="sum"/>
  666. </seealso>
  667. <example file="mathex/ex27"/>
  668. </element>
  669. <element name="meanandstddev">
  670. <short>Return mean and standard deviation of array</short>
  671. <descr>
  672. <var>meanandstddev</var> calculates the mean and standard deviation of <var>data</var>
  673. and returns the result in <var>mean</var> and <var>stddev</var>, respectively.
  674. Stddev is zero if there is only one value.
  675. The second form accepts a pointer to an array of <var>N</var> values.
  676. </descr>
  677. <errors>
  678. None.
  679. </errors>
  680. <seealso>
  681. <link id="mean"/>
  682. <link id="sum"/>
  683. <link id="sumofsquares"/>
  684. <link id="momentskewkurtosis"/>
  685. </seealso>
  686. <example file="mathex/ex28"/>
  687. </element>
  688. <element name="min">
  689. <short>Return smallest of two values.</short>
  690. <descr>
  691. <var>min</var> returns the smallest value of <var>Int1</var> and <var>Int2</var>;
  692. </descr>
  693. <errors>
  694. None.
  695. </errors>
  696. <seealso>
  697. <link id="max"/>
  698. </seealso>
  699. <example file="mathex/ex29"/>
  700. </element>
  701. <element name="minIntValue">
  702. <short>Return smallest value in integer array</short>
  703. <descr>
  704. <p>
  705. <var>MinIntvalue</var> returns the smallest value in the <var>Data</var> array.
  706. </p>
  707. <p>
  708. This function is provided for Delphi compatibility, use <var>minvalue</var>
  709. instead.
  710. </p>
  711. </descr>
  712. <errors>
  713. None
  714. </errors>
  715. <seealso>
  716. <link id="minvalue"/>
  717. <link id="maxIntValue"/>
  718. <link id="maxvalue"/>
  719. </seealso>
  720. <example file="mathex/ex30"/>
  721. </element>
  722. <element name="minvalue">
  723. <short>Return smallest value in array</short>
  724. <descr>
  725. <p>
  726. <var>Minvalue</var> returns the smallest value in the <var>data</var>
  727. array with integer or float values. The return value has
  728. the same type as the elements of the array.
  729. </p>
  730. <p>
  731. The third and fourth forms accept a pointer to an array of <var>N</var>
  732. integer or float values.
  733. </p>
  734. </descr>
  735. <errors>
  736. None.
  737. </errors>
  738. <seealso>
  739. <link id="maxIntValue"/>
  740. <link id="maxvalue"/>
  741. <link id="minIntValue"/>
  742. </seealso>
  743. <example file="mathex/ex31"/>
  744. </element>
  745. <element name="momentskewkurtosis">
  746. <short>Return 4 first moments of distribution</short>
  747. <descr>
  748. <var>momentskewkurtosis</var> calculates the 4 first moments of the distribution
  749. of valuesin <var>data</var> and returns them in <var>m1</var>,<var>m2</var>,<var>m3</var> and
  750. <var>m4</var>, as well as the <var>skew</var> and <var>kurtosis</var>.
  751. </descr>
  752. <errors>
  753. None.
  754. </errors>
  755. <seealso>
  756. <link id="mean"/>
  757. <link id="meanandstddev"/>
  758. </seealso>
  759. <example file="mathex/ex32"/>
  760. </element>
  761. <element name="norm">
  762. <short>Return Euclidian norm</short>
  763. <descr>
  764. <p>
  765. <var>Norm</var> calculates the Euclidian norm of the array of data.
  766. This equals <var>sqrt(sumofsquares(data))</var>.
  767. </p>
  768. <p>
  769. The second form accepts a pointer to an array of <var>N</var> values.
  770. </p>
  771. </descr>
  772. <errors>
  773. None.
  774. </errors>
  775. <seealso>
  776. <link id="sumofsquares"/>
  777. </seealso>
  778. <example file="mathex/ex33"/>
  779. </element>
  780. <element name="popnstddev">
  781. <short>Return population variance</short>
  782. <descr>
  783. <p>
  784. <var>Popnstddev</var> returns the square root of the population variance of
  785. the values in the <var>Data</var> array. It returns zero if there is only one value.
  786. </p>
  787. <p>
  788. The second form of this function accepts a pointer to an array of <var>N</var>
  789. values.
  790. </p>
  791. </descr>
  792. <errors>
  793. None.
  794. </errors>
  795. <seealso>
  796. <link id="popnvariance"/>
  797. <link id="mean"/>
  798. <link id="meanandstddev"/>
  799. <link id="stddev"/>
  800. <link id="momentskewkurtosis"/>
  801. </seealso>
  802. <example file="mathex/ex35"/>
  803. </element>
  804. <element name="popnvariance">
  805. <short>Return population variance</short>
  806. <descr>
  807. <p>
  808. <var>Popnvariance</var> returns the square root of the population variance of
  809. the values in the <var>Data</var> array. It returns zero if there is only one value.
  810. </p>
  811. <p>
  812. The second form of this function accepts a pointer to an array of <var>N</var>
  813. values.
  814. </p>
  815. </descr>
  816. <errors>
  817. None.
  818. </errors>
  819. <seealso>
  820. <link id="popnstddev"/>
  821. <link id="mean"/>
  822. <link id="meanandstddev"/>
  823. <link id="stddev"/>,
  824. <link id="momentskewkurtosis"/>
  825. </seealso>
  826. <example file="mathex/ex36"/>
  827. </element>
  828. <element name="power">
  829. <short>Return real power.</short>
  830. <descr>
  831. <var>power</var> raises <var>base</var> to the power <var>power</var>. This is equivalent
  832. to <var>exp(power*ln(base))</var>. Therefore <var>base</var> should be non-negative.
  833. </descr>
  834. <errors>
  835. None.
  836. </errors>
  837. <seealso>
  838. <link id="intpower"/>
  839. </seealso>
  840. <example file="mathex/ex34"/>
  841. </element>
  842. <element name="radtocycle">
  843. <short>Convert radians angle to cycle angle</short>
  844. <descr>
  845. <p>
  846. <var>Radtocycle</var> converts its argument <var>rad</var> (an angle expressed in
  847. radians) to an angle in cycles.
  848. </p>
  849. <p>
  850. (1 cycle equals 2 <var>pi</var> radians)
  851. </p>
  852. </descr>
  853. <errors>
  854. None.
  855. </errors>
  856. <seealso>
  857. <link id="degtograd"/>
  858. <link id="degtorad"/>
  859. <link id="radtodeg"/>,
  860. <link id="radtograd"/>
  861. <link id="cycletorad"/>
  862. </seealso>
  863. <example file="mathex/ex37"/>
  864. </element>
  865. <element name="radtodeg">
  866. <short>Convert radians angle to degrees angle</short>
  867. <descr>
  868. <var>Radtodeg</var> converts its argument <var>rad</var> (an angle expressed in
  869. radians) to an angle in degrees.
  870. (180 degrees equals pi radians)
  871. </descr>
  872. <errors>
  873. None.
  874. </errors>
  875. <seealso>
  876. <link id="degtograd"/>
  877. <link id="degtorad"/>
  878. <link id="radtocycle"/>,
  879. <link id="radtograd"/>
  880. <link id="cycletorad"/>
  881. </seealso>
  882. <example file="mathex/ex38"/>
  883. </element>
  884. <element name="radtograd">
  885. <short>Convert radians angle to grads angle</short>
  886. <descr>
  887. <p>
  888. <var>Radtodeg</var> converts its argument <var>rad</var> (an angle expressed in
  889. radians) to an angle in grads.
  890. </p>
  891. <p>
  892. (200 grads equals pi radians)
  893. </p>
  894. </descr>
  895. <errors>
  896. None.
  897. </errors>
  898. <seealso>
  899. <link id="degtograd"/>
  900. <link id="degtorad"/>
  901. <link id="radtocycle"/>,
  902. <link id="radtodeg"/>
  903. <link id="cycletorad"/>
  904. </seealso>
  905. <example file="mathex/ex39"/>
  906. </element>
  907. <element name="randg">
  908. <short>Return gaussian distributed random number.</short>
  909. <descr>
  910. <var>randg</var> returns a random number which - when produced in large
  911. quantities - has a Gaussian distribution with mean <var>mean</var> and
  912. standarddeviation <var>stddev</var>.
  913. </descr>
  914. <errors>
  915. None.
  916. </errors>
  917. <seealso>
  918. <link id="mean"/>
  919. <link id="stddev"/>
  920. <link id="meanandstddev"/>
  921. </seealso>
  922. <example file="mathex/ex40"/>
  923. </element>
  924. <element name="sincos">
  925. <short>Return sine and cosine of argument</short>
  926. <descr>
  927. <p>
  928. <var>Sincos</var> calculates the sine and cosine of the angle <var>theta</var>,
  929. and returns the result in <var>sinus</var> and <var>cosinus</var>.
  930. </p>
  931. <p>
  932. On Intel hardware, This calculation will be faster than making 2 calls
  933. to calculate the sine and cosine separately.
  934. </p>
  935. </descr>
  936. <errors>
  937. None.
  938. </errors>
  939. <seealso>
  940. <link id="arcsin"/>
  941. <link id="arccos"/>.
  942. </seealso>
  943. <example file="mathex/ex41"/>
  944. </element>
  945. <element name="sinh">
  946. <short>Return hyperbolic sine</short>
  947. <descr>
  948. <var>Sinh</var> returns the hyperbolic sine of its argument <var>x</var>.
  949. </descr>
  950. <errors>
  951. </errors>
  952. <seealso>
  953. <link id="cosh"/>
  954. <link id="arsinh"/>
  955. <link id="tanh"/>
  956. <link id="artanh"/>
  957. </seealso>
  958. <example file="mathex/ex42"/>
  959. </element>
  960. <element name="stddev">
  961. <short>Return standard deviation of data</short>
  962. <descr>
  963. <p>
  964. <var>Stddev</var> returns the standard deviation of the values in <var>Data</var>.
  965. It returns zero if there is only one value.
  966. </p>
  967. <p>
  968. The second form of the function accepts a pointer to an array of <var>N</var>
  969. values.
  970. </p>
  971. </descr>
  972. <errors>
  973. None.
  974. </errors>
  975. <seealso>
  976. <link id="mean"/>
  977. <link id="meanandstddev"/>
  978. <link id="variance"/>
  979. <link id="totalvariance"/>
  980. </seealso>
  981. <example file="mathex/ex43"/>
  982. </element>
  983. <element name="sum">
  984. <short>Return sum of values</short>
  985. <descr>
  986. <p>
  987. <var>Sum</var> returns the sum of the values in the <var>data</var> array.
  988. </p>
  989. <p>
  990. The second form of the function accepts a pointer to an array of <var>N</var>
  991. values.
  992. </p>
  993. </descr>
  994. <errors>
  995. None.
  996. </errors>
  997. <seealso>
  998. <link id="sumofsquares"/>
  999. <link id="sumsandsquares"/>
  1000. <link id="totalvariance"/>
  1001. <link id="variance"/>
  1002. </seealso>
  1003. <example file="mathex/ex44"/>
  1004. </element>
  1005. <element name="sumofsquares">
  1006. <short>Return sum of squares of values</short>
  1007. <descr>
  1008. <p>
  1009. <var>Sumofsquares</var> returns the sum of the squares of the values in the <var>data</var>
  1010. array.
  1011. </p>
  1012. <p>
  1013. The second form of the function accepts a pointer to an array of <var>N</var>
  1014. values.
  1015. </p>
  1016. </descr>
  1017. <errors>
  1018. None.
  1019. </errors>
  1020. <seealso>
  1021. <link id="sum"/>
  1022. <link id="sumsandsquares"/>
  1023. <link id="totalvariance"/>
  1024. <link id="variance"/>
  1025. </seealso>
  1026. <example file="mathex/ex45"/>
  1027. </element>
  1028. <element name="sumsandsquares">
  1029. <short>Return sum and sum of squares of values.</short>
  1030. <descr>
  1031. <p>
  1032. <var>sumsandsquares</var> calculates the sum of the values and the sum of
  1033. the squares of the values in the <var>data</var> array and returns the
  1034. results in <var>sum</var> and <var>sumofsquares</var>.
  1035. </p>
  1036. <p>
  1037. The second form of the function accepts a pointer to an array of <var>N</var>
  1038. values.
  1039. </p>
  1040. </descr>
  1041. <errors>
  1042. None.
  1043. </errors>
  1044. <seealso>
  1045. <link id="sum"/>
  1046. <link id="sumofsquares"/>
  1047. <link id="totalvariance"/>
  1048. <link id="variance"/>
  1049. </seealso>
  1050. <example file="mathex/ex46"/>
  1051. </element>
  1052. <element name="tan">
  1053. <short>Return tangent</short>
  1054. <descr>
  1055. <var>Tan</var> returns the tangent of <var>x</var>.
  1056. </descr>
  1057. <errors>
  1058. If <var>x</var> (normalized) is pi/2 or 3pi/2 then an overflow will occur.
  1059. </errors>
  1060. <seealso>
  1061. <link id="tanh"/>
  1062. <link id="arcsin"/>
  1063. <link id="sincos"/>
  1064. <link id="arccos"/>
  1065. </seealso>
  1066. <example file="mathex/ex47"/>
  1067. </element>
  1068. <element name="tanh">
  1069. <short>Return hyperbolic tangent</short>
  1070. <descr>
  1071. <var>Tanh</var> returns the hyperbolic tangent of <var>x</var>.
  1072. </descr>
  1073. <errors>
  1074. None.
  1075. </errors>
  1076. <seealso>
  1077. <link id="arcsin"/>
  1078. <link id="sincos"/>
  1079. <link id="arccos"/>
  1080. </seealso>
  1081. <example file="mathex/ex48"/>
  1082. </element>
  1083. <element name="totalvariance">
  1084. <short>Return total varians of values</short>
  1085. <descr>
  1086. <p>
  1087. <var>TotalVariance</var> returns the total variance of the values in the
  1088. <var>data</var> array. It returns zero if there is only one value.
  1089. </p>
  1090. <p>
  1091. The second form of the function accepts a pointer to an array of <var>N</var>
  1092. values.
  1093. </p>
  1094. </descr>
  1095. <errors>
  1096. None.
  1097. </errors>
  1098. <seealso>
  1099. <link id="variance"/>
  1100. <link id="stddev"/>
  1101. <link id="mean"/>
  1102. </seealso>
  1103. <example file="mathex/ex49"/>
  1104. </element>
  1105. <element name="variance">
  1106. <short>Return variance of values</short>
  1107. <descr>
  1108. <p>
  1109. <var>Variance</var> returns the variance of the values in the
  1110. <var>data</var> array. It returns zero if there is only one value.
  1111. </p>
  1112. <p>
  1113. The second form of the function accepts a pointer to an array of <var>N</var>
  1114. values.
  1115. </p>
  1116. </descr>
  1117. <errors>
  1118. None.
  1119. </errors>
  1120. <seealso>
  1121. <link id="totalvariance"/>
  1122. <link id="stddev"/>
  1123. <link id="mean"/>
  1124. </seealso>
  1125. <example file="mathex/ex50"/>
  1126. </element>
  1127. <!-- unresolved type reference Visibility: default -->
  1128. <element name="sysutils">
  1129. <short>Used for exception definitions.</short>
  1130. </element>
  1131. <!-- constant Visibility: default -->
  1132. <element name="MinExtended">
  1133. <short>Minimum value (closest to zero) of extended type</short>
  1134. </element>
  1135. <!-- constant Visibility: default -->
  1136. <element name="MaxExtended">
  1137. <short>Maximum value of extended type</short>
  1138. </element>
  1139. <!-- constant Visibility: default -->
  1140. <element name="MinFloat">
  1141. <short>Minimum value (closest to zero) of float type</short>
  1142. </element>
  1143. <!-- constant Visibility: default -->
  1144. <element name="MaxFloat">
  1145. <short>Maximum value of float type</short>
  1146. </element>
  1147. <!-- pointer type Visibility: default -->
  1148. <element name="PInteger">
  1149. <short>Pointer to integer type</short>
  1150. </element>
  1151. <!-- range type Visibility: default -->
  1152. <element name="TValueRelationship">
  1153. <short>Type to describe relational order between values</short>
  1154. </element>
  1155. <!-- constant Visibility: default -->
  1156. <element name="EqualsValue">
  1157. <short>Values are the same</short>
  1158. </element>
  1159. <!-- constant Visibility: default -->
  1160. <element name="LessThanValue">
  1161. <short>First value is less than second value</short>
  1162. </element>
  1163. <!-- constant Visibility: default -->
  1164. <element name="GreaterThanValue">
  1165. <short>First values is greater than second value</short>
  1166. </element>
  1167. <!-- constant Visibility: default -->
  1168. <element name="NaN">
  1169. <short>Value is Not a Number</short>
  1170. </element>
  1171. <!-- constant Visibility: default -->
  1172. <element name="Infinity">
  1173. <short>Value is infinity</short>
  1174. </element>
  1175. <!-- function Visibility: default -->
  1176. <element name="InRange">
  1177. <short>Check whether value is in range.</short>
  1178. <descr>
  1179. <var>InRange</var> returns <var>True</var> if <var>AValue</var> is in the
  1180. range <var>AMin</var>..<var>AMax</var>. It returns <var>False</var> if
  1181. <var>Value</var> lies outside the specified range.
  1182. </descr>
  1183. <seealso>
  1184. <link id="EnsureRange"/>
  1185. </seealso>
  1186. </element>
  1187. <!-- function Visibility: default -->
  1188. <element name="EnsureRange">
  1189. <short>Change value to it falls in specified range.</short>
  1190. <descr>
  1191. <var>EnsureRange</var> returns <var>Value</var> if <var>AValue</var> is in
  1192. the range <var>AMin</var>..<var>AMax</var>. It returns <var>AMin</var> if
  1193. the value is less than <var>AMin</var>, or <var>AMax</var> if the value is
  1194. larger than <var>AMax</var>.
  1195. </descr>
  1196. <seealso>
  1197. <link id="InRange"/>
  1198. </seealso>
  1199. </element>
  1200. <!-- procedure Visibility: default -->
  1201. <element name="DivMod">
  1202. <short>Return DIV and MOD of arguments </short>
  1203. <descr>
  1204. <var>DivMod</var> returns <var>Dividend</var> DIV <var>Divisor</var> in
  1205. <var>Result</var>, and <var>Dividend</var> MOD <var>Divisor</var> in
  1206. <var>Remainder</var>
  1207. </descr>
  1208. </element>
  1209. <!-- range type Visibility: default -->
  1210. <element name="TValueSign">
  1211. <short>Type indicating sign of a valuea</short>
  1212. </element>
  1213. <!-- constant Visibility: default -->
  1214. <element name="NegativeValue">
  1215. <short>Value is negative</short>
  1216. </element>
  1217. <!-- constant Visibility: default -->
  1218. <element name="ZeroValue">
  1219. <short>Value is zero</short>
  1220. </element>
  1221. <!-- constant Visibility: default -->
  1222. <element name="PositiveValue">
  1223. <short>Value is positive</short>
  1224. </element>
  1225. <!-- function Visibility: default -->
  1226. <element name="Sign">
  1227. <short>Return sign of argument</short>
  1228. <descr>
  1229. <var>Sign</var> returns the sign of it's argument, which can be an Integer,
  1230. 64 bit integer, or a double. The returned value is an integer which is -1, 0
  1231. or 1, and can be used to do further calculations with.
  1232. </descr>
  1233. </element>
  1234. <!-- function Visibility: default -->
  1235. <element name="IsZero">
  1236. <short>Check whether value is zero</short>
  1237. <descr>
  1238. <p>
  1239. <var>IsZero</var> checks whether the float value <var>A</var> is zero, up to a
  1240. precision of <var>Epsilon</var>. It returns <var>True</var> if Abs(<var>A</var>) is
  1241. less than <var>Epsilon</var>.
  1242. </p>
  1243. <p>
  1244. The default value for <var>Epsilon</var> is dependent on the type of the
  1245. arguments, but is <link id="MinFloat"/> for the float type.
  1246. </p>
  1247. </descr>
  1248. <seealso>
  1249. <link id="IsNan"/>
  1250. <link id="IsInfinite"/>
  1251. <link id="SameValue"/>
  1252. </seealso>
  1253. </element>
  1254. <!-- function Visibility: default -->
  1255. <element name="IsNan">
  1256. <short>Check whether value is Not a Number</short>
  1257. <descr>
  1258. <var>IsNan</var> returns <var>True</var> if the double <var>d</var>
  1259. contains Not A Number (a value which cannot be represented correctly
  1260. in double format).
  1261. </descr>
  1262. <seealso>
  1263. <link id="IsZero"/>
  1264. <link id="IsInfinite"/>
  1265. </seealso>
  1266. </element>
  1267. <!-- function Visibility: default -->
  1268. <element name="IsInfinite">
  1269. <short>Check whether value is infinite</short>
  1270. <descr>
  1271. <var>IsInfinite</var> returns <var>True</var> if the double <var>d</var>
  1272. contains the infinite value.
  1273. </descr>
  1274. <seealso>
  1275. <link id="IsZero"/>
  1276. <link id="IsInfinite"/>
  1277. </seealso>
  1278. </element>
  1279. <!-- function Visibility: default -->
  1280. <element name="SameValue">
  1281. <short>Check whether 2 float values are the same</short>
  1282. <descr>
  1283. <p>
  1284. <var>SameValue</var> returns <var>True</var> if the floating-point values
  1285. <var>A</var> and <var>B</var> are the same, i.e. whether the absolute value
  1286. of their their difference is smaller than <var>Epsilon</var>. If their
  1287. difference is larger, then <var>False</var> is returned.
  1288. </p>
  1289. <p>
  1290. The default value for <var>Epsilon</var> is dependent on the type of the
  1291. arguments, but is <link id="MinFloat"/> for the float type.
  1292. </p>
  1293. </descr>
  1294. <seealso>
  1295. <link id="MinFloat"/>
  1296. <link id="IsZero"/>
  1297. </seealso>
  1298. </element>
  1299. <!-- function Visibility: default -->
  1300. <element name="arccosh">
  1301. <short>Return inverse hyperbolic cosine</short>
  1302. <descr>
  1303. <p>
  1304. <var>arccosh</var> returns the inverse hyperbolic cosine of it's argument
  1305. <var>x</var>.
  1306. </p>
  1307. <p>
  1308. This function is an alias for <link id="arcosh"/>, provided for Delphi
  1309. compatibility.
  1310. </p>
  1311. </descr>
  1312. <seealso>
  1313. <link id="arcosh"/>
  1314. </seealso>
  1315. </element>
  1316. <!-- function Visibility: default -->
  1317. <element name="arcsinh">
  1318. <short>Return inverse hyperbolic sine</short>
  1319. <descr>
  1320. <p>
  1321. <var>arcsinh</var> returns the inverse hyperbolic sine of it's argument
  1322. <var>x</var>.
  1323. </p>
  1324. <p>
  1325. This function is an alias for <link id="arsinh"/>, provided for Delphi
  1326. compatibility.
  1327. </p>
  1328. </descr>
  1329. <seealso>
  1330. <link id="arsinh"/>
  1331. </seealso>
  1332. </element>
  1333. <!-- function Visibility: default -->
  1334. <element name="arctanh">
  1335. <short>Return inverse hyperbolic tangent</short>
  1336. <descr>
  1337. <p>
  1338. <var>arcsinh</var> returns the inverse hyperbolic tangent of it's argument
  1339. <var>x</var>.
  1340. </p>
  1341. <p>
  1342. This function is an alias for <link id="artanh"/>, provided for Delphi
  1343. compatibility.
  1344. </p>
  1345. </descr>
  1346. <seealso>
  1347. <link id="artanh"/>
  1348. </seealso>
  1349. </element>
  1350. <!-- enumeration type Visibility: default -->
  1351. <element name="TFPURoundingMode">
  1352. <short>Type describing the rounding mode for the Floating Point processor.</short>
  1353. </element>
  1354. <!-- enumeration value Visibility: default -->
  1355. <element name="TFPURoundingMode.rmNearest">
  1356. <short>Round to nearest integer value</short>
  1357. </element>
  1358. <!-- enumeration value Visibility: default -->
  1359. <element name="TFPURoundingMode.rmDown">
  1360. <short>Round to biggest integer smaller than value.</short>
  1361. </element>
  1362. <!-- enumeration value Visibility: default -->
  1363. <element name="TFPURoundingMode.rmUp">
  1364. <short>Round to smallest integer larger than value.</short>
  1365. </element>
  1366. <!-- enumeration value Visibility: default -->
  1367. <element name="TFPURoundingMode.rmTruncate">
  1368. <short>Cut off fractional part.</short>
  1369. </element>
  1370. <!-- enumeration type Visibility: default -->
  1371. <element name="TFPUPrecisionMode">
  1372. <short>Type describing the default precision for the Floating Point processor.</short>
  1373. </element>
  1374. <!-- enumeration value Visibility: default -->
  1375. <element name="TFPUPrecisionMode.pmSingle">
  1376. <short>Single-type precision</short>
  1377. </element>
  1378. <!-- enumeration value Visibility: default -->
  1379. <element name="TFPUPrecisionMode.pmReserved">
  1380. <short>?</short>
  1381. </element>
  1382. <!-- enumeration value Visibility: default -->
  1383. <element name="TFPUPrecisionMode.pmDouble">
  1384. <short>Double-type precision</short>
  1385. </element>
  1386. <!-- enumeration value Visibility: default -->
  1387. <element name="TFPUPrecisionMode.pmExtended">
  1388. <short>Extended-type precision</short>
  1389. </element>
  1390. <!-- enumeration type Visibility: default -->
  1391. <element name="TFPUException">
  1392. <short>Type describing Floating Point processor exceptions.</short>
  1393. </element>
  1394. <!-- enumeration value Visibility: default -->
  1395. <element name="TFPUException.exInvalidOp">
  1396. <short>Invalid operation error</short>
  1397. </element>
  1398. <!-- enumeration value Visibility: default -->
  1399. <element name="TFPUException.exDenormalized">
  1400. <short></short>
  1401. </element>
  1402. <!-- enumeration value Visibility: default -->
  1403. <element name="TFPUException.exZeroDivide">
  1404. <short>Division by zero error.</short>
  1405. </element>
  1406. <!-- enumeration value Visibility: default -->
  1407. <element name="TFPUException.exOverflow">
  1408. <short>Float overflow error</short>
  1409. </element>
  1410. <!-- enumeration value Visibility: default -->
  1411. <element name="TFPUException.exUnderflow">
  1412. <short>Float underflow error</short>
  1413. </element>
  1414. <!-- enumeration value Visibility: default -->
  1415. <element name="TFPUException.exPrecision">
  1416. <short>Precision error</short>
  1417. </element>
  1418. <!-- set type Visibility: default -->
  1419. <element name="TFPUExceptionMask">
  1420. <short>Type to set the Floating Point Unit exception mask.</short>
  1421. </element>
  1422. <!-- function Visibility: default -->
  1423. <element name="GetRoundMode">
  1424. <short>Return the Floating Point Unit rounding mode.</short>
  1425. <descr>
  1426. </descr>
  1427. </element>
  1428. <!-- function Visibility: default -->
  1429. <element name="SetRoundMode">
  1430. <short>Set the Floating Point Unit rounding mode.</short>
  1431. <descr>
  1432. </descr>
  1433. </element>
  1434. <!-- function Visibility: default -->
  1435. <element name="GetPrecisionMode">
  1436. <short>Return the Floating Point Unit precision mode.</short>
  1437. <descr>
  1438. </descr>
  1439. </element>
  1440. <!-- function Visibility: default -->
  1441. <element name="SetPrecisionMode">
  1442. <short>Set the Floating Point Unit precision mode.</short>
  1443. <descr>
  1444. </descr>
  1445. </element>
  1446. <!-- function Visibility: default -->
  1447. <element name="GetExceptionMask">
  1448. <short>Get the Floating Point Unit exception mask.</short>
  1449. <descr>
  1450. </descr>
  1451. </element>
  1452. <!-- function Visibility: default -->
  1453. <element name="SetExceptionMask">
  1454. <short>Set the Floating Point Unit exception mask.</short>
  1455. <descr>
  1456. </descr>
  1457. </element>
  1458. <!-- procedure Visibility: default -->
  1459. <element name="ClearExceptions">
  1460. <short>Clear Floating Point Unit exceptions</short>
  1461. <descr>
  1462. </descr>
  1463. </element>
  1464. </module>
  1465. </package>
  1466. </fpdoc-descriptions>