Warning, /utilities/kcalc/doc/index.docbook is written in an unsupported language. File is not indexed.
0001 <?xml version="1.0" ?> 0002 <!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN" "dtd/kdedbx45.dtd" [ 0003 <!ENTITY % addindex "IGNORE"> 0004 <!ENTITY % English "INCLUDE" > <!-- change language only here --> 0005 <!ENTITY commands SYSTEM "commands.docbook"> 0006 ]> 0007 0008 <book id="kcalc" lang="&language;"> 0009 <bookinfo> 0010 <title>The &kcalc; Handbook</title> 0011 0012 <authorgroup> 0013 <author> 0014 &Bernd.Johannes.Wuebben; &Bernd.Johannes.Wuebben.mail; 0015 </author> 0016 0017 <author> 0018 &Pamela.Roberts;&Pamela.Roberts.mail; 0019 <!-- <affiliation><jobtitle>Handbook maintainer</jobtitle> 0020 </affiliation> --> 0021 </author> 0022 <author> 0023 &Anne-Marie.Mahfouf;&Anne-Marie.Mahfouf.mail; 0024 <!-- <affiliation><jobtitle>Handbook maintainer</jobtitle> 0025 </affiliation> --> 0026 </author> 0027 <!-- TRANS:ROLES_OF_TRANSLATORS --> 0028 </authorgroup> 0029 0030 <copyright> 0031 <year>2001</year> <year>2002</year> <year>2005</year> <year>2006</year> 0032 <holder>&Bernd.Johannes.Wuebben;, &Pamela.Roberts;, 0033 &Anne-Marie.Mahfouf;</holder> 0034 </copyright> 0035 0036 <legalnotice>&FDLNotice;</legalnotice> 0037 0038 <date>2016-07-25</date> 0039 <releaseinfo>Applications 16.08</releaseinfo> 0040 0041 <abstract><para>&kcalc; is a calculator for your desktop environment. In the simple mode it can 0042 be used for basic arithmetic operations, but provides advanced modes for scientific, 0043 statistical and numeral system calculations.</para></abstract> 0044 0045 <keywordset> 0046 <keyword>KDE</keyword> 0047 <keyword>KCalc</keyword> 0048 <keyword>calculator</keyword> 0049 </keywordset> 0050 </bookinfo> 0051 0052 <chapter id="introduction"> 0053 <title>Introduction</title> 0054 0055 <para>&kcalc; offers many more mathematical functions than meet the eye 0056 on a first glance. Please study the section on keyboard accelerators and 0057 modes in this handbook to learn more about the many functions 0058 available.</para> 0059 0060 <para>In addition to the usual functionality offered by most scientific 0061 calculators, &kcalc; offers a number of features, which I think are 0062 worthwhile pointing out:</para> 0063 0064 <itemizedlist> 0065 <listitem> 0066 <para>&kcalc; provides trigonometric functions, logic operations, and it is 0067 able to do statistical calculations.</para> 0068 </listitem> 0069 <listitem> 0070 <para>&kcalc; allows you to cut and paste numbers from/into its display.</para> 0071 </listitem> 0072 <listitem> 0073 <para>&kcalc; features a <firstterm>results-stack</firstterm> which lets 0074 you conveniently recall previous results.</para> 0075 </listitem> 0076 <listitem> 0077 <para>You can configure &kcalc;'s display colors and font.</para> 0078 </listitem> 0079 <listitem> 0080 <para>You can configure &kcalc;'s precision, the number of displayed digits and the number 0081 of digits after the period in the settings dialog.</para> 0082 </listitem> 0083 <listitem> 0084 <para> &kcalc; offers a great number of useful <link linkend="key-accels"> 0085 key-bindings</link>, which make using &kcalc; without using a pointing device easy.</para> 0086 <para>Hint: pressing (and holding) the &Ctrl;-key, displays on 0087 every button,the corresponding key-binding.</para> 0088 </listitem> 0089 </itemizedlist> 0090 0091 <!--see https://bugs.kde.org/show_bug.cgi?id=326481--> 0092 <note><para>&kcalc; uses <ulink url="https://en.wikipedia.org/wiki/Calculator_input_methods#Infix_notation">Infix 0093 notation</ulink> which enforces correct order of operations as taught in school; contrary to 0094 <ulink url="https://en.wikipedia.org/wiki/Calculator_input_methods#Immediate_execution">Immediate execution</ulink> 0095 used by many simple calculators. 0096 </para></note> 0097 0098 <para>Have fun with &kcalc;!</para> 0099 0100 <para>&Bernd.Johannes.Wuebben;</para> 0101 0102 </chapter> 0103 0104 0105 <chapter id="usage"> 0106 <title>Usage</title> 0107 <sect1 id="general-usage"> 0108 <title>General Usage</title> 0109 0110 <para>General usage is straight forward and similar to the way most 0111 simple scientific calculators operate, but take note of the following 0112 special &kcalc; features:</para> 0113 0114 <variablelist> 0115 <varlistentry> 0116 <term>Result Stack</term> 0117 <listitem><para>Each time you &LMB; click on the 0118 <guibutton>=</guibutton> button or press your keyboard's 0119 &Enter; or <keysym>=</keysym> keys, the display result is 0120 written to &kcalc;'s result stack. You can navigate through the result 0121 stack with your keyboard's 0122 <keycombo action="simul">&Ctrl;<keycap>Z</keycap></keycombo> 0123 and <keycombo action="simul">&Ctrl; &Shift;<keycap>Z</keycap></keycombo> 0124 keys.</para> 0125 </listitem> 0126 </varlistentry> 0127 0128 <varlistentry> 0129 <term>Percent Function</term> 0130 <listitem> 0131 <para>The percent function works somewhat differently to that on most 0132 calculators. However, once understood, its enhanced functionality proves 0133 quite useful. See the section about the <link 0134 linkend="percent">percent</link> function for further details.</para> 0135 </listitem></varlistentry> 0136 0137 <varlistentry> 0138 <term>Cut and Paste</term> 0139 <listitem> 0140 <para><itemizedlist> 0141 <listitem> 0142 <para>Pressing <keycombo action="simul">&Ctrl;<keycap>C</keycap></keycombo> 0143 will place the displayed number on to the clipboard.</para> 0144 </listitem> 0145 <listitem> 0146 <para>Pressing <keycombo action="simul">&Ctrl;<keycap>V</keycap></keycombo> 0147 will paste the clipboard content into the display if the content of the 0148 clipboard is a valid floating point number.</para> 0149 </listitem> 0150 <listitem> 0151 <para>It is still possible to copy/paste by clicking on &kcalc;'s display, 0152 but this may disappear in future versions.</para> 0153 </listitem> 0154 </itemizedlist> 0155 </para></listitem></varlistentry> 0156 0157 <varlistentry> 0158 <term>Advanced functions</term> 0159 <listitem> 0160 <para>When you start &kcalc; for the first time, the calculator will only 0161 display buttons for basic arithmetic computations.</para> 0162 <para>Under the menu entry <guimenu>Settings</guimenu> it is possible to select a mode for &kcalc;: 0163 it is possible to choose 0164 <link linkend="simple-mode">Simple</link> or 0165 <link linkend="science-mode">Science</link> or 0166 <link linkend="statistical-mode">Statistic</link> or 0167 <link linkend="numeral-system-mode">Numeral System</link> mode. Please note, that these modes will 0168 slightly change as &kcalc; evolves.</para> 0169 </listitem> 0170 </varlistentry> 0171 0172 <varlistentry> 0173 <term>Button Layout</term> 0174 <listitem> 0175 <para>To give easy access to all the functions in advanced modes in &kcalc;, many keys have a second layout. Click 0176 on <guibutton>&Shift;</guibutton> or press the shortcut <keycombo action="simul">&Ctrl;<keycap>2</keycap></keycombo> to make 0177 the second layout of the buttons visible.</para> 0178 </listitem> 0179 </varlistentry> 0180 0181 <varlistentry> 0182 <term>History</term> 0183 <listitem> 0184 <para>The history area shows all the calculations done in &kcalc; for the active session of &kcalc;. 0185 Click on <guibutton>AC</guibutton> or press the shortcut <keycap>Del</keycap> to clear the content of the history. 0186 To activate or deactivate it, use the item <guilabel>Show History</guilabel> in the menu <guimenu>Settings</guimenu> of the 0187 menu bar, or press <keycombo action="simul">&Ctrl;<keycap>H</keycap></keycombo>.</para> 0188 </listitem> 0189 </varlistentry> 0190 0191 </variablelist> 0192 </sect1> 0193 0194 0195 <!-- describing MODES here --> 0196 0197 <sect1 id="simple-mode"> 0198 <title>Simple Mode</title> 0199 <para>This mode contains only those buttons and functions, which are essential necessary for basic calculations.</para> 0200 <para>If you just want to sum up all items on an invoice this mode may be your choice.</para> 0201 </sect1> 0202 0203 0204 <sect1 id="science-mode"> 0205 <title>Science Mode</title> 0206 0207 <para>In this mode the left column of buttons is allocated to trigonometric 0208 functions:</para> 0209 0210 <informaltable><tgroup cols="2"> 0211 <thead> 0212 <row><entry>Buttons</entry> 0213 <entry>Function</entry></row> 0214 </thead> 0215 <tbody> 0216 <row><entry><guibutton>Hyp</guibutton></entry> 0217 <entry>Enter Hyperbolic sub mode. Hyp Sin for example is the hyperbolic sine: 0218 sinh</entry></row> 0219 0220 <row><entry><guibutton>Sin</guibutton></entry> 0221 <entry>Compute the sine</entry></row> 0222 0223 <row><entry>&Shift; <guibutton>Sin</guibutton> or <guibutton>Asin</guibutton></entry> 0224 <entry>Compute the inverse sine</entry></row> 0225 0226 <row><entry><guibutton>Cos</guibutton></entry> 0227 <entry>Compute the cosine</entry></row> 0228 0229 <row><entry>&Shift; <guibutton>Cos</guibutton> or <guibutton>Acos</guibutton></entry> 0230 <entry>Compute the inverse cosine</entry></row> 0231 0232 <row><entry><guibutton>Tan</guibutton></entry> 0233 <entry>Compute the tangent</entry></row> 0234 0235 <row><entry>&Shift; <guibutton>Tan</guibutton> or <guibutton>Atan</guibutton></entry> 0236 <entry>Compute the inverse tangent</entry></row> 0237 0238 <row><entry><guibutton>Log</guibutton></entry> 0239 <entry>Compute the Log base 10</entry></row> 0240 0241 <row><entry>&Shift; <guibutton>Log</guibutton> or 10<superscript>x</superscript></entry> 0242 <entry>Compute 10 to the power of x</entry></row> 0243 0244 <row><entry><guibutton>Ln</guibutton></entry> 0245 <entry>Compute the natural logarithm. That is the log to base e</entry></row> 0246 0247 <row><entry>&Shift; <guibutton>Ln</guibutton> or e<superscript>x</superscript></entry> 0248 <entry>Compute e (the base of the natural logarithm) to the power of x</entry></row> 0249 0250 </tbody></tgroup></informaltable> 0251 0252 <para>The second column has buttons for algebraic functions:</para> 0253 0254 <informaltable><tgroup cols="2"> 0255 <thead> 0256 <row><entry>Buttons</entry> 0257 <entry>Function</entry></row> 0258 </thead> 0259 <tbody> 0260 <row><entry><guibutton>Mod</guibutton></entry> 0261 <entry>Compute the remainder in Euclidean division</entry></row> 0262 0263 <row><entry><guibutton>&Shift;</guibutton> <guibutton>Mod</guibutton> or <guibutton>IntDiv</guibutton></entry> 0264 <entry>Integer division (integer part of the quotient)</entry></row> 0265 0266 <row><entry><guibutton>1/x</guibutton></entry> 0267 <entry>Compute the reciprocal for a number</entry></row> 0268 0269 <row><entry><guibutton>&Shift;</guibutton> <guibutton>1/x</guibutton> or <guibutton>nCm</guibutton></entry> 0270 <entry>Compute the number of distinct second-operand-element subsets of it that can be formed for any set containing first operand elements (binomial coefficient)</entry></row> 0271 0272 <row><entry><guibutton>x!</guibutton></entry> 0273 <entry>Compute the product of all positive integers less than or equal to the current integer operand (factorial)</entry></row> 0274 0275 <row><entry><guibutton>x²</guibutton></entry> 0276 <entry>Compute the square of x</entry></row> 0277 0278 <row><entry><guibutton>&Shift;</guibutton> <guibutton>x²</guibutton> or <guibutton>√x</guibutton></entry> 0279 <entry>Compute the square root of x</entry></row> 0280 0281 <row><entry><guibutton>xʸ</guibutton></entry> 0282 <entry>x power y</entry></row> 0283 0284 <row><entry>&Shift; x<superscript>y</superscript> or x<superscript>1/y</superscript></entry> 0285 <entry>x power 1/y</entry></row> 0286 0287 <row><entry><guibutton>x³</guibutton></entry> 0288 <entry>Computes the third (cubic) power of x</entry></row> 0289 0290 <row><entry><guibutton>&Shift;</guibutton> <guibutton>x³</guibutton> or <guibutton>∛x</guibutton></entry> 0291 <entry>Computes the third (cubic) root of x</entry></row> 0292 0293 <row><entry><guibutton>x·10ʸ</guibutton></entry> 0294 <entry>Computes the product of the first operand and decimal exponent of the second operand</entry></row> 0295 0296 </tbody></tgroup></informaltable> 0297 0298 </sect1> 0299 0300 0301 <sect1 id="statistical-mode"> 0302 <title>Statistical Mode</title> 0303 0304 <para>In this mode the left column of buttons is allocated to statistical 0305 functions:</para> 0306 <para> Most of the functionality in this mode is centered around the <guibutton>Dat</guibutton> 0307 button. To create a data list of numbers, enter a number into the calculator and press 0308 <guibutton>Dat</guibutton>. A sequentially increasing number is shown on the display indicating 0309 which position in the Data <quote>list</quote> the number occupies. A traditional calculator only 0310 stores three values for statistical functions: The number of discrete items in a list, the sum of 0311 the data items entered and the sum of the square of all data items in the list. &kcalc; differs by 0312 actually storing each discrete value, allowing you to calculate the median value of the data. 0313 </para> 0314 0315 <informaltable><tgroup cols="2"> 0316 <thead> 0317 <row><entry>Buttons</entry> 0318 <entry>Function</entry></row></thead> 0319 0320 <tbody> 0321 <row><entry><guibutton>N</guibutton></entry> 0322 <entry>Recall the number of data items entered</entry></row> 0323 0324 <row><entry><guibutton>&Shift;</guibutton> <guibutton>N</guibutton> or <guibutton>&Sgr;x</guibutton></entry> 0325 <entry>Display the sum of all data items entered</entry></row> 0326 0327 <row><entry><guibutton>Mea</guibutton></entry> 0328 <entry>Display the mean of the data items entered</entry></row> 0329 0330 <row><entry><guibutton>&Shift;</guibutton> <guibutton>Mea</guibutton> or <guibutton>&Sgr;x²</guibutton></entry> 0331 <entry>Display the sum of the square of all data items entered</entry></row> 0332 0333 <row><entry>&sgr;<subscript>N</subscript></entry> 0334 <entry>Display the standard deviation (n)</entry></row> 0335 0336 <row><entry><guibutton>&Shift;</guibutton> &sgr;<subscript>N</subscript> or &sgr;<subscript>N-1</subscript> </entry> 0337 <entry>Display the population standard deviation (n-1)</entry></row> 0338 0339 <row><entry><guibutton>Med</guibutton></entry> 0340 <entry>Display the median</entry></row> 0341 0342 <row><entry><guibutton>Dat</guibutton></entry> 0343 <entry>Enter a data item</entry></row> 0344 0345 <row><entry><guibutton>&Shift;</guibutton> <guibutton>Dat</guibutton> or <guibutton>CDat</guibutton></entry> 0346 <entry>Clear last data item entered</entry></row> 0347 0348 <row><entry><guibutton>CSt</guibutton></entry> 0349 <entry>Clear the store of all data item entered</entry></row> 0350 0351 </tbody></tgroup></informaltable> 0352 0353 <para>The next two columns hold the buttons with trigonometric and algebraic functions described in the 0354 <link linkend="science-mode">Science</link> mode section.</para> 0355 0356 </sect1> 0357 0358 0359 <sect1 id="numeral-system-mode"> 0360 <title>Numeral System Mode</title> 0361 <para>This mode contains buttons and functions to calculate in binary, hexadecimal, octal and decimal.</para> 0362 0363 <para>You select the numeral system with the radio buttons on the right. To insert a hexadecimal number for example, 0364 just do the following: Select <guilabel>Hex</guilabel> from the radio buttons. Then enter a number and note, that you can 0365 use the letters <guibutton>A</guibutton> to <guibutton>F</guibutton> 0366 for numbers larger than 9. If you would like to see this number in binary, just select <guilabel>Bin</guilabel> from the radio buttons.</para> 0367 0368 <para>Binary, octal and hexadecimal numbers can be displayed as groups of digits separated by whitespaces. Such grouping can improve readability of numbers. For example, hexadecimal number <emphasis>AF1C42</emphasis> can be displayed as <emphasis>AF 1C 42</emphasis> with separation every second digit. Grouping can be turned off or tweaked. Select <menuchoice><guimenu>Settings</guimenu><guimenuitem>Configure &kcalc;...</guimenuitem></menuchoice> to bring up the configuration dialog and change the setting on <guilabel>General</guilabel> page as appropriate.</para> 0369 0370 <para>You may want to select <guimenu>Show Bit Edit</guimenu> from the <guimenu>Settings</guimenu> menu to see selected bits.</para> 0371 0372 <para>There are logic operators available in this mode. These operators are: 0373 <informaltable><tgroup cols="2"> 0374 <thead> 0375 <row><entry>Buttons</entry> 0376 <entry>Function</entry></row></thead> 0377 <tbody> 0378 <row><entry><guibutton>AND</guibutton></entry> 0379 <entry>Two numbers are logically anded</entry></row> 0380 0381 <row><entry><guibutton>OR</guibutton></entry> 0382 <entry>Two numbers are logically ored</entry></row> 0383 0384 <row><entry><guibutton>XOR</guibutton></entry> 0385 <entry>Two numbers are logically exclusive ored</entry></row> 0386 0387 <row><entry><guibutton>Lsh</guibutton></entry> 0388 <entry>Left shift the value</entry></row> 0389 0390 <row><entry><guibutton>Rsh</guibutton></entry> 0391 <entry>Right shift the value</entry></row> 0392 0393 <row><entry><guibutton>Cmp</guibutton></entry> 0394 <entry>Perform a 1's complement</entry></row> 0395 0396 </tbody></tgroup></informaltable> 0397 </para> 0398 0399 <para>The second column holds the buttons with algebraic functions described in the 0400 <link linkend="science-mode">Science</link> mode section.</para> 0401 0402 <para>The third column with the buttons <guibutton>A</guibutton> to <guibutton>F</guibutton> is 0403 enabled only in <guilabel>Hex</guilabel> mode. 0404 </para> 0405 </sect1> 0406 0407 <!-- end of MODES --> 0408 0409 0410 <sect1 id="memory-operations"> 0411 <title>Memory Operations</title> 0412 0413 <para>&kcalc; supports the memory operations given by standard 0414 calculators plus six slots to hold constants.</para> 0415 0416 <sect2 id="standard_memory"> 0417 <title> Standard Memory Operations</title> 0418 0419 <para>&kcalc; can remember results of operations for you, and re-use them in 0420 later calculations. You can access these functions via several buttons 0421 labeled <guibutton>MR</guibutton>, <guibutton>MS</guibutton>, 0422 <guibutton>M+</guibutton> and <guibutton>MC</guibutton>.</para> 0423 0424 <variablelist> 0425 <varlistentry> 0426 <term><guibutton>MS</guibutton></term> 0427 <listitem><para>The <guibutton>MS</guibutton> button stores the currently 0428 displayed result in memory.</para></listitem> 0429 </varlistentry> 0430 0431 <varlistentry> 0432 <term><guibutton>M+</guibutton></term> 0433 <listitem><para>The <guibutton>M+</guibutton> button adds the current result to the 0434 one in memory. So, if you had stored a 20, and the current result is a 5, 0435 your memory would contain 25 when you press it. If the memory is empty, it 0436 acts like <guibutton>MS</guibutton> and simply stores the 0437 result.</para></listitem> 0438 </varlistentry> 0439 0440 <varlistentry> 0441 <term><guibutton>MR</guibutton></term> 0442 <listitem><para>The <guibutton>MR</guibutton> button gets the value stored 0443 in memory and puts it in the display.</para></listitem> 0444 </varlistentry> 0445 0446 <varlistentry> 0447 <term><guibutton>MC</guibutton></term> 0448 <listitem><para>The <guibutton>MC</guibutton> button clears the 0449 memory.</para></listitem> 0450 </varlistentry> 0451 </variablelist> 0452 0453 <para>If a value is stored in memory a <guilabel>M</guilabel> will appear in 0454 the status bar, next to the calculator mode indicator</para> 0455 </sect2> 0456 0457 <sect2 id="constant_buttons"> 0458 <title>Constants</title> 0459 0460 <para>The six constants buttons <guibutton>C1</guibutton> to 0461 <guibutton>C6</guibutton> will only be visible after activating the 0462 item <guilabel>Constants Buttons</guilabel> in the menu 0463 <guimenu>Settings</guimenu> of the menu bar. They are available in <guilabel>Science mode</guilabel> 0464 and <guilabel>Statistics mode</guilabel></para> 0465 0466 <para>To see the value stored in each constant hover the button with the mouse pointer.</para> 0467 0468 <para>To store the number shown in the &kcalc; display in one of the 0469 six constants, first press <guibutton>&Shift;</guibutton> followed 0470 by the desired button key <guibutton>C1</guibutton> up to 0471 <guibutton>C6</guibutton>.</para> 0472 0473 <para>To use the value stored in any of the constants in a calculation, just 0474 press the desired button (<guibutton>C1</guibutton> to <guibutton>C6</guibutton>), 0475 and the corresponding number will appear in the display. </para> 0476 0477 <para>It is possible to change the label of the constants button to make it easier 0478 to remember which button holds which constant. Click with the right mouse 0479 button on one of the buttons <guibutton>C1</guibutton> to <guibutton> 0480 C6</guibutton>. A popup menu appears, in which you select <guilabel> 0481 Set Name</guilabel>. </para> 0482 0483 <para>There are many (mostly physical) predefined constants, which can 0484 be put on any of the six buttons <guibutton>C1</guibutton> - 0485 <guibutton>C6</guibutton> by selecting the desired constant in the 0486 popup menu that appears after right clicking on one of the constant 0487 buttons and selecting <guilabel>Choose from List</guilabel>. Though 0488 the predefined constants can also be accessed via the 0489 <guimenu>Constants</guimenu> in the menu bar, storing it on a 0490 constants button is very handy, if the number is used 0491 frequently.</para> 0492 0493 </sect2> 0494 0495 </sect1> 0496 0497 <sect1 id="key-accels"> 0498 <title>Single Key Accelerators</title> 0499 0500 <para>To simplify entering calculations from the keyboard &kcalc; has single key 0501 accelerators for most functions. For example entering <userinput>7R</userinput> 0502 or <userinput>7r</userinput> will calculate the reciprocal of 7 (1/7).</para> 0503 0504 <para>During a computation, you can always press &Ctrl; to make each 0505 button display its key-binding.</para> 0506 <!-- Shift works like Caps Lock--> 0507 <informaltable><tgroup cols="3"> 0508 <thead> 0509 <row><entry>Key</entry> 0510 <entry>Function</entry> 0511 <entry>Notes</entry></row> 0512 </thead> 0513 <tbody> 0514 0515 <row><entry><keycap>H</keycap></entry> 0516 <entry><guibutton>Hyp</guibutton></entry> 0517 <entry>Hyperbolic as in Hyp Sin, 0518 the sinh</entry></row> 0519 0520 <row><entry><keycap>S</keycap></entry> 0521 <entry><guibutton>Sin</guibutton></entry> 0522 <entry></entry></row> 0523 0524 <row><entry><keycap>C</keycap></entry> 0525 <entry><guibutton>Cos</guibutton></entry> 0526 <entry></entry></row> 0527 0528 <row><entry><keycap>T</keycap></entry> 0529 <entry><guibutton>Tan</guibutton></entry> 0530 <entry></entry></row> 0531 0532 <row><entry><keycap>N</keycap></entry> 0533 <entry><guibutton>Ln</guibutton></entry> 0534 <entry>log base e</entry></row> 0535 0536 <row><entry><keycap>L</keycap></entry> 0537 <entry><guibutton>Log</guibutton></entry> 0538 <entry>log base 10</entry></row> 0539 0540 <row><entry><keycap>Ctrl-2</keycap></entry> 0541 <entry> <guibutton>&Shift;</guibutton></entry> 0542 <entry>Second function for this button. ⪚ if 0543 you want arcsin type <userinput>Ctrl-2 s </userinput></entry></row> 0544 0545 <row><entry><keysym>\</keysym></entry> 0546 <entry><guibutton>+/-</guibutton></entry> 0547 <entry>Change sign</entry></row> 0548 0549 <row><entry><keysym>[</keysym></entry> 0550 <entry><guibutton>x^2</guibutton></entry> 0551 <entry></entry></row> 0552 0553 <row><entry><keysym>^</keysym></entry> 0554 <entry><guibutton>x^y</guibutton></entry> 0555 <entry></entry></row> 0556 0557 <row><entry><keysym>!</keysym></entry> 0558 <entry><guibutton>x!</guibutton></entry> 0559 <entry>Factorial</entry></row> 0560 0561 <row><entry><keysym>E</keysym></entry> 0562 <entry>x10<superscript>y</superscript></entry> 0563 <entry>Exponent</entry></row> 0564 0565 <row><entry><keysym><</keysym></entry> 0566 <entry><guibutton>Lsh</guibutton></entry> 0567 <entry>Left shift</entry></row> 0568 <!-- no "<" on Lsh key only ">" on Rsh key--> 0569 <row><entry><keysym>></keysym></entry> 0570 <entry><guibutton>Rsh</guibutton></entry> 0571 <entry>Right shift.</entry></row> 0572 <row><entry><keysym>&</keysym></entry> 0573 <entry><guibutton>AND</guibutton></entry> 0574 <entry>Logical AND</entry></row> 0575 0576 <row><entry><keysym>x</keysym> or <keysym>*</keysym></entry> 0577 <entry><guibutton>X</guibutton></entry> 0578 <entry>Multiply</entry></row> 0579 0580 <row><entry><keysym>/</keysym></entry> 0581 <entry><guibutton>/</guibutton></entry> 0582 <entry>Divide</entry></row> 0583 0584 <row><entry><keycap>D</keycap></entry> 0585 <entry><guibutton>Dat</guibutton></entry> 0586 <entry>Enter data item in statistical mode</entry></row> 0587 0588 <row><entry><keycap>|</keycap></entry> 0589 <entry><guibutton>OR</guibutton></entry> 0590 <entry>Logical OR. Note: <guibutton>&Shift;</guibutton> 0591 <guibutton>OR</guibutton> is XOR</entry></row> 0592 0593 <row><entry><keycap>R</keycap></entry> 0594 <entry><guibutton>1/x</guibutton></entry> 0595 <entry>Reciprocal</entry></row> 0596 0597 <row><entry>&Enter;</entry> 0598 <entry><guibutton>=</guibutton></entry> 0599 <entry></entry></row> 0600 0601 <row><entry><keycap>Return</keycap></entry> 0602 <entry><guibutton>=</guibutton></entry> 0603 <entry></entry></row> 0604 0605 <row><entry>&Backspace;</entry> 0606 <entry><guibutton><=</guibutton></entry> 0607 <entry>Delete last number</entry></row> 0608 0609 <row><entry><keycap>PgUp</keycap></entry> 0610 <entry><guibutton>C</guibutton></entry> 0611 <entry>Clear</entry></row> 0612 0613 <row><entry>&Esc;</entry> 0614 <entry><guibutton>C</guibutton></entry> 0615 <entry>Clear</entry></row> 0616 <!-- 0617 <row><entry><keycap>Prior</keycap></entry> 0618 <entry><guibutton>C</guibutton></entry> 0619 <entry>Clear</entry></row> 0620 --> 0621 <row><entry><keycap>PgDown</keycap></entry> 0622 <entry><guibutton>AC</guibutton></entry> 0623 <entry>Clear all</entry></row> 0624 <!-- 0625 <row><entry><keycap>Next</keycap></entry> 0626 <entry><guibutton>AC</guibutton></entry> 0627 <entry>Clear all</entry></row> 0628 --> 0629 <row><entry><keycap>Del</keycap></entry> 0630 <entry><guibutton>AC</guibutton></entry> 0631 <entry>Clear all</entry></row> 0632 0633 <row><entry><keycap>:</keycap></entry> 0634 <entry><guibutton>Mod</guibutton></entry> 0635 <entry>remainder of dividing</entry></row> 0636 0637 <row><entry>&Alt;+<keycap>1</keycap> to &Alt;+<keycap>6</keycap></entry> 0638 <entry><guibutton>C1</guibutton></entry> 0639 <entry>use the value stored in C1 to C6</entry></row> 0640 0641 </tbody></tgroup></informaltable> 0642 0643 </sect1> 0644 </chapter> 0645 0646 <chapter id="comments-on-specific-functions"> 0647 <title>Comments on Specific Functions</title> 0648 0649 <sect1 id="mod"> 0650 <title>Mod and IntDiv</title> 0651 0652 <variablelist> 0653 <varlistentry> 0654 <term><guibutton>Mod</guibutton> gives the remainder of dividing the displayed 0655 number by the next input number.</term> 0656 <listitem><para><userinput>22 Mod 8 = </userinput> will give the result 0657 <emphasis>6</emphasis></para> 0658 <para><userinput>22.345 Mod 8 = </userinput> will give the result 0659 <emphasis>6.345</emphasis></para> 0660 </listitem></varlistentry> 0661 0662 <varlistentry> 0663 <term><guibutton>&Shift;</guibutton> <guibutton>IntDiv</guibutton> does integer 0664 division of the displayed number by the next input number.</term> 0665 <listitem><para><userinput>22 Shift IntDiv 8 = </userinput> will give the result 0666 <emphasis>2</emphasis></para> 0667 <para><userinput>22.345 Shift IntDiv 8 = </userinput> also gives <emphasis>2</emphasis> 0668 </para></listitem></varlistentry> 0669 </variablelist> 0670 0671 </sect1> 0672 0673 0674 <sect1 id="percent"> 0675 <title>%</title> 0676 0677 <para>Used instead of the <guibutton>=</guibutton> key, 0678 <guibutton>%</guibutton> interprets the final operation carried out in the 0679 current calculation as follows:</para> 0680 0681 <para><itemizedlist> 0682 <listitem> 0683 <para>If the final operator is + or - the second argument is interpreted as percentage of the first operand. 0684 </para> 0685 </listitem> 0686 <listitem> 0687 <para>If the final operator is * divide the result of the multiplication by 100. 0688 </para> 0689 </listitem> 0690 <listitem> 0691 <para>If the final operator is / give the left operand 0692 as a percentage of the right operand. 0693 </para> 0694 </listitem> 0695 <listitem> 0696 <para> In all other cases the % key gives identical results to the = key. 0697 </para> 0698 </listitem> 0699 </itemizedlist></para> 0700 0701 <variablelist> 0702 <varlistentry> 0703 <term>Examples:</term> 0704 <listitem> 0705 <para><userinput>150 + 50 %</userinput> gives <emphasis>225</emphasis> (150 plus 50 percent of this amount)</para> 0706 <para><userinput>42 * 3 %</userinput> gives 0707 <emphasis>1.26</emphasis> (42 * 3 / 100)</para> 0708 <para><userinput>45 / 55 %</userinput> gives 0709 <emphasis>81.81...</emphasis> (45 is 81.81.. percent of 55)</para> 0710 </listitem> 0711 </varlistentry> 0712 </variablelist> 0713 0714 </sect1> 0715 0716 <sect1 id="lsh-rsh"> 0717 <title>Lsh and Rsh</title> 0718 <variablelist> 0719 <varlistentry> 0720 <term><guibutton>Lsh</guibutton> left shifts the integer part of the displayed 0721 value (multiplies it by 2) n times, where n is the next input number, and 0722 gives an integer result (base is set to <guibutton>Bin</guibutton>):</term> 0723 <listitem><para><userinput>10 Lsh 3 =</userinput> gives <emphasis>80</emphasis> 0724 (10 multiplied by 2 three times).</para> 0725 <para><userinput>10.345 Lsh 3 =</userinput> also gives 0726 <emphasis>80</emphasis>.</para></listitem> 0727 </varlistentry> 0728 0729 <varlistentry> 0730 <term><guibutton>Rsh</guibutton> right shifts the 0731 value (performs an integer divide by 2) n times.</term> 0732 <listitem><para><userinput>16 Rsh 2 =</userinput> gives 0733 <emphasis>4</emphasis> (16 divided by 2 twice).</para> 0734 <para><userinput>16.999 Rsh 2 =</userinput> also gives 0735 <emphasis>4</emphasis>.</para> 0736 </listitem> 0737 </varlistentry> 0738 </variablelist> 0739 0740 </sect1> 0741 0742 <sect1 id="and-or-xor"> 0743 <title>Cmp, And, Or and Xor</title> 0744 0745 <para>The <guibutton>Cmp</guibutton>, <guibutton>And</guibutton> and 0746 <guibutton>Or</guibutton> functions perform bitwise logical operations and 0747 therefore appear more meaningful if the base is set to 0748 <guilabel>Hex</guilabel>, <guilabel>Oct</guilabel> or <guilabel>Bin</guilabel> 0749 rather than <guilabel>Dec</guilabel>. In the following 0750 examples base is set to <guilabel>Bin</guilabel>.</para> 0751 0752 <variablelist> 0753 <varlistentry> 0754 <term><guibutton>Cmp</guibutton> performs a 1's complement (inverts the 0755 bits).</term> 0756 <listitem><para><userinput>101 Cmp</userinput> gives 0757 <emphasis>111...111010</emphasis></para> </listitem> 0758 </varlistentry> 0759 0760 <varlistentry> 0761 <term><guibutton>AND</guibutton> does a logical AND.</term> 0762 <listitem><para><userinput>101 AND 110 =</userinput> gives 0763 <emphasis>100</emphasis></para> </listitem> 0764 </varlistentry> 0765 0766 <varlistentry> 0767 <term><guibutton>OR</guibutton> does the logical OR.</term> 0768 <listitem><para><userinput>101 OR 110 =</userinput> gives 0769 <emphasis>111</emphasis></para> </listitem> 0770 </varlistentry> 0771 0772 <varlistentry> 0773 <term><guibutton>XOR</guibutton> performs the logical 0774 XOR (exclusive OR) operation.</term> 0775 <listitem><para><userinput>101 XOR 110 =</userinput> gives 0776 <emphasis>11</emphasis></para> </listitem> 0777 </varlistentry> 0778 0779 </variablelist> 0780 </sect1> 0781 </chapter> 0782 0783 0784 <chapter id="questions-and-answers"> 0785 <title>Questions and Answers</title> 0786 0787 <qandaset> 0788 0789 0790 <qandaentry> 0791 <question><para>How do I get e, the Euler number?</para></question> 0792 <answer><para>Press <userinput>1 Shift e<superscript>x</superscript></userinput> in the &kcalc; window, 0793 press <userinput>1 <keycombo action="simul">&Ctrl;<keycap>2</keycap></keycombo> <keycap>N</keycap></userinput> on the keyboard 0794 or use the <menuchoice><guimenu>Constants</guimenu><guimenuitem>Mathematics</guimenuitem> 0795 </menuchoice> menu.</para></answer> 0796 </qandaentry> 0797 0798 <qandaentry> 0799 <question><para>How do I get two fixed digits after the period?</para></question> 0800 <answer><para>Select <menuchoice><guimenu>Settings</guimenu><guimenuitem> 0801 Configure &kcalc;...</guimenuitem></menuchoice> on the menubar, this will 0802 bring up the configuration dialog. Check <guilabel>Set decimal 0803 precision</guilabel> and adjust the spin control so that it shows a 0804 2.</para></answer> </qandaentry> 0805 0806 <qandaentry> 0807 <question><para>What about Precision?</para></question> 0808 <answer><para>The main factor determining the precision of &kcalc; is whether your libc and libmath 0809 supports the C data type <type>long double</type>. If this is the case, &kcalc; will detect this 0810 at compile time and use it as its fundamental data type to represent numbers. 0811 </para> 0812 0813 <para>Adjust the <guilabel>Precision</guilabel> in &kcalc;'s 0814 <guibutton>Configure</guibutton> dialog so that the above computations 0815 work correctly. I recommend a precision of 14 if the fundamental data type 0816 for your copy of &kcalc; is <type>long double</type>, otherwise 8 or 10.</para> 0817 0818 <para>Higher precision doesn't necessarily lead to better results. Play with 0819 the precision and you will see what I mean.</para> 0820 </answer> 0821 </qandaentry> 0822 0823 </qandaset> 0824 </chapter> 0825 0826 &commands; 0827 0828 <chapter id="copyright"> 0829 <title>Credits and License</title> 0830 0831 <para>&kcalc; Program Copyright ©:</para> 0832 <para>&Bernd.Johannes.Wuebben; 1996-2000</para> 0833 <para>The &kde; Team 2000-2008</para> 0834 <para>&Evan.Teran; 2008-2013</para> 0835 0836 <itemizedlist> 0837 <listitem><para>&Bernd.Johannes.Wuebben; &Bernd.Johannes.Wuebben.mail;</para></listitem> 0838 <listitem><para>&Evan.Teran; &Evan.Teran.mail;</para></listitem> 0839 <listitem><para>&Espen.Sand; &Espen.Sand.mail;</para></listitem> 0840 <listitem><para>&Chris.Howells; &Chris.Howells.mail;</para></listitem> 0841 <listitem><para>&Aaron.J.Seigo; &Aaron.J.Seigo.mail;</para></listitem> 0842 <listitem><para>&Charles.Samuels; &Charles.Samuels.mail;</para></listitem> 0843 <listitem><para>&David.Johnson; &David.Johnson.mail;</para></listitem> 0844 </itemizedlist> 0845 0846 <para>&kcalc; was inspired by <personname><firstname>Martin</firstname> <surname>Bartlett</surname></personname>'s <application>xfrmcalc</application>, 0847 whose stack engine is still part of &kcalc;.</para> 0848 0849 <para>Documentation Copyright © 2001,2002,2005, 2006,2010:</para> 0850 <itemizedlist> 0851 <listitem><para>&Bernd.Johannes.Wuebben; &Bernd.Johannes.Wuebben.mail;</para></listitem> 0852 <listitem><para>&Pamela.Roberts; &Pamela.Roberts.mail;</para></listitem> 0853 <listitem><para>&J.Hall; &J.Hall.mail;</para></listitem> 0854 <listitem><para>&Anne-Marie.Mahfouf; &Anne-Marie.Mahfouf.mail;</para></listitem> 0855 <listitem><para><personname><firstname>Eike</firstname><surname>Krumbacher</surname></personname> 0856 <email>eike.krumbacher@x-eike.de</email></para></listitem> 0857 </itemizedlist> 0858 0859 <!-- TRANS:CREDIT_FOR_TRANSLATORS --> 0860 &underFDL; 0861 &underGPL; 0862 0863 </chapter> 0864 0865 </book> 0866 0867 <!-- 0868 Local Variables: 0869 mode: sgml 0870 sgml-minimize-attributes:nil 0871 sgml-general-insert-case:lower 0872 sgml-indent-step:0 0873 sgml-indent-data:nil 0874 End: 0875 -->