# Questions tagged [fpu]

The tag has no usage guidance.

23 questions
Filter by
Sorted by
Tagged with
80 views

### Invoke PGF/FPU inside \pgfplotsset

I am facing a problem when trying to get the maximum value of a table with large numbers. Here are two small MWE: With this simple comparison, I get the larger of two numbers: \documentclass[tikz]{...
189 views

### Is there an interface to define functions in xfp?

Some functions are defined in xfp. Example: You can write something like \fpeval{max(1, 2, 3, 4)} and get 4 as the result. I would like to define functions like crbt(x) = x^(1/3) or the greatest ...
• 1,294
219 views

### Axis' discontinuity, value randomization and linear regression for log based Arrhenius plot

So I am attempting to create some simple sudo random data and plot the results with a trend line. Best fit linear approximation. I am trying to create something that looks like the graph below Here ...
• 11.3k
331 views

### Precision improvement - recursive sequence plot for Newton method

The Newton method for solving x+x^2=0 works only four steps, as the iterates are not computed accurately. The fpu library allows much increased precision, but I don't know how to use. Could somebody ...
• 33
161 views

### Pgfplots with 2nd y-axis and "non-linearly" converted units

I want to plot a diagram in which I display scattered values within a certain range - these are the maximum values of a measurement I made. From these values, a parameter can be calculated through a ...
• 370
1k views

### TikZ fpu seems to be inaccurate

I'am using a macro from here (thanks to Schrödinger's cat). See my MWE: \documentclass{scrartcl} \usepackage{tikz} \usetikzlibrary{fpu} \newcommand\pgfmathparseFPU[1]{ \...
• 2,478
75 views

### A problem with pgfcalendar and fpu

I'm trying to define a macro that will determine two dates (in weeks of 7 days), calculated from a given date (defined by \setmovedate below. For brevity the code below uses only #2 from \movetasks: \...
• 8,536
349 views

### How to make a tikz picture coexist with the fpu library

A graphics application creates tikz picture files. There is no control on the surrounding document. How to make sure that the picture compiles, regardless whether the fpu library is loaded or not, and ...
• 188
262 views

### Does \pgfkeys{/pgf/fpu=false} work?

When I calculate very small numbers, I use the fpu package. But it seems \pgfkeys{/pgf/fpu=false} does not work. \documentclass[dvipdfmx]{article} % packages \usepackage{pgf} \usepackage{tikz} % ...
592 views

### Binomial tree converging to a normal distribution (3D)

I try to get the same idea as in Brownian motion 3D normal distribution but with a recombined binomial tree instead of the brownian motion and the corresponding binomial distribution at each node. The ...
• 2,828
175 views

### pgfplotstable's create col/expr does not invoke fpu on constants

I must admit that I am frequently stumbling over the limited numerical precision issues with pgfplots(table). I am aware that \pgfset{fpu} activates the IEEE double precision unit. Moreover, the ...
2k views

### PGFplots Tikz plot two or more added expressions in different domains

Basically I want to use PGFplots/tikzs to plot the sum of two expressions, but the first expression - let's name it f(x) - is specified within 0<=x<=1000 and the second expression - let's name ...
• 333
902 views

### How to draw a hysteresis loop with TikZ datavisualization?

Sorry for my incorrect english. I have modified the code from here to adapt it for the TikZ datavisualization. Here is the adapted code: \documentclass{scrartcl} \usepackage{tikz} \usepackage[per-...
• 2,478
1k views

### How to use the TikZ fpu library?

When I calculate something, sometimes become the interim results to big for the pgf system. One can use the fpu library. I read about it in the TikZ & PGF manual (see page 627), here and here but ...
• 2,478
625 views

### How can the effects of \pgfkeys{/pgf/fpu=true} be reversed?

Consider the following MNWE: \documentclass[border=10pt,multi,tikz]{standalone} \usetikzlibrary{fpu} \pgfkeys{/pgf/fpu=true} \pgfkeys{/pgf/fpu=false} \begin{document} \pgfmathsetmacro\myresult{Mod(-...
• 196k
938 views

### Presence of 'pgfplots' package breaks 'forest' environment w/ 'folder' option enabled (due to FPU) [closed]

Problem description I have a LaTeX project that relies on both, \usepackage{pgfplots} and \usepackage{forest}. Since upgrading to TeX Live 2016, the presence of the pgfplots package breaks ...
• 661
224 views

### A problem with tikz accuracy, even with fpu

I am attempting to draw a Villard diagram (see, for example, http://retinart.net/graphic-design/secret-law-of-page-harmony/), a classic way of formatting a printed page. So far I have this: \...
• 8,536
715 views

### Inaccurate PGF calculation?

I'm trying to implement an invoice calculation in LaTeX and using PGF as the method to do calculations. I've run into an odd problem where it seems that PGF calculates things incorrectly and I'm not ...
• 163
255 views

### A TeX translation of old C code - Evaluating elements of an array *inside* a foreach loop

I'm trying to translate a conceptually simple part of an algorithm, from the original source for the R-engine (written in C) to TeX. This shouldn't take more than some logic trees and for/while loops. ...
• 6,337
707 views

### TikZ/PGF: compilation hangs when using macro

When compiling the following code using pdflatex, \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{fpu} \begin{document} \begin{tikzpicture} \def\dim#1{ \pgfkeys{/pgf/fpu=true,/pgf/...
• 349
945 views

### TikZ/PGF: dimension too large even though below \maxdimen

Why does the following code trigger the error ! Dimension too large. when compiling it with pdflatex, even though the dimension should only be 11in (which is below \maxdimen)? \documentclass{...
• 349
3k views

### pgfplots: Plot inverse function (function of y)

I am trying to plot the Ramberg-Osgood-relationship for a specific material with pgfplots. The relationship describes the stress-strain-curve, that is the stress as a function of the strain. The ...
• 1,784