Überarbeitungsverlauf[Zurück]
Klicke auf Einblenden/Ausblenden von Überarbeitungen 3

22 Jun '19, 10:52

cis's gravatar image

cis
9.6k103460491

GNUPLOT für komplizierte Rechnungen verwenden

`Crosspost: https://tex.stackexchange.com/questions/496897/pgfmath-gnuplot-how-to-use-gnuplot-for-complicated-calculations` ___ Ich habe mich gefragt, ob man gnuplot abgesehen von Graphen auch für schwierige Rechnungen verwenden kann. <br> Z.B. für `\pgfmathsetmacro{\x}{0.02} \pgfmathsetmacro{\y}{2*11000*(1 - 1.40576 - cos(\x) + sqrt(1.40576^2 - sin(\x)^2))}` <br> erhalte ich 'Dimensions to large'. Wie könnte man hier gnuplot einsetzen? **MWE:** [![alt text][1]][1] % arara: pdflatex: {shell: yes} \documentclass[margin=5mm, varwidth]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.16} \begin{document} \pgfmathsetmacro{\x}{0.02} %\pgfmathsetmacro{\y}{2*11000*(1 - 1.40576 - cos(\x) + sqrt(1.40576^2 - sin(\x)^2))} Geht nicht: % \y \begin{tikzpicture} \begin{axis}[title=Geht:] \addplot[blue,domain = {-0.07:0.07}]plot gnuplot[samples=500,id=eins]{2*11000*(1 - 1.40576 - cos(x) + sqrt(1.40576^2 - sin(x)^2))}; \end{axis} \end{tikzpicture} \end{document} [1]: https://texwelt.de/wissen/upfiles/55555555_400.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 2

22 Jun '19, 10:31

cis's gravatar image

cis
9.6k103460491

GNUPLOT für komplizierte Rechnungen verwenden

Ich habe mich gefragt, ob man gnuplot abgesehen von Graphen auch für schwierige Rechnungen verwenden kann. <br> Z.B. für `\pgfmathsetmacro{\x}{0.02} \pgfmathsetmacro{\y}{2*11000*(1 - 1.40576 - cos(\x) + sqrt(1.40576^2 - sin(\x)^2))}` <br> erhalte ich 'Dimensions to large'. Wie könnte man hier gnuplot einsetzen? **MWE:** [![alt text][1]][1] % arara: pdflatex: {shell: yes} \documentclass[margin=5mm, varwidth]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.16} \begin{document} \pgfmathsetmacro{\x}{0.02} %\pgfmathsetmacro{\y}{2*11000*(1 - 1.40576 - cos(\x) + sqrt(1.40576^2 - sin(\x)^2))} Geht nicht: % \y \begin{tikzpicture} \begin{axis}[title=Geht:] \addplot[blue,domain = {-0.07:0.07}, trig format plots=rad, samples=10]plot {-0.07:0.07}]plot gnuplot[samples=500,id=eins]{2*11000*(1 - 1.40576 - cos(x) + sqrt(1.40576^2 - sin(x)^2))}; \end{axis} \end{tikzpicture} \end{document} [1]: https://texwelt.de/wissen/upfiles/55555555_400.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

21 Jun '19, 20:16

cis's gravatar image

cis
9.6k103460491