diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgflibraryfpu.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgflibraryfpu.code.tex | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgflibraryfpu.code.tex b/Master/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgflibraryfpu.code.tex index 0af3c3887c5..35dc897fec7 100644 --- a/Master/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgflibraryfpu.code.tex +++ b/Master/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgflibraryfpu.code.tex @@ -14,7 +14,7 @@ %%% - nested \input commands have been updated %%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%%% Date of this copy: Mi 31. Mär 21:41:41 CEST 2010 %%% +%%% Date of this copy: Mi 14. Jul 21:31:43 CEST 2010 %%% @@ -249,7 +249,7 @@ \pgfmathfloat@install\pgfmathrand@=\pgfmathfloatrand@ \pgfmathfloat@install\pgfmathrand=\pgfmathfloatrand@ \pgfmathfloat@install\pgfmathrnd@=\pgfmathfloatrnd@ - \pgfmathfloat@install\pgfmathrnd=\pgfmathfloatrnd + \pgfmathfloat@install\pgfmathrnd=\pgfmathfloatrnd@ \pgfmathfloat@install\pgfmathtrue@=\pgfmathfloattrue@ \pgfmathfloat@install\pgfmathfalse@=\pgfmathfloatfalse@ \pgfmathfloat@install\pgfmathnot@=\pgfmathfloatnot@ @@ -327,6 +327,7 @@ \pgfmathfloat@plots@install% \pgfmathfloat@parser@install@functions \let\pgfmathrand@=\pgfmath@basic@rand@ + \let\pgfmathrnd@=\pgfmath@basic@rnd@ \pgfmathfloat@install\pgfmathmax@=\pgfmathfloatmaxtwo% \pgfmathfloat@install\pgfmathmin@=\pgfmathfloatmintwo% \pgfmathfloat@defineadapter@for@pgf@two@null@null@ONEARG{factorial}% @@ -645,6 +646,7 @@ \fi } \let\pgfmathfloatlessthan=\pgfmathfloatlessthan@ +\let\pgfmathfloatless@=\pgfmathfloatlessthan@ % compares \pgfmathfloat@a@[SME] < \pgfmathfloat@b@[SME] \def\pgfmathfloatlessthan@positive{% @@ -675,6 +677,7 @@ \def\pgfmathfloatgreaterthan@#1#2{\pgfmathfloatlessthan@{#2}{#1}} \let\pgfmathfloatgreaterthan=\pgfmathfloatgreaterthan@ +\let\pgfmathfloatgreater@=\pgfmathfloatgreaterthan@ \def\pgfmathfloatmax@#1{% \begingroup @@ -934,6 +937,7 @@ % or, equivalently % \pgfmathfloatifflags{\pgfmathresult}{+}{It's positive!}{It's not positive!}% % \pgfmathfloatifflags{\pgfmathresult}{-}{It's negative!}{It's not negative!}% +% it also supports #2=u which means 'unbounded' \def\pgfmathfloatifflags#1#2#3#4{% \if#2-% \pgfmathfloatifflags{#1}{2}{#3}{#4}% @@ -942,10 +946,18 @@ \pgfmathfloatifflags{#1}{1}{#3}{#4}% \else \pgfmathfloatgetflagstomacro#1\pgfmathfloat@loc@TMPa - \if\pgfmathfloat@loc@TMPa#2 - #3\relax + \if#2u% + \ifnum\pgfmathfloat@loc@TMPa>2 + #3\relax + \else + #4\relax + \fi \else - #4\relax + \if\pgfmathfloat@loc@TMPa#2 + #3\relax + \else + #4\relax + \fi \fi \fi \fi @@ -1315,6 +1327,8 @@ % % This operation is not limited to TeX's range of count registers (it % works symbolly) +% +% @see \pgfmathfloattoint \def\pgfmathfloatint@#1{% \begingroup \edef\pgfmathresult{#1}% @@ -1868,16 +1882,21 @@ \pgfutil@ifundefined{pgfmathdeclarefunction}{% % special treatment: \pgfmathrand@ was not properly defined for pgf 2.00: \let\pgfmath@basic@rand=\pgfmathrand + \let\pgfmath@basic@rand@=\pgfmathrand@ \def\pgfmathfloatrand@{% \pgfmath@basic@rand \pgfmathfloatparsenumber{\pgfmathresult}% }% + \let\pgfmathfloatrand=\pgfmathfloatrand@% + % % special treatment: \pgfmathrnd@ was not properly defined for pgf 2.00: \let\pgfmath@basic@rnd=\pgfmathrnd + \let\pgfmath@basic@rnd@=\pgfmathrnd@ \def\pgfmathfloatrnd@{% \pgfmath@basic@rnd \pgfmathfloatparsenumber{\pgfmathresult}% }% + \let\pgfmathfloatrnd=\pgfmathfloatrnd@% }{} % Implements the factorial of '#1'. |