
% ----- minimal example -----
\documentclass{article}
    \usepackage{pgfplots}
           \pgfkeys{/pgf/fpu=true,/pgf/fpu/output format=fixed}
\begin{document}
%\tracingmacros=2 \tracingcommands=2
% test, if functions also do work in fpu library
% order of test from section 63.2 on page 529 in pgfmanual v2.10
%
% `%'   error message
% `%%'  not applicable/useful for fpu
% `%>'  not implemented in fpu library so far

\pgfmathsetseed{1}

\verb|log10(100)|:
    \pgfmathparse{log10(100)}:
   \pgfmathresult\ (expected  1.99997)

%%%%%
\verb|log2(128)|:
    \pgfmathparse{log2(128)}:
   \pgfmathresult\ (expected  6.99994)

\verb|not(true)|:
    \pgfmathparse{not(true)}:
   \pgfmathresult\ (expected  0)

\verb|notequal(20,25)|:
%>    \pgfmathparse{notequal(20,25)}:
   \pgfmathresult\ (expected  1)

\verb|notgreater(20,25)|:
%    \pgfmathparse{notgreater(20,25)}:
   \pgfmathresult\ (expected  1)

\verb|notless(20,25)|:
%    \pgfmathparse{notless(20,25)}:
   \pgfmathresult\ (expected  0)

%%%%%
\verb|oct(63)|:
    \pgfmathparse{oct(63)}:
   \pgfmathresult\ (expected  77)

\verb|and(5>4,6>7)|:
    \pgfmathparse{and(5>4,6>7)}:
   \pgfmathresult\ (expected  0)

\verb|true?"yes":"no"|:
%%    \pgfmathparse{true?"yes":"no"}:
   \pgfmathresult\ (expected  yes)


\verb|1<=2|:
	\pgfmathparse{1<=2}:
	\pgfmathresult (expected 1)

\verb|1<=1|:
	\pgfmathparse{1<=1}:
	\pgfmathresult (expected 1)

\verb|1<=0|:
	\pgfmathparse{1<=0}:
	\pgfmathresult (expected 0)

\verb|1>=2|:
	\pgfmathparse{1>=2}:
	\pgfmathresult (expected 0)

\verb|1>=1|:
	\pgfmathparse{1>=1}:
	\pgfmathresult (expected 1)

\verb|1>=0|:
	\pgfmathparse{1>=0}:
	\pgfmathresult (expected 1)

\verb|not(1)|:
	\pgfmathparse{not(1)}:
	\pgfmathresult (expected 0)

\verb|not(0)|:
	\pgfmathparse{not(0)}:
	\pgfmathresult (expected 1)

\verb|1==0|:
	\pgfmathparse{1==0}:
	\pgfmathresult (expected 0)

\verb|1==1|:
	\pgfmathparse{1==1}:
	\pgfmathresult (expected 1)

\verb|1==2|:
	\pgfmathparse{1==2}:
	\pgfmathresult (expected 0)

\verb|1e10==1e10|:
	\pgfmathparse{1e10==1e10}:
	\pgfmathresult (expected 1)

\verb|1.001e10==1e10|:
	\pgfmathparse{1.001e10==1e10}:
	\pgfmathresult (expected 0)

\verb|1.00001e10==1e10|:
	\pgfmathparse{1.00001e10==1e10}:
	\pgfmathresult (expected 1)

\verb|1!=1|:
	\pgfmathparse{1!=1}:
	\pgfmathresult (expected 0)

\verb|1!=2|:
	\pgfmathparse{1!=2}:
	\pgfmathresult (expected 1)

\verb|1e10!=1e10|:
	\pgfmathparse{1e10!=1e10}:
	\pgfmathresult (expected 0)

\verb|1.00001e10!=1e10|:
	\pgfmathparse{1.00001e10!=1e10}:
	\pgfmathresult (expected 0)

\verb|1<0 ? 4 : 5|:
	\pgfmathparse{1<0 ? 4 : 5}:
	\pgfmathresult (expected 5)

\verb|1234567<12345678 ? 1e10 : 0|:
	\pgfmathparse{1234567<12345678 ? 1e10 : 0}:
	\pgfmathresult (expected 1e10)

\verb|1234567==1234567 ? 1e10 : 0|:
	\pgfmathparse{1234567==1234567 ? 1e10 : 0}:
	\pgfmathresult (expected 1e10)
\end{document}
% ---------------------------
