<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="guide" id="function" xml:lang="ru">

    <info>
        <link type="guide" xref="index#equation"/>
    
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Yuriy Penkin</mal:name>
      <mal:email>yuriy.penkin@gmail.com</mal:email>
      <mal:years>2008</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Aleksey Kabanov</mal:name>
      <mal:email>ak099@mail.ru</mal:email>
      <mal:years>2012</mal:years>
    </mal:credit>
  </info>

	<title>Функции</title>
    
    <p>
    Functions can be used by inserting the name of the function followed by function arguments. <app>Calculator</app> also support user-defined functions.
    If the argument is not a number or <link xref="variable">a single variable</link> then write each argument separated by semicolon and use parenthesis around the argument list.
    </p>
    <example>
    <p its:locNote="Translators: Do not translate the word 'sin'!">sin 30</p>
    <p its:locNote="Translators: Do not translate the word 'abs'!">abs (5−9)</p>
    <p its:locNote="Translators: Do not translate the word 'fun'!">
    fun (9;10)
    </p>
    </example>
    <p>
    To add a new function type the function in the format as given below. A function name and arguments must only contain upper or lower case characters. The part after @ is the function description which is optional.
    </p>
    <example>
    <p>
    SimpleInterest (principal; rate; time) = principal * rate * time @ Simple Interest formula
    </p>
    </example>
    <p>
    Functions can also be added and inserted using the f(x) button.
    </p>
    <example>
    <p>
    Click on f(x). Type the function name in the box, choose the number of arguments and click on the plus sign button next to it. On the calculator screen type the function expression and press <key>Enter</key>.
    </p>
    </example>
    <example>
    <p>
    Click on f(x). Choose the function and click on it.
    </p>
    </example>
    <p>Имеются следующие функции.</p>
    <table>
    <tr>
    <td><p its:translate="no">abs</p></td>
    <td><p><link xref="absolute">Абсолютное значение</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">ceil</p></td>
    <td><p>Ceiling</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">cos</p></td>
    <td><p><link xref="trigonometry">Косинус</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">cosh</p></td>
    <td><p><link xref="trigonometry">Гиперболический косинус</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">floor</p></td>
    <td><p>Floor</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">frac</p></td>
    <td><p>Дробная часть</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">int</p></td>
    <td><p>Целая часть</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">ln</p></td>
    <td><p><link xref="logarithm">Натуральный логарифм</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">log</p></td>
    <td><p><link xref="logarithm">Логарифм</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">not</p></td>
    <td><p><link xref="boolean">Логическое НЕ</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">ones</p></td>
    <td><p>Дополнение до единицы</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">round</p></td>
    <td><p>Round</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">sgn</p></td>
    <td><p>Signum</p></td>
    </tr>
    <tr>
    <td><p its:translate="no">sin</p></td>
    <td><p><link xref="trigonometry">Синус</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">sinh</p></td>
    <td><p><link xref="trigonometry">Гиперболический синус</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">sqrt</p></td>
    <td><p><link xref="power">Квадратный корень</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">tan</p></td>
    <td><p><link xref="trigonometry">Тангенс</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">tanh</p></td>
    <td><p><link xref="trigonometry">Гиперболический тангенс</link></p></td>
    </tr>
    <tr>
    <td><p its:translate="no">twos</p></td>
    <td><p>Дополнение до двух</p></td>
    </tr>
    </table>
</page>
