OpenSCADAWiki: Home Page En/Doc/F Lib Math ...

Home | Index | Changes | Comments | Users | Registration | Login  Password:  
 
This is an old revision of HomePageEn/Doc/FLibMath from 2011-11-23 20:59:10..

The module <FLibMath> of the subsystem "Specials"

Author:|Roman SavochenkoTranslated:|Maxim LysenkoDescription:|Provides the library of standard mathematical functions.License:|GPLId|Name|Description|Time (micro-seconds)abs|Module|Math. function — the number module.|81acos|Anti-cosine|Math. function — anti-cosine.|149asin|Anti-sine|Math. function — anti-sine.|140atan|Anti-tangent|Math. function — anti-tangent.|109ceil|Rounding up to a larger|Math. function — rounding up to a larger integer.|96cos|Ñosine|Math. function — cosine.|93cosh|Hyperbolic cosine|Math. function — hyperbolic cosine.|121exp|Exponent|Math. function — exponent.|145floor|Rounding to the lower|Math. function — rounding to the lower integer|95if|If Condition|Condition function — "If".|92lg|Common logarithm|Math. function — common logarithm.|168ln|Natural logarithm|Math. function — natural logarithm.|185pow|Power|Math. function — involution.|157rand|Random number|Math. function — random number generator.|147sin|Sine|Math. function — sine.|127sinh|Hyperbolic sine|Math. function — hyperbolic sine.|199sqrt|The square root|Math. function — the square root.|94tan|Tangent|Math. function — tangent.|153tanh|Hyperbolic tangent|Math. function — hyperbolic tangent.|177||
Module:FLibMath
Name:The library of standard mathematical functions.
Type:Specials
Source:spec_FLibMath.so
Version:0.6.0

#


Contents

Introduction

Special FLibMath module provides the library of standard mathematical functions into the system.


To address the functions of the library you can use static call address "Special.FLibMath.{Func}()" or dynamic "SYS.Special.FLibMath["{Func}"].call()", "SYS.Special.FLibMath.{Func}()". Where {Func} — function identifier in the library.

1. Functions

Table 1 provides a description of each function of the library. For each function the evaluation time of execution is measured. The measurement was made on a system with the following parameters: Athlon 64 3000 + (ALTLinux 3.0 (32bit)), by measuring the total time of execution of the function, while calling it 1000 times.


Table 1: The functions of the library of standard mathematical functions
#

2. User programming API

Some objects of the module provides functions for user's programming.


The object "Functions library" (SYS.Special.FLibMath)


The object "User function" (SYS.Special.FLibMath["funcID"])

Links

Referring pages: HomePageEn/Doc
HomePageEn/Doc/DAQ
HomePageEn/Doc/FLibMath
HomePageEn/Doc/ProgrammManual
HomePageEn/Doc/ProgrammManual/part5
HomePageEn/Using/PLC


 
There are no files on this page.[Display files/form]
There is no comment on this page. [Display comments/form]