The following table lists the current functions that may be used in TILIGO program.
In new editions of TILIGO, the sets of functions may be different, depending on the needs reported by the users.
The present set is sufficient even for very complex computing needs.
Name |
Expression |
Function type |
Description |
abs |
abs(number) |
mathematical |
|
and |
and(logical1;logical2;….) |
logical |
It returns true if all the arguments are true (minimum one argument is required). |
barlength |
barlength(L;X;Lmin;P) |
mathematical |
Calculates the total length covered by the sections |
cos |
cos(number) |
trigonometrical |
|
ctg |
ctg(number) |
trigonometrical |
|
cutbarlength |
cutbarlength(L;X;Lmin;P) |
mathematical |
For specific purposes. Let us suppose that we have a material of L length and short fragments of maximum length X. The function checks what is the length of the remaining part after "covering" it with material of L length with the maximum possible number of the full X sections. Lmin - the shortest possible value of an average section. P - L value must be a multiple of values (for P=0 "L" may have any value) |
cutbarqty |
cutbarqty(L;X;Lmin;P) |
mathematical |
For specific purposes. It returns the number of incomplete sections calculated above. The possible values are 0,1 or 2. |
fullbarlength |
fullbarlength(L;X;Lmin;P) |
mathematical |
For specific purposes Let us suppose that we have material of L length and short sections of maximum length X. The function checks what is the length of complete sections used to cover the L length. Lmin - the shortest possible value of a section X - the length of a complete section (maximum length) P - L value must be a multiple of P value (for P=0 "L" may have any value). |
fullbarqty |
fullbarqty(L;X;Lmin;P) |
mathematical |
For specific purposes. The number of complete sections covering the disctane (in FullBarLength function). |
if |
if(warunek logiczny;number1;number2) |
logical |
|
mod |
mod(number1;number2) |
mathematical |
It returns the rest from the division of real numbers. |
not |
not(logical) |
logical |
|
or |
or(logical1;logical2;…) |
logical |
It returns true when at least one argument is true (minimum one argument is required). |
round |
round(number) |
mathematical |
The function performs rounding to the nearest whole number. |
rounddown |
rounddown(number1;number2) |
mathematical |
The function performs rounding down to the nearest whole number. |
roundup |
roundup(number1;number2) |
mathematical |
The function performs rounding up to the nearest whole number. |
sin |
sin(number) |
trigonometrical |
|
sqrt |
sqrt(number) |
mathematical |
|
tg |
tg(number) |
trigonometrical |
|
trunc |
trunc(number) |
mathematical |
The function performs rounding towards zero (for positive numbers it means "down", for negative numbers it means "up") of a given real number and returns it as the whole number. In other words, Trunc function cuts the fractional part. |
xor |
xor(logical1;logical2) |
logical |
|