Answer by Cryptc for `Missing = inserted for \ifnum` when using addplot
Using a related answer about fpu formatting, I was able to use \ifnum in the case that my result was within the range of an int() [−16383.9998, +16383.9998]. The trick is to use \pgfmathfloattofixed on...
View ArticleAnswer by Heiko Oberdiek for `Missing = inserted for \ifnum` when using addplot
pgfplots uses library fpu for better precision by default, which has a different internal number format. Therefore \pgfresult is not 1 or 0 anymore and \ifnum cannot be...
View Article`Missing = inserted for \ifnum` when using addplot
I'm trying to plot a normalized sinc function with PGFPlots/TikZ. As this is somewhat tricky because of the limiting value at 0, I used a suggestion provided by percusse.Here's a minimal example (note...
View ArticleAnswer by user202729 for `Missing = inserted for \ifnum` when using addplot
Unfortunately, both of the existing answers have drawbacks.Heiko Oberdiek's answer: it exactly undoes the fix in the linked question. In this case \addplot just happens to not evaluate the function at...
View Article