@Sebastiano In support of @DavidCarlisle (something that does not seem to happen too often ;-) I would like to add that it makes perfect sense to ask in the chat for reopening votes for questions by others. Whether it is appropriate to ask for reopening votes of your own posts, I am not so sure. It sounds a little bit like jumping the line in the supermarket (if you know what I mean).
i want to plot the integral of y=sin(x^2) in pgfplots but dont know what to put inside
the ''{ }''. This is because its a prety hard function to integrate. Can someone help me!
@manooooh Do you have this question yourself or do you just want to remind us that, whenever there is a question asking how one can do something with TikZ or pgfplots, there are certain attempts to provide answers which use everything but TikZ or pgfplots and quickly close the question? ;-)
@manooooh Yes, this is really interesting. This question got closed as being a duplicate of a question which asked how to draw this with TikZ (and not pgfplots). And yes, if you look through the answers, you will indeed find one answer which uses pgfplots to some extent. Really really strange IMHO.
But I do not think that you can use pgfplots to solve differential equations without further ado, but it is not clear to me if that is really what is being asked in the question.
@marmot haha.. I prefer not to answer that question...
@marmot oh yes, strange!!
Then I say "sorry" because I realized that the integral I am looking for does not say anything about the constant of integration, so, if we graph the indefinite integral where C=0 then it could be wrong; we should plot the infinite functions. So I take the decision to not plot it
@manooooh Mathematica claims the integral is (x - cos(x)*sin(x))/2 up to the constant. (Usually you get rid of the constant by specifying the lower bound of integration.)
@HenriMenke Because before asking for the reopening of a question, I prefer to know the reasons that led you to propose its closure. I don't find them relevant because your reasons are related to subjective questions, which my question is not. And moreover, I don't understand why people blame a question for being off-site resource. Nevertheless, since you are pleased to close this question, I do not upset you by asking for it to be reopened.
@AndréC I'm not the one that has to be pleased, the community as a whole has to. If you vote to reopen and enough other users find that the questions should be reopened, then so it is.
@marmot Found the problem. Linux and Mac OS are generating different sequences of random numbers and tikz-feynman is using the spring layout which is force-based and uses a random configuration.
print(status.banner)
print(_VERSION)
math.randomseed(42)
for i = 0, 10 do
print(math.random())
end
What I will describe below is not yet a problem but will appear when TeX Live 2019 is released and LuaTeX will be upgraded to 1.09. MikTeX users might already experience this issue.
When I typeset one of the graphdrawing examples from the TikZ manual, it appears mirrored between the LuaTeX ve...
@HenriMenke I guess you might want to answer the question. It is open again. (I also just realized that luatex survived my attempts to wipe out an older TeX installation. Otherwise I do no have any issues with the latex compilers.)
@marmot I was discussing with Christian Feuersänger, whether we should ship the RNG with TikZ, to ensure deterministic random numbers. He voted for yes, I for no.
@marmot BTW, this issue must have been there since the beginning. Why did nobody notice earlier?
@HenriMenke I have no opinion because I do not know what RNG is. (It is amazing what Christian achieved. Nevertheless LaTeX is not a computer algebra system.)
@marmot RNG = random number generator, specifically the one I present in the section “Implementation of glibc's rand() in pure Lua” in my answer to question linked above.
@HenriMenke I do not know. I guess that the sad truth is that the graph drawing library does not have really the tools to generate fantastic layouts of Feynman diagrams. In most situations it is better to draw the graphs without these algorithms, at least this is how I feel about it.
@HenriMenke And as you know arXiv does not run lualatex either so I guess that the graph drawing part of the package is not heavily used.
@marmot I have never used graphdrawing apart from some answers on TeX.SX. The force-based algorithms (spring layout and spring electrical layout) are especially fragile, because they use random numbers.
@marmot Yes, that's really annoying. I wonder whether one could convince the people from Cornell to offer LuaTeX.
@HenriMenke Yes, I am happy to believe this. (BTW, I have created a slight variant of your nice path extrema answer.) I know some people from Cornell, but not those who run the show. Need to go hibernating now.
@HenriMenke (wasn't that a difference in Lua versions rather than a difference in OS, I saw something about Lua changing its RNG before) you could use the pdftex inspired RNG, we just got that into all the engines (including xetex and ptex) for tl2019 exactly to get consistent numbers in all implementaions.
@DavidCarlisle I'm not sure that I want to get involved in this random number chaos but on windows I get neither of Henris pictures and I remember a longer discussion where math.floor against math.round played a role in this feynman-stuff and lead to different outputs.
@DavidCarlisle I'm not sure. I never really liked tabu, I always had the impression it wants to do everything different (better) than the kernel and so created rather fragile code (as can be seen now). I would prefer to transport some of the ideas to array/longtable. Beside this this problem perhaps need an adjustment in array.
@DavidCarlisle the \catcode164=14 is the problem. But I'm not sure I want to investigate why ;-). (But even without it it won't compile, some problem with zref).
@UlrikeFischer yes I did wonder if we had broken zref but then I saw there were so many other issues. I suggest we just wait for @PauloCereda to supply an arara rule to build the document.
@UlrikeFischer eek \catcode164=14 i means the file has to be stored in latin1, I wonder what encoding it is in, let me look...
% Between 2010/04/19 v2.13 and 2010/10/22 v2.19 a comma separated list
% of properties could be used as argument \meta{propname}.
% Since 2010/10/22 v2.19 the addition of several properties
% at once is supported by \cs{zref@addprops}.
@UlrikeFischer ^^
@UlrikeFischer so I guess he wrote this package in the summer of 2010:-)
I just tried to do the right thing and set up a Travis build for some updated old code and just can't get it to work :( Anyone want to be a guinea pig for me?
@WillRobertson have you set the "auto cancel" option which means that it aborts anything in the queue if you commit, rather than sticking a new job at the end of the existing queue
Definitely, my falcon will hunt @marmot. Nevertheless, +1 For my tikizifying my Falcon!! I wish I could give more. Could you also suggest how to make teeth barrel shaped? — Raaja6 mins ago
This sounds like a serious threat to @marmot! He should better hide in his burrow.
@marmot Oh wow! I'm glad there was at least one person that found it relevant :)
@marmot Sorry to hear they've disabled the API. That's weird. Anyway, I find Canvas much better than Blackboard so I would still be happy to have made the move even without the API in place...
@WillRobertson We had EEE before, which is not great but worked. Canvas is worse IMHO. It is not great, very confusing and you have to do even more click-click-click.
@DavidCarlisle well I could use l3draw, but actually I'm trying to use as many primitives as possible here, as the code should run a few thousands time.
@DavidCarlisle With all my heart started school on January 7 and I already feel stressed and with my head in the clouds. I don't remember what I did, among a thousand things, not even five hours ago. I just got out of bed and I'm already nervous and confused. Nervous because some colleagues don't deserve the title of "teacher" at all. I really apologize for the nth time I do not remember what I sent you :-(
@AlexG Je n'ai pas essayé, je vais essayer. En l'ouvrant avec un lecteur de PDF, la page est blanche. J'essaie immédiatement et je vous dis le résultat
@DavidCarlisle I had to deal with school-work alternation. Yesterday evening I was working on it a little (4 hours of wasted time) and I realized, after my administrative checks, that the proposal of a colleague was impractical. Do you know what happened? That the colleague who proposed the initiative knew that it could not be done and did not tell me anything. If I had not informed myself by now, I would have wasted so much time unnecessarily. I am very sorry.
@egreg Hi very kind Enrico I send you a warm greeting and I always thank you all. I almost always read your email. You are great! Greetings.
@marmot Yes, I have understood it perfectly (this time it's :-)). I wanted to ask you a courtesy if you could place the two images of the issue that I enclose not vertically but horizontally. When I compile the two images are vertical and not horizontal. My best regards.
Starting from this old question How to draw a sine wave on a circular path in tikz I have modified the source code according for my interest:
\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\usepackage{amsmath}
\begin{document}
\foreach \n in{3,4}{%
\begin{tikzp...
@marmot Sincerely, you and many others here I'm glad you make me laugh :-). Even if my students at the Art School are not studying much, I would say that they are fantastic from a human point of view and educated. Now I'm going, but I'd like some help from how to get away from my unprepared colleagues :_(. Here at me you are welcome.
Je ne suis pas habitué à la ligne de commande. Il serait certainement mieux que je pose une question sur ça sur le site afin que vous expliquiez comment on compile ce doument en ligne de commande (à défaut de Texmaker) ou de Texstudio, non ?
I copied and pasted the example from page 221 of manual 3.1 and tried to compile it with texmaker.
\documentclass[dvisvgm]{standalone}
\usepackage{tikz}
\usetikzlibrary{animations}
\begin{document}
\tikz
\node :fill opacity = { 0s="1", 2s="0", begin on=click }
:rotate = { 0s="0", 2s="90...
@DavidCarlisle Pour expliquer la neige aux enfants, ma grand-mère me disait autrefois que « le bon Dieu plume ses oies ». Je ne suis pas certain que cela soit mieux pour Paulo :-)
@Sebastiano Something like this? \documentclass{article} \usepackage{amsmath} \usepackage{subcaption} \usepackage{floatrow} \usepackage{pgfplots} \usetikzlibrary{decorations.markings,calc} \tikzset{mark two maxima/.style n args={3}{% postaction=decorate,decoration={markings, mark=at position #1 with {\draw[purple] (0,0) -- (0,-12pt) coordinate[midway] (x0);}, mark=at position #2 with {\draw[purple] (0,0) -- (0,-12pt) coordinate[midway](x1); \draw let \p1=($(x1)-(x0)$),\n1={atan2(\y1,\x1)},\n2={veclen(\x1,\y1)*(1/(2*sin(360*#2/2)))}
@marmot Your code not compile. Missing \begin{document} (peraphs). I would sonly that you edit your code here: tex.stackexchange.com/questions/457265/… to have two pictures in horizontal and not in vertical (thank you very much)
\documentclass{article} \usepackage{amsmath} \usepackage{subcaption} \usepackage{floatrow} \usepackage{pgfplots} \usetikzlibrary{decorations.markings,calc} \tikzset{mark two maxima/.style n args={3}{% postaction=decorate,decoration={markings, mark=at position #1 with {\draw[purple] (0,0) -- (0,-12pt) coordinate[midway] (x0);}, mark=at position #2 with {\draw[purple] (0,0) -- (0,-12pt) coordinate[midway](x1); \draw let \p1=($(x1)-(x0)$),\n1={atan2(\y1,\x1)},\n2={veclen(\x1,\y1)*(1/(2*sin(360*#2/2)))}