
함수를 플롯하는 방법
$f:x\mapsto
\int_0^{x}\frac{1}{\sqrt{1+t^2*ln^2(t)}}\, \textrm{d}t$
TikZ와 함께? tnx
답변1
위에 제안된 링크에서와 같이 Asymptote는 이 경우에 적합한 그리기 도구입니다. @g.kov의 코드를 흉내냈을 뿐입니다.
// http://asymptote.ualberta.ca/
import graph;
size(300,200,IgnoreAspect);
real f(real t){return (t==0)?1:1/sqrt(1+t^2*(log(t))^2);}
real F(real x){return simpson(f,0,x);}
//real a=20;
real a=1000;
draw(graph(F,0,a,n=200),red+1.5pt);
string noZero(real x) {return (x==0)?"":string(x);}
xaxis(LeftTicks(noZero,Step=a/5));
yaxis(RightTicks(noZero,Step=1));
string s="$F(x)=\displaystyle\int_0^{x}\frac{\textrm{d}t}{\sqrt{1+t^2\ln^2(t)}}$";
label(s,point(E),SW);
shipout(bbox(5mm,invisible));
당신은 넣을 수 있습니다LaTeX 문서 내의 asy 코드.
설명 및 코멘트적분은 0에서 정의되지 않으므로 Asymptote에게 적분을 계산하는 방법을 알려주기 위해 다음과 같이 쓸 수 있습니다(또한 참조).이 링크)
\documentclass{article}
\usepackage{amsmath,amssymb}
\begin{document}
Note that $\lim\limits_{t\to 0} t\ln(t)=0$. One may write
\[f(t)=
\begin{cases}
\dfrac{1}{\sqrt{1+t^2\ln^2(t)}},\quad &t\not=0\\
\qquad 1,\quad &t=0.
\end{cases}
\]
\[F(x)=
\displaystyle\int_0^{x} f(t)\;\textrm{d}t, \quad x\geq 0.\]
We see that $F(0)=0$, $F'(x)=f(x)\geq 0$, and $\lim\limits_{t\to +\infty} f(t)=1$.
Therefore $F$ is increasing to infinity \[\lim\limits_{x\to +\infty} F(x)=+\infty.\]
\end{document}
답변2
PGFplots로 플로팅, 패키지를 사용한 명확한 적분 평가pst-ode
PGFplots로 플로팅, 패키지 (RKF45 방법)를 . 피적분 함수는 다음에서 정의되지 않았기 때문에티=0, 다음에서 통합을 시작합니다.티=1e-9.
lualatex
또는 latex
+ dvips
+ 로 ps2pdf -DNOSAFER
최소한 두 번 조판 :
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots} \pgfplotsset{compat=newest}
\usepackage{pst-ode}
\pstODEsolve[algebraicAll,saveData]{integral}{t | y[0]}{10^-9}{20}{201}{0}{1/sqrt(1+(t*ln(t))^2)}
\begin{document}
\IfFileExists{integral.dat}{}{dummy text\end{document}}
\begin{tikzpicture}
\begin{axis}[
xlabel=$x$,
ylabel=$F(x)$,
xmin=0,xmax=20,ymin=0
]
\addplot[red,thick] table {integral.dat};
\end{axis}
\end{tikzpicture}
\end{document}