/usr/share/help-langpack/bg/gnome-calculator/functions.page is in language-pack-gnome-bg-base 1:18.04+20180423.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | <?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="guide" id="function" xml:lang="bg">
<info>
<link type="guide" xref="index#equation"/>
</info>
<title>Functions</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>
sin 30
</p>
<p>
abs (5−9)
</p>
<p>
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>
The following functions are defined.
</p>
<table>
<tr>
<td><p>abs</p></td>
<td><p><link xref="absolute">Absolute Value</link></p></td>
</tr>
<tr>
<td><p>ceil</p></td>
<td><p>Ceiling</p></td>
</tr>
<tr>
<td><p>cos</p></td>
<td><p><link xref="trigonometry">Cosine</link></p></td>
</tr>
<tr>
<td><p>cosh</p></td>
<td><p><link xref="trigonometry">Hyperbolic Cosine</link></p></td>
</tr>
<tr>
<td><p>floor</p></td>
<td><p>Floor</p></td>
</tr>
<tr>
<td><p>frac</p></td>
<td><p>Fractional Component</p></td>
</tr>
<tr>
<td><p>int</p></td>
<td><p>Integer Component</p></td>
</tr>
<tr>
<td><p>ln</p></td>
<td><p><link xref="logarithm">Natural Logarithm</link></p></td>
</tr>
<tr>
<td><p>log</p></td>
<td><p><link xref="logarithm">Logarithm</link></p></td>
</tr>
<tr>
<td><p>not</p></td>
<td><p><link xref="boolean">Boolean NOT</link></p></td>
</tr>
<tr>
<td><p>ones</p></td>
<td><p>Ones complement</p></td>
</tr>
<tr>
<td><p>round</p></td>
<td><p>Round</p></td>
</tr>
<tr>
<td><p>sgn</p></td>
<td><p>Signum</p></td>
</tr>
<tr>
<td><p>sin</p></td>
<td><p><link xref="trigonometry">Sine</link></p></td>
</tr>
<tr>
<td><p>sinh</p></td>
<td><p><link xref="trigonometry">Hyperbolic Sine</link></p></td>
</tr>
<tr>
<td><p>sqrt</p></td>
<td><p><link xref="power">Square Root</link></p></td>
</tr>
<tr>
<td><p>tan</p></td>
<td><p><link xref="trigonometry">Tangent</link></p></td>
</tr>
<tr>
<td><p>tanh</p></td>
<td><p><link xref="trigonometry">Hyperbolic Tangent</link></p></td>
</tr>
<tr>
<td><p>twos</p></td>
<td><p>Twos complement</p></td>
</tr>
</table>
</page>
|