<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" id="plugin-calculator" xml:lang="ro">

  <info>
   <link type="guide" xref="index#plugins"/>
   <desc>Using the calculator plugin.</desc>
  </info>

  <title><app>Calculator</app></title>

 <section>
  <title>Modulul calculator</title>
  <p>Modulul calculator vă permite să calculați expresii rapid. Acesta poate evalua expresii introduse ca text ce începe cu „=”. Introducerea = din modul de comandă va porni modul text direct cu = ca prefix pentru acces rapid.</p>
  </section>
  <section>
  <title>Folosire de bază</title>
  <steps>
    <item><p>
        Activate Kupfer and type <key>=</key>
    </p></item>
    <item><p>Type in a mathematical expression using
        <key>+</key>,<key>-</key>,<key>/</key>,<key>*</key> (and
        <key>**</key> for exponentiation)
    </p></item>
    <item><p>
        Press <key>Return</key> to get the result.
    </p></item>
  </steps>

 </section>
  <section>
    <title>Notes</title>
    <p>
      The Calculator uses python's math and complex math modules, 
      and parses expressions as Python expressions. You may use common 
      mathematical functions, such as <cmd>sqrt</cmd>, <cmd>sin</cmd>,
      <cmd>exp</cmd> and <cmd>log</cmd>; the command <cmd>=help</cmd> will
      show a list of all defined functions and constants. 
    </p>
    <list>
     <item>
      <p>
       Notice that the power operator in Python is double stars, for example 
       <code>=3**3</code> will evaluate to 27.
      </p>
     </item>
     <item>
      <p>Pentru a calcula funcții trigonometrice pentru unghiuri, transformați măsura unghiurilor în radiani întâi:</p>
      <code>sin(radians(30)) -&gt; 0.5</code>
     </item>
     <item>
      <p>Ultimul rezultat este stocat sub numele de _ (un underscore, ca și în consola Python).</p>
     </item>
     </list>
   </section>
  
</page>
