<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html class="client-nojs" dir="ltr" lang="en">
<head>
<meta charset="UTF-8" />
<title>Modules/FLibMath - OpenSCADAWiki</title>
<meta content="MediaWiki 1.26.4" name="generator" />
<link href="https://www.gnu.org/copyleft/fdl.html" rel="copyright" />
<link href="../files/doc.css" rel="stylesheet" /></head>
<body><div class="floatright"><a href="../index.html"><img alt="OpenSCADA" src="../../en/files/index.png" /></a></div><div id="mw_header">
			<div class="mw-indicators">
</div>
			<h1 id="firstHeading" lang="en">Modules/FLibMath</h1>
		</div><div class="mw-content-ltr" dir="ltr" id="mw-content-text" lang="en"><div class="mw-pt-languages" dir="ltr" lang="en"><div class="mw-pt-languages-list autonym"><span class="mw-pt-languages-ui mw-pt-languages-selected mw-pt-progress mw-pt-progress--complete">English</span>&nbsp;• ‎<a class="mw-pt-progress mw-pt-progress--complete" href="../../ru/Modules/FLibMath.html" title="Модули/FLibMath (100% translated)">mRussian</a>&nbsp;• ‎<a class="mw-pt-progress mw-pt-progress--complete" href="../../uk/Modules/FLibMath.html" title="Модулі/FLibMath (100% translated)">Українська</a></div></div>
<table class="wikitable">

<tr>
<th> Module </th>
<th> Name </th>
<th> Version </th>
<th> License </th>
<th> Source </th>
<th> Languages </th>
<th> Platforms </th>
<th> Type </th>
<th> Author </th>
<th> Description
</th></tr>

<tr>
<td> <a href="../Modules/FLibMath.html" title="Special:MyLanguage/Modules/FLibMath">FLibMath</a> </td>
<td> Math functions
</td>
<td> 0.7 </td>
<td> GPL2 </td>
<td> spec_FLibMath.so </td>
<td> en,uk,ru,de </td>
<td> x86,x86_64,ARM
</td>
<td> Special </td>
<td> Roman Savochenko<br />&nbsp;&nbsp;<font size="-2"><i>Maxim Lysenko (2009-2010)</i></font> — the page translation </td>
<td> Provides a library of the standard mathematical functions.
</td></tr></table>
<div class="toc" id="toc"><div id="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1 tocsection-1"><a href="#Functions"><span class="tocnumber">1</span> <span class="toctext">Functions</span></a></li>
<li class="toclevel-1 tocsection-2"><a href="#User_programming_API"><span class="tocnumber">2</span> <span class="toctext">User programming API</span></a></li>
</ul>
</div>

<p>The module provides OpenSCADA for a static standard mathematical functions library.
</p><p>To address the functions of the library you can use the static call address <b>Special.FLibMath.{Func}()</b> or dynamic <b>SYS.Special.FLibMath["{Func}"].call()</b>, <b>SYS.Special.FLibMath.{Func}()</b>. Where <i>{Func}</i> — function identifier in the library.
</p>
<h2><span class="mw-headline" id="Functions"><span class="mw-headline-number">1</span> Functions</span></h2>
<p>Table 1 provides a description of each function of the library.
</p><p><b>Table 1:</b> Functions of the standard mathematical functions library
</p>
<table class="wikitable">

<tr>
<th> Identifier </th>
<th> Name </th>
<th> Description
</th></tr>
<tr>
<td> abs </td>
<td> Absolute </td>
<td> Absolute math function.
</td></tr>
<tr>
<td> acos </td>
<td> Arccosine </td>
<td> Arccosine math function.
</td></tr>
<tr>
<td> asin </td>
<td> Arcsine </td>
<td> Arcsine math function.
</td></tr>
<tr>
<td> atan </td>
<td> Arctangent </td>
<td> Arctangent math function.
</td></tr>
<tr>
<td> ceil </td>
<td> Ceil </td>
<td> Math function of rounding up to the largest integer.
</td></tr>
<tr>
<td> cos </td>
<td> Cosine </td>
<td> Cosine math function.
</td></tr>
<tr>
<td> cosh </td>
<td> Cosine hyperbolic </td>
<td> Cosine hyperbolic math function.
</td></tr>
<tr>
<td> exp </td>
<td> Exponent </td>
<td> Exponent math function.
</td></tr>
<tr>
<td> floor </td>
<td> Floor </td>
<td> Math function of rounding down to the lowest integer.
</td></tr>
<tr>
<td> if </td>
<td> IF condition </td>
<td> Function of the type 'if'-condition.
</td></tr>
<tr>
<td> lg </td>
<td> Decimal logarithm </td>
<td> Decimal logarithm math function.
</td></tr>
<tr>
<td> ln </td>
<td> Natural logarithm </td>
<td> Natural logarithm math function.
</td></tr>
<tr>
<td> pow </td>
<td> Power </td>
<td> Power math function.
</td></tr>
<tr>
<td> rand </td>
<td> Random number </td>
<td> Math function of the random numbers generation.
</td></tr>
<tr>
<td> sin </td>
<td> Sine </td>
<td> Sine math function.
</td></tr>
<tr>
<td> sinh </td>
<td> Sine hyperbolic </td>
<td> Sine hyperbolic math function.
</td></tr>
<tr>
<td> sqrt </td>
<td> Square root </td>
<td> Square root math function.
</td></tr>
<tr>
<td> tan </td>
<td> Tangent </td>
<td> Tangent math function.
</td></tr>
<tr>
<td> tanh </td>
<td> Tangent hyperbolic </td>
<td> Tangent hyperbolic math function.
</td></tr></table>
<h2><span class="mw-headline" id="User_programming_API"><span class="mw-headline-number">2</span> User programming API</span></h2>
<p>The module, as an object, provides user programming functions.
</p><p><b>The object "Functions library" (SYS.Special.FLibMath)</b>
</p>
<ul><li> <i>ElTp {funcID}(ElTp prm1, ...)</i> — call the library function <i>{funcID}</i>. Return result of the called function.</li></ul>
<p><b>The object "User function" (SYS.Special.FLibMath["funcID"])</b>
</p>
<ul><li> <i>ElTp call(ElTp prm1, ...)</i> — call the function with parameters <i>prm{N}</i>. Return result of the called function.</li></ul>






</div><table style="border-top: dotted 2px #999999; margin-top: 20pt; color: gray;" width="100%"><tr><td style="text-align: left;" width="40%"><a href="http://oscada.org/wiki/Modules/FLibMath/en">Modules/FLibMath/en</a> - <a href="http://oscada.org/en/main/about-the-project/licenses/">GFDL</a></td><td style="text-align: center;">April 2025</td><td style="text-align: right;" width="40%">OpenSCADA 1+r3018</td></tr></table></body>
</html>