<!--
* 
*
*  ProLinga-Calc
*
*  Copyright (C) 2002-2008 Xobas Software
*  All rights reserved.
*  
*  This file is part of ProLinga-Calc.
*
*  ProLinga-Calc is free software: you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation, either version 3 of the License, or
*  (at your option) any later version.
*
*  ProLinga-Calc is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with ProLinga-Calc. If not, see <http://www.gnu.org/licenses/>.
*
*  More information is available at the following addresses:
*
*  Website     : http://www.prolinga.org
*
*  Email       : prolinga-list@prolinga.org
*
*
-->
<refentry id="prolinga-calc-prolingacalc">
  <refmeta>
    <refentrytitle>prolingacalc</refentrytitle>
    <manvolnum>1</manvolnum>
  </refmeta>

  <refnamediv>
    <refname>prolingacalc</refname>
    <refpurpose>C expression type calculator</refpurpose>
  </refnamediv>

  <refsynopsisdiv>
    <cmdsynopsis>
      <command>prolingacalc</command>
	<arg choice='opt'>
          <arg choice='plain'><option><replaceable>C expression</replaceable></option></arg>
        </arg>
  </cmdsynopsis>
  <cmdsynopsis>
      <command>prolingacalc</command>
      <arg choice='plain'><option>--version</option></arg>
  </cmdsynopsis>
  </refsynopsisdiv>

  <refsect1 id="prolingacalc_introduction">
    <title>Introduction</title>
    <para>
      The <parameter>prolingacalc</parameter> program parses C expression type calculations and returns
      the result.
      Input for the ProLinga Calc library are normal C expressions containing operators, 
      float or integer constants and variables. 
      Precedence and semantic of operators is the same as in C language. There are two 
      extra binary operators: >>> unsigned shift right and ** raising to power. 
      <parameter>prolingacalc</parameter> supports the standard set of functions from 
      C mathematics library and also defines function prime(n), which returns 
      smallest prime number >= n.
    </para>
  </refsect1>
  <refsect1 id="prolingacalc_options">
    <title>Options</title>
    <variablelist>
      <varlistentry>
	<term><option>C expression</option></term>
	<listitem>
	  <simpara>
            C expressions as "2+3" and more complicated ones like "2*sin(3)". In the prolingacalc shell, 
            variables can also be set. x=1+2 and the next input x+4 will return 7.
	  </simpara>
	</listitem>
      </varlistentry>

    </variablelist>
  </refsect1>
</refentry>

