
% ----- 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|abs(-5)|:
    \pgfmathparse{abs(-5)}:
   \pgfmathresult\ (expected  5)

\verb|acos(0.5)|:
    \pgfmathparse{acos(0.5)}:
   \pgfmathresult\ (expected  60)

\verb|add(75,6)|:
    \pgfmathparse{add(75,6)}:
   \pgfmathresult\ (expected  81)

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

\verb|array({9,13,17,21},2)|:
%    \pgfmathparse{array({9,13,17,21},2)}:
   \pgfmathresult\ (expected  17)

\verb|asin(0.7071)|:
    \pgfmathparse{asin(0.7071)}:
   \pgfmathresult\ (expected  44.99135)

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

\verb|atan2(-4,3)|:
  %  \pgfmathparse{atan2(-4,3)}:
   \pgfmathresult\ (expected  143.13011)

\verb|bin(185)|:
    \pgfmathparse{bin(185)}:
   \pgfmathresult\ (expected  10111001)

\verb|ceil(398/12)|:
%>    \pgfmathparse{ceil(398/12)}:
   \pgfmathresult\ (expected  34)

\verb|cos(60)|:
    \pgfmathparse{cos(60)}:
   \pgfmathresult\ (expected  0.5)

\verb|cosec(30)|:
    \pgfmathparse{cosec(30)}:
   \pgfmathresult\ (expected  2.0)

\verb|cosh(0.5)|:
    \pgfmathparse{cosh(0.5)}:
   \pgfmathresult\ (expected  1.12767)

\verb|cot(15)|:
    \pgfmathparse{cot(15)}:
   \pgfmathresult\ (expected  3.73215)

\verb|deg(3*pi/2)|:
    \pgfmathparse{deg(3*pi/2)}:
   \pgfmathresult\ (expected  269.999)

\verb|depth("SomeLovelyText")|:
%%    \pgfmathparse{depth("SomeLovelyText")}:
   \pgfmathresult\ (expected  1.94444)

\verb|div(75,9)|:
%    \pgfmathparse{div(75,9)}:
   \pgfmathresult\ (expected  8)

\verb|divide(75,6)|:
    \pgfmathparse{divide(75,6)}:
   \pgfmathresult\ (expected  12.5)

\verb|(e^2-e^-2)/2|:
    \pgfmathparse{(e^2-e^-2)/2}:
   \pgfmathresult\ (expected  3.62685)

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

\verb|factorial(5)|:
    \pgfmathparse{factorial(5)}:
   \pgfmathresult\ (expected  120)

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

\verb|floor(398/12)|:
    \pgfmathparse{floor(398/12)}:
   \pgfmathresult\ (expected  33)

\verb|frac(32.5/17)|:
%>    \pgfmathparse{frac(32.5/17)}:
   \pgfmathresult\ (expected  0.91176)

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

\verb|height("SomeLovelyText")|:
%%    \pgfmathparse{height("SomeLovelyText")}:
   \pgfmathresult\ (expected  6.94444)

\verb|hex(65535)|:
%%    \pgfmathparse{hex(65535)}:
   \pgfmathresult\ (expected  ffff)

\verb|Hex(65535)|:
%%    \pgfmathparse{Hex(65535)}:
   \pgfmathresult\ (expected  FFFF)

\verb|int(32.5/17)|:
%    \pgfmathparse{int(32.5/17)}:
   \pgfmathresult\ (expected  1)

\verb|ifthenelse(5==4,"yes","no")|:
%%    \pgfmathparse{ifthenelse(5==4,"yes","no")}:
   \pgfmathresult\ (expected  no)

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

\verb|ln(exp(5))|:
    \pgfmathparse{ln(exp(5))}:
   \pgfmathresult\ (expected  4.99997)

%%%%%
\verb|max(3,4,-2,250,-8,100)|:
    \pgfmathparse{max(3,4,-2,250,-8,100)}:
   \pgfmathresult\ (expected  250)

\verb|min(3,4,-2,250,-8,100)|:
    \pgfmathparse{min(3,4,-2,250,-8,100)}:
   \pgfmathresult\ (expected  -8)

\verb|mod(-100,30)|:
    \pgfmathparse{mod(-100,30)}:
   \pgfmathresult\ (expected  -10)

\verb|Mod(-100,30)|:
%>    \pgfmathparse{Mod(-100,30)}:
   \pgfmathresult\ (expected  20)

\verb|multiply(75,6)|:
    \pgfmathparse{multiply(75,6)}:
   \pgfmathresult\ (expected  450)

\verb|neg(50)|:
    \pgfmathparse{neg(50)}:
   \pgfmathresult\ (expected  -50)

%%%%%
\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|pi|:
    \pgfmathparse{pi}:
   \pgfmathresult\ (expected  3.141592654)

\verb|pow(2,7)|:
    \pgfmathparse{pow(2,7)}:
   \pgfmathresult\ (expected  128)

\verb|rad(90)|:
    \pgfmathparse{rad(90)}:
   \pgfmathresult\ (expected  1.57079)

\verb|rand|:
    \pgfmathparse{rand}:
   \pgfmathresult\ (expected  rand)

\verb|random(232,762)|:
%>    \pgfmathparse{random(232,762)}:
   \pgfmathresult\ (expected  random)

\verb|real(4)|:
%>    \pgfmathparse{real(4)}:
   \pgfmathresult\ (expected  4)

\verb|rnd|:
    \pgfmathparse{rnd}:
   \pgfmathresult\ (expected  rnd)

\verb|round(398/12)|:
    \pgfmathparse{round(398/12)}:
   \pgfmathresult\ (expected  33)

\verb|sec(45)|:
    \pgfmathparse{sec(45)}:
   \pgfmathresult\ (expected  1.41429)

%%%%%
\verb|sin(60)|:
    \pgfmathparse{sin(60)}:
   \pgfmathresult\ (expected  0.86603)

\verb|sinh(0.5)|:
    \pgfmathparse{sinh(0.5)}:
   \pgfmathresult\ (expected  0.52103)

\verb|sqrt(8765.432)|:
    \pgfmathparse{sqrt(8765.432)}:
   \pgfmathresult\ (expected  93.62388)

\verb|subtract(75,6)|:
    \pgfmathparse{subtract(75,6)}:
   \pgfmathresult\ (expected  69)

\verb|tan(45)|:
    \pgfmathparse{tan(45)}:
   \pgfmathresult\ (expected  1.00005)

\verb|tanh(0.5)|:
    \pgfmathparse{tanh(0.5)}:
   \pgfmathresult\ (expected  0.462)

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

\verb|veclen(12,5)|:
    \pgfmathparse{veclen(12,5)}:
   \pgfmathresult\ (expected  12.99976)

\verb|width("SomeLovelyText")|:
%%    \pgfmathparse{width("SomeLovelyText")}:
   \pgfmathresult\ (expected  78.47237)

\end{document}
% ---------------------------
