Questions tagged [fpu]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
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]{...
ValenStein's user avatar
4 votes
1 answer
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 ...
Weißer Kater's user avatar
2 votes
1 answer
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 ...
N3buchadnezzar's user avatar
3 votes
2 answers
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 ...
bluesky's user avatar
  • 33
3 votes
1 answer
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 ...
pbaer's user avatar
  • 370
15 votes
3 answers
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]{ \...
Su-47's user avatar
  • 2,478
0 votes
1 answer
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: \...
sgmoye's user avatar
  • 8,536
4 votes
1 answer
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 ...
tkl's user avatar
  • 188
0 votes
1 answer
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} % ...
Takahiro Niwa's user avatar
3 votes
2 answers
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 ...
JeT's user avatar
  • 2,828
4 votes
1 answer
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 ...
Frederik Heber's user avatar
2 votes
2 answers
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 ...
phw's user avatar
  • 333
3 votes
1 answer
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-...
Su-47's user avatar
  • 2,478
8 votes
1 answer
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 ...
Su-47's user avatar
  • 2,478
10 votes
1 answer
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(-...
cfr's user avatar
  • 196k
7 votes
2 answers
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 ...
Florian H.'s user avatar
6 votes
1 answer
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: \...
sgmoye's user avatar
  • 8,536
8 votes
2 answers
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 ...
user27875's user avatar
  • 163
4 votes
1 answer
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. ...
1010011010's user avatar
  • 6,337
4 votes
2 answers
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/...
watain's user avatar
  • 349
6 votes
1 answer
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{...
watain's user avatar
  • 349
7 votes
3 answers
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 ...
raedma's user avatar
  • 1,784
7 votes
1 answer
943 views

Avoiding `Dimension too large' and `ill-formatted floating point' errors in tikz

I am attempting to draw some pictures using tikz, with the decorations library, and am encountering a `Dimension too large' error. I have read the 20+ other questions/answers about this error, and ...
Chris's user avatar
  • 1,183