You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I'd like to draw some Bode-like plots,
the atan2() function seems to not work correctly at some combination of values.
I managed to re-create the minimal working code to show the problem:
I am using atan2() function with a non trivial dependence on x and some parameters defined as declare function=
\addplot[red, domain=1e1:1e10, samples=1000] {-atan2(x/wo,(1 - x*x/wo/wo))}; gives an expected behavior up to some point (red curve);
\addplot[domain=1e1:1e7, samples=1000] {-atan2(x/wo/Q,(1 - x*x/wo/wo))}; does not seem reliable (black);
Hi I'd like to draw some Bode-like plots,
the atan2() function seems to not work correctly at some combination of values.
I managed to re-create the minimal working code to show the problem:
I am using atan2() function with a non trivial dependence on
x
and some parameters defined asdeclare function=
\addplot[red, domain=1e1:1e10, samples=1000] {-atan2(x/wo,(1 - x*x/wo/wo))};
gives an expected behavior up to some point (red curve);\addplot[domain=1e1:1e7, samples=1000] {-atan2(x/wo/Q,(1 - x*x/wo/wo))};
does not seem reliable (black);The following plot is informative of the problem:
I am compiling with pdflatex (plot produced on overleaf but reproducible on my PC).
The text was updated successfully, but these errors were encountered: