Это старая версия документа.
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/users/p/prom-auto/domains/prom-auto.ru/wiki/inc/parser/handler.php on line 1458
Warning: Declaration of syntax_plugin_tablecalc::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /home/users/p/prom-auto/domains/prom-auto.ru/wiki/lib/plugins/tablecalc/syntax.php on line 41
Warning: Declaration of syntax_plugin_tablecalc::render($mode, &$renderer, $data) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /home/users/p/prom-auto/domains/prom-auto.ru/wiki/lib/plugins/tablecalc/syntax.php on line 72
Warning: Declaration of syntax_plugin_offline::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /home/users/p/prom-auto/domains/prom-auto.ru/wiki/lib/plugins/offline/syntax.php on line 60
Warning: Declaration of syntax_plugin_offline::render($format, &$renderer, $data) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /home/users/p/prom-auto/domains/prom-auto.ru/wiki/lib/plugins/offline/syntax.php on line 67
Warning: preg_match(): Compilation failed: invalid range in character class at offset 3416 in /home/users/p/prom-auto/domains/prom-auto.ru/wiki/inc/parser/lexer.php on line 118
====== calc выражения ====== ===== пример ===== max((weight + 2*offset)/time, 50) где: * **max** - функция * **weight** - аргумент * **offset** - аргумент * **time** - аргумент ===== арифметические операции ===== * + * - * * * / * % (деление по модулю) * ^ ** (возведение в степень) ===== операции сравнения ===== * < * <nowiki><=</nowiki> * = * >= * > * != * - ===== логические операции ===== * && * || Реализация на примере ||: ''(a == 1 && b == 1)? 1 : 0'' ===== функции ===== * sin(a) * cos(a) * tan(a) * sinh(a) * cosh(a) * tanh(a) * asin(a) * acos(a) * atan(a) * atan2(a) * deg(a) * rad(a) * abs(a) * round(a) * ceil(a) * floor(a) * exp(a) * ln(a) * log(a) * sqrt(a) * min(a, b) * max(a, b) * rnd(а) - возвращает случайное значение, которое больше 0 и меньше а. * sign(a) - если а==0, возвращает 0. Если а<0, то -1. Если а>0, то 1. * if(с, a, b) - если c==1, то а, иначе b * AND(a, b) - реализация ''(int)a & (int)b'' * OR(a, b) - реализация ''(int)a | (int)b''