diff options
author | Karl Berry <karl@freefriends.org> | 2023-10-13 20:50:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-10-13 20:50:07 +0000 |
commit | a364e3158532c14442365d6adbe25577258aef4f (patch) | |
tree | 96c60e868b981bcbe03cc1491885bf98c8094ee8 /Master/texmf-dist/tex/latex | |
parent | 6595d8222d747b21a5cb12a04a9cf43c6bb6caa2 (diff) |
bodeplot (13oct23)
git-svn-id: svn://tug.org/texlive/trunk@68530 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty b/Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty index 57f87cb1eee..2121a2e04a3 100644 --- a/Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty +++ b/Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty @@ -40,7 +40,9 @@ \@hzargtrue } \ProcessOptions\relax -\newcommand{\n@mod}[2]{(#1)-(floor((#1)/(#2))*(#2))} +\newcommand{\n@mod}[2]{(#1)-((round((#1)/(#2)))*(#2))} +\newcommand{\n@mod@p}[2]{(#1)-((floor((#1)/(#2)))*(#2))} +\newcommand{\n@mod@n}[2]{(#1)-((floor((#1)/(#2))+1)*(#2))} \if@pgfarg \newcommand{\n@pow}[2]{(#1)^(#2)} \pgfplotsset{ @@ -147,7 +149,7 @@ )} \newcommand*{\MagPoleAsymp}{\MagPoleLin} \newcommand*{\PhPole}[2]{((#1 > 0 ? (#2 > 0 ? - (\n@mod{-atan2((t - (#2)),-(#1))}{2*pi}) : + (\n@mod@p{-atan2((t - (#2)),-(#1))}{2*pi}) : (-atan2((t - (#2)),-(#1)))) : (-atan2((t - (#2)),-(#1))))*\ph@scale)} \newcommand*{\PhPoleLin}[2]{ |