Updated kn translations
[gcalctool.git] / help / C / functions.page
blob426d5238a7643f8847ab42da8cc5668b3b119bb6
1 <page xmlns="http://projectmallard.org/1.0/"
2       type="guide"
3       id="function">
5     <info>
6         <link type="guide" xref="index#equation"/>
7     </info>
9         <title>Functions</title>
10     
11     <p>
12     Functions can be used by inserting the name of the function followed by the function argument.
13     If the argument is not a number or <link xref="variable">variable</link> then use parenthesis around the argument.
14     </p>
15     <example>
16     <p>
17     sin 30
18     </p>
19     <p>
20     abs (5−9)
21     </p>
22     </example>
23     <p>
24     The following functions are defined.
25     </p>
26     <table>
27     <tr>
28     <td><p>abs</p></td>
29     <td><p><link xref="absolute">Absolute Value</link></p></td>
30     </tr>
31     <tr>
32     <td><p>cos</p></td>
33     <td><p><link xref="trigonometry">Cosine</link></p></td>
34     </tr>
35     <tr>
36     <td><p>cosh</p></td>
37     <td><p><link xref="trigonometry">Hyperbolic Cosine</link></p></td>
38     </tr>
39     <tr>
40     <td><p>frac</p></td>
41     <td><p>Fractional Component</p></td>
42     </tr>
43     <tr>
44     <td><p>int</p></td>
45     <td><p>Integer Component</p></td>
46     </tr>
47     <tr>
48     <td><p>ln</p></td>
49     <td><p><link xref="logarithm">Natural Logarithm</link></p></td>
50     </tr>
51     <tr>
52     <td><p>log</p></td>
53     <td><p><link xref="logarithm">Logarithm</link></p></td>
54     </tr>
55     <tr>
56     <td><p>not</p></td>
57     <td><p><link xref="boolean">Boolean NOT</link></p></td>
58     </tr>
59     <tr>
60     <td><p>ones</p></td>
61     <td><p>Ones complement</p></td>
62     </tr>
63     <tr>
64     <td><p>sin</p></td>
65     <td><p><link xref="trigonometry">Sine</link></p></td>
66     </tr>
67     <tr>
68     <td><p>sinh</p></td>
69     <td><p><link xref="trigonometry">Hyperbolic Sine</link></p></td>
70     </tr>
71     <tr>
72     <td><p>sqrt</p></td>
73     <td><p><link xref="power">Square Root</link></p></td>
74     </tr>
75     <tr>
76     <td><p>tan</p></td>
77     <td><p><link xref="trigonometry">Tangent</link></p></td>
78     </tr>
79     <tr>
80     <td><p>tanh</p></td>
81     <td><p><link xref="trigonometry">Hyperbolic Tangent</link></p></td>
82     </tr>
83     <tr>
84     <td><p>twos</p></td>
85     <td><p>Twos complement</p></td>
86     </tr>
87     </table>
88     <p>
89     <app>GCalctool</app> does not support user-defined functions.
90     </p>
91 </page>